11-23-2007 1:29 PM
Hi abapers,
I have a big problem.
I am using BAPI_RESERVATION_CHANGE in order to marked old reserves with flag of delete
After, we use BAPI_RESEVATION_CRATE1 in order to create the new reservation. The problem comes because both bapis use a global variable called s_resb where after first BAPI is filled with the first material of the old reservation.
Then, for create the new reservation use the same variable and i need to clear it.
Are there any thing i can do?
In addition, between executions, this variable is filled too without call fist bapi (i think it remains in memory)
Best regards,
Manel
pd: bapi_reservation_create1 has a user exit, however i can't access to s_resb.
11-23-2007 1:45 PM
Hi,
quite dirty, but quick and it works!!!:
Do the function calls each within a Z_prog in a way like this:
SUBMIT Z_CHANGE ......... AND RETURN.
SUBMIT Z_CREATE .......... AND RETURN.
In Z_progs there will be built a new program context, that will be destroyed after leaving (and with it the loaded function-group - that will initialize!).
Good luck
Jo
11-23-2007 1:45 PM
Hi,
quite dirty, but quick and it works!!!:
Do the function calls each within a Z_prog in a way like this:
SUBMIT Z_CHANGE ......... AND RETURN.
SUBMIT Z_CREATE .......... AND RETURN.
In Z_progs there will be built a new program context, that will be destroyed after leaving (and with it the loaded function-group - that will initialize!).
Good luck
Jo
09-20-2010 4:44 PM