Application Development 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: 

problem with the standard

former_member582701
Contributor
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

former_member582701
Contributor
0 Kudos

we did that using field symbol pointers