Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with get parameter id

former_member201364
Participant
0 Likes
1,586

Hi,

In a Z function module i'm calling sales_order_simulate bapi. Before calling the bapi I'm setting a flag and i need to import it in a pricing routine.

First i tried using export and import statements.But it did not help.The flag is not imported. So i'm using set parameter id and get parameter id statments. But the sy-subrc after get parameter id 4.

I'm using the below syntax

In the z function module.

SET PARAMETER ID 'ZSI' field LD_SIMULATE.

In the sales order routine.

GET PARAMETER ID 'ZSI' field LD_SIMULATE.

Is there anything to deal with entries in TPARA table, when using set parameter id and get parameter id?

Please let me know if i'm missing something else.

Thanks in advance,

Poornima

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
1,032

So did you create an entry for "ZSI" in TPARA via SE80? This is a prerequisite.

Thomas

P.S. if you did, then somehow your calling hierarchy is leaving the user context (are you doing an RFC?), so the GET does not find the parameter that was SET beforehand. Try also EXPORT/IMPORT TO/FROM SHARED MEMORY.

5 REPLIES 5
Read only

ThomasZloch
Active Contributor
1,033

So did you create an entry for "ZSI" in TPARA via SE80? This is a prerequisite.

Thomas

P.S. if you did, then somehow your calling hierarchy is leaving the user context (are you doing an RFC?), so the GET does not find the parameter that was SET beforehand. Try also EXPORT/IMPORT TO/FROM SHARED MEMORY.

Read only

0 Likes
1,032

Hi Thomas,

In the bapi call, the destination is specified as none.

CALL FUNCTION 'BAPI_SALESORDER_SIMULATE' destination 'NONE'

It did not work even after creating set/get parameter id in se80.

Can you please let me know how to EXPORT/IMPORT TO/FROM SHARED MEMORY?

Thanks in advance,

Poornima

Read only

0 Likes
1,032

I strongly assume that DESTINATION 'NONE' is causing the sympton, check out this recent blog:

/people/thorsten.franz3/blog/2009/04/16/calling-function-modules-in-parallel-universes

For your question, check all the available online help, e.g.

http://help.sap.com/abapdocu/en/ABAPEXPORT_DATA_CLUSTER_MEDIUM.htm#!ABAP_ALTERNATIVE_5@5@

Thomas

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,032

For parameter ids entry should be created in TPARA but that is not really mandatory.

You can Import the value and check for INITIAL or NOT..

Read only

janewar
Participant
0 Likes
1,032

BAPI_USER_GET_DETAIL