‎2009 Apr 20 9:16 AM
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
‎2009 Apr 20 9:22 AM
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.
‎2009 Apr 20 9:22 AM
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.
‎2009 Apr 20 11:49 AM
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
‎2009 Apr 20 12:40 PM
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
‎2009 Apr 20 9:22 AM
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..
‎2021 Nov 28 2:20 PM