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

Call Transaction..

Former Member
0 Likes
952

Hi,

I am using BAPI to create Purchase order , my problem is after created the purchase order i need to create Inbound Delivery with help of Call transaction.

when i execute in the night time it is working fine in background but when i execute in day time it doesn't work . can you please give some suggestion to fix this problem.

Thanks in advance,

Regards,

Kannan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
929

After creating Purchase Order using BAPI, call BAPI_TRANSACTION_COMMIT and pass 'X' to WAIT parameter. This will solve your problem.

Cheers

Satyanarayana.

Hi,

I am using BAPI to create Purchase order , my problem is after created the purchase order i need to create Inbound Delivery with help of Call transaction.

when i execute in the night time it is working fine in background but when i execute in day time it doesn't work . can you please give some suggestion to fix this problem.

Thanks in advance,

Regards,

Kannan.

7 REPLIES 7
Read only

Former Member
0 Likes
929

what is the exact error you are getting ?

Read only

Former Member
0 Likes
929

Hi Kannan,

This may be due to load on the server during day time.After Bapi add some <u>wait time</u> and use enquee/Dequee locks. We have similar issue SAP suggested to improve system performance .

Read only

Former Member
0 Likes
929

You can use RZL_SLEEP function module for the delay between transaction.

Hope this helps.

Bipin

Read only

Former Member
0 Likes
930

After creating Purchase Order using BAPI, call BAPI_TRANSACTION_COMMIT and pass 'X' to WAIT parameter. This will solve your problem.

Cheers

Satyanarayana.

Read only

Former Member
0 Likes
929

Hi,

I have solved myself. now i got the two more issues.

1 . i am fetching <b>netprice from flatfile</b>. i can see the same netprice while debug the BAPI function module, but after creating the PO the netprice got changed means some value does overwrite that flatfile netvalue.

2. we have <b>Our reference</b> and <b>your reference</b> fields on header detail in PO. here also while i debug i can see the value but after creating the PO no values are there.

kindly give suggestion to fix this problems.

Thanks,

Kanna.

Read only

0 Likes
929

Kannan,

Please check PO user exits. They may be overwriting the values which you are passing to the BAPI.

Cheers,

Satyanarayana

Read only

0 Likes
929

Hi,

Please check any user exits/Badis active in PO creation wahich may chaning your net price/Reference values.

Please check whether you are passing 'X' to POHEADERX-our_ref and POHEADERX-REF_1 fields .