Quantcast
Channel: SCN: Message List
Viewing all 8746 articles
Browse latest View live

Issue reading file from webservice

$
0
0

Support has hit a lull recently, so I've gotten back to an issue that has me stumped.

 

I've created a webservice in PB 12.5.2 Classic that has two methods:  readFile and writeFile.

 

The writeFile method just creates a text file with some test text in it.  It works fine, the file created in the folder I would expect (namely: C:\inetpub\wwwroot\testwebservice_root\file\session\__webservice__\c )

 

My issue comes from trying to read from a file in the readFile method.  I've put a test INI file in the \file\common\c folder, and when the webservice starts, it is copied to \file\session__webservice__\c as I would expect (so file exists).  However, when I try either a ProfileString, or even just a fileOpen, I cannot access the file (fileOpen returns -1).   Below is my code, basically following Chris' STD framework in reading from an ini file:

 

#if defined PBWEBSERVICE then                   // Web Service?
ls_virtual_path  = MapVirtualPath (ls_filename )            // YES=Get its Path
#end if
li_pos = POS  (ls_virtual_path, ls_filename)             // Got a path?
IF  li_pos  > 0 THEN                        // YES=>Get file name
ls_virtual_path  = MID (ls_virtual_path, 1, li_pos - 1)            // Remove file name
END IF

ls_ini_file   =  ls_virtual_path
ls_ini_file   +=  ls_filename

 

// test read here
//ls_result = ProfileString (ls_ini_file, "WebService", "Language", "X")
li_filenum = fileOpen(ls_ini_file)
IF li_filenum < 0 THEN
ls_result = "file open fail"
ELSE
li_len = fileRead(li_filenum, ls_text)
ls_result = "read " + string(li_len) + " bytes."
END IF

fileClose(li_filenum)

 

The variable ls_ini_file has the correct full path and ini file name as I am expecting.   Any suggestions is greatly welcome!

 

Jim


group maintanance

$
0
0

Hi,

We have one user within each department who has transaction SU01 so they can

reset passwords of the users of their department.

My problem is, they can also change passwords of users within other

departments.please help me ,i am new to this community.

Re: Netweaver 7.00 upgrade to 7.01

$
0
0

Hello

 

It is in fact not possible to only upgrade the NW component on a ECC system.

If your source system is based on NW Ehp 1 that means it is an Ehp4 ECC, so even if upgrading NW was possible there will still be differences on ECC components.

Check the here under blog for more information

 

Regards

 

Why SAP ERP 6.0 EHP6 contains SAP BASIS 7.31

Re: IMPRESIONES DE SAP BUSINESS ONE EN IMPRESORAS ZEBRA

$
0
0

desde el bloc de notas debo hacer uso de ZPLII para imprimir???

Eso tambien lo debo hacer desde Crystal Report?

Los datos los obtengo de una tabla de usuario.

Why are asset postings allowed after useful life has expired?

$
0
0

Dear Experts,   We have an audit finding that new acquisitions were allowed to post to an asset that's useful life had already expired.   The posting should have gone to an asset sub-number with a new life but it wasn't caught.   Is there any way to prevent this from happening in the future?

Anyone else have this problem and found a solution?

 

Thanks,

 

Julie Jenkins

Re: Back RFC issue

$
0
0

Hello Gaurav,

 

connection are ok but still it say back RFC issue but while doing test run its fine.

 

Regards,

Manoj J

IDOC Re-Processing

$
0
0

Hi Everybody,

 

 

I am replicating the G/L Master data from production to quality using ALE IDOC.When i do it i am getting the error message as "G/L account XXXXXXX is not allowed in the system".When i reprocess the same it is getting posted in the target system as desired.

Here my question is,why the idoc fails to post in the first attempt (Inbound system) and why it is getting posted at the time of reprocessing.

Some times i get the error message as 'Bank US XXXXXXXXXX is currently blocked by user XWU" in the Bank Master replication, but with reprocessing it gets posted properly.Actually the user XWU is not the active user.

 

Can you please let me know what leads for the IDOC reprocessing.I googled but did not find the anwer for it.

 

 

 

 

Regards

 

Sriram.

Re: Not seeing database values in the Database Expert

$
0
0

I am using crystal 2008.

 

The datavbase is MS SQL.

 

We tried ODBC as well, with the same results.

 

I can see and use all of the data fields in the field explorer, but when I try to use the Formula Workshop to Build and SQL expression, I can expand the list of fields.

 

Thanks,


Re: which purposes alv reports are used?

$
0
0

Hi Naveen.

 

ALV reports stands for abap list viewer.

 

basicaly, you first select the records you want to show, configure layout (general formats, like zebra output), configure fieldcat (each field format), and last, call function reuse_alv_grid_display. This is the function to show the result lines in an ALV grid format.

 

there are GRID format, LIST (kind old reports with write printing command) and Three format (like hierarch).

 

They have a lot of field format, layout configuration, header configurations, etc.

 

You can try in sap SE38 and search for BCALV* programs. There are a lot of exemples /models there.

 

 

A simple one is  BCALV_FULLSCREEN_DEMO. enter SE38 and execute it.

 

Try to understand its abap codification. It's simple and easy to understand its step-by-step comments.

 

 

 

 

best regards.

Glauco

Re: No Quota Generation

$
0
0

If you are able to see the quota getting generated under QTACC and have also set the transfer time correctly then it should definately go to IT2006. Just to test can you create a dummy empty record in IT2006 for Quota Type 03. Keep the number field as blank there, only put in the valid dates. Then run time eval and see if it then gets transferred.

Counter for Unique Values Suggestion Required

$
0
0

Hi Guys,

Need suggestion on the below situation..

I have a Characteristic..

Field1

100

200

300

400

100

100

 

Now i have to populate a count of the unique values for this field in BEx functionality.

So another field to be created which will show the result in report for above data as 4.

It should just take count of 1 even if there are duplicates whether 100 is shown as many times in data.

 

Please suggest how to achieve this.

 

Regards

Zabi

Re: GetNewObjectKey() returning empty

$
0
0

Maik, thank you for your attention.

 

 

 

My code is pratically the same of you, and when i commit the transaction all documents are succesfully added. And I don't know if it makes any difference but the document type i'm having problem is "BoObjectTypes.oOrders".

 

 

I'm using SAP 9 PL10 64bits, could you please test in the same environment?

SAP SRM Contract : identify Creation/Release and restrict BADI call

$
0
0

Hi There!

 

I need some suggestion on one of the issue i'm having now:

 

The SRM contract workflow works on n-level approval for which a BADI is implemented for the approvers. Now for one of the custom sub-process i need to trigger a different workflow from this BADI which works BUT create as much of workflow items as the number of calls of the BADI. Is there way to identify the code/identifier which say it is a 'SAVE' or 'RELEASE' event and also how can i restrict some piece of code inside the approval badi to be called only at the last call of the badi?

Re: Unable to create the Jco destination

$
0
0

Hi Anil,

 

Hope you are doing good.

Is the SLD up and running?
If the issue persists:

1.)Delete all the JCO destinations from Content Admin and then from SLD

2.)Restart the complete cluster once and do a SLD data trigger.
3.)Then recreate all the jco destinations again from content admin. (Important note: using the "New JCO Message Server Destination" button in SLD will create an inconsistent state. Please do not use it.)

 

let me know how this goes.

 

Thank you!

 

_____________

Kind Regards,

Hemanth

SAP AGS
 

Re: F1 help for parameters

$
0
0

Thanks a ton Richard, sorry for comparing with traditional RDBMS , wanted to know what all features were still not available.


Re: Row level locking - Lock objects

$
0
0

I read many threads where i can see that they are discussing about feasibility to do row level locking in abap. I am getting this logic & interested to only know,

 

why SUBRC comes as '0' even if the key parameters of the database record don't exist?

Re: ABAP Dumps while loading data form one DSO to another DSO

$
0
0

Hi Hardeep,

 

Looks like the transformation and DTP need to be activated again.

The error is RSBK (299) - 'Invalid program status'. So please activate the transformation and DTP possibly activate the DSO's too.

 

It should then work.

 

Thanks

Amit

Dump in PDP

$
0
0

Hi Guys,

 

I am getting this dump in production. can some help me.

 

Capture.PNG

 

Thanks & Regards,

Sankar Gelivi

Match Codes / Search Helps for Duplicate Check Vendor are missing

$
0
0


Hi Guys,

 

I'm trying to enable the Duplicate Check for the Vendor solution we have here and I couldn't help, but notice that when I'm setting up the DB Search in "Define Search Application", the out of the box values for existing search helps are already preconfigured and the values are the following:

 

BP MC_BP_ADDRESS Address Data

BP MC_BP_BANK_DETAIL Bank Details

BP MC_BP_GENERAL General Data

BP MC_BP_ID_NUMBER Identification Numbers

BP MC_BP_ROLES BP Roles

 

Unfortunately, when I check in SE11 - those search helps do not exist in the system. How can I get them deployed? Are they part of a Business Set that I missed to install and activate?

 

Thanks in advance,

Boris

Re: Invalid IS repository connection information to Oracle 11g

$
0
0

Did you ever get this fixed?

 

I'm having the same problem.

 

Best

Leandro

Viewing all 8746 articles
Browse latest View live




Latest Images