2008 Nov 11 4:34 PM
Hello,
I am using SET PARAMETER ID in a custom check function module which gets invoked if invocie is postd.
DATA: v_event_belnr like RBKP-BELNR, " BELNR passed from event func.
v_event_GJAHR like RBKP-GJAHR.
SET PARAMETER ID 'RBN' FIELD V_EVENT_BELNR.
SET PARAMETER ID 'GJR' FIELD V_EVENT_GJAHR.
And then retirving the data using GET PARAMATER in the porgram which is submitted insisde function module.
GET PARAMETER ID 'RBN' FIELD V_EVENT_BELNR.
GET PARAMETER ID 'GJR' FIELD V_EVENT_GJAHR.
Do I need to free the data from the ID once the job is done ? If two invocie gets created simultanoruly, will this cause a problem because posting event during invocie posting will invoke same function module and the function module will try to SET parameter ID "RBN" and "GJR" for both of the invoices at same time ?
Regads,
Rajesh.
2008 Nov 11 4:57 PM
> If two invocie gets created simultanoruly, will this cause a problem
Will not be a problem due to
SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions.
As a best programming practice better to clear the memory
a®
Hello,
I am using SET PARAMETER ID in a custom check function module which gets invoked if invocie is postd.
DATA: v_event_belnr like RBKP-BELNR, " BELNR passed from event func.
v_event_GJAHR like RBKP-GJAHR.
SET PARAMETER ID 'RBN' FIELD V_EVENT_BELNR.
SET PARAMETER ID 'GJR' FIELD V_EVENT_GJAHR.
And then retirving the data using GET PARAMATER in the porgram which is submitted insisde function module.
GET PARAMETER ID 'RBN' FIELD V_EVENT_BELNR.
GET PARAMETER ID 'GJR' FIELD V_EVENT_GJAHR.
Do I need to free the data from the ID once the job is done ? If two invocie gets created simultanoruly, will this cause a problem because posting event during invocie posting will invoke same function module and the function module will try to SET parameter ID "RBN" and "GJR" for both of the invoices at same time ?
Regads,
Rajesh.
2008 Nov 11 4:57 PM
> If two invocie gets created simultanoruly, will this cause a problem
Will not be a problem due to
SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions.
As a best programming practice better to clear the memory
a®
2008 Nov 11 5:00 PM
Hi
Remember u can try to use the IMPORT/EXPORT stataments in order to use the ABAP memory instead of SAP memory.
Max
2008 Nov 11 5:01 PM
Hi,
Follow the Standard Coding Pratices and clear any variable/memory Var, once it is used.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |