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

problem with BAPI_OUTB_DELIVERY_CHANGE to update serial numbers

Former Member
0 Likes
2,040

hi All,

I am using BAPI_OUTB_DELIVERY_CHANGE to update serial numbers. i am executing this directly in se37 giving delivery number alone in import parameters header_data, header_control and delivery.

and giving delivery numer, item no and random serial no in tables ITEM_SERIAL_NO. when i execute it is not throwing any errors. how ever the delivery is not updated with the serial no's.Return parameters is also nor showing any values.

Any pointers to solve this would be appreciated.

Regards,

Sreekanth.

6 REPLIES 6
Read only

former_member556412
Active Participant
0 Likes
1,469

Hi,

You may not be able to update any thing by simply executing the FM since no COMMIT is performed.

use this FM in report followed by FM BAPI_TRANSACTION_COMMIT. this will update the table.

Hope it gives you some idea.

Regards,

Bhanu

Read only

Former Member
0 Likes
1,469

Hi,

You need to use BAPI_TRANSACTION_COMMIT just after BAPI_OUTB_DELIVERY_CHANGE .

Mark WAIT = 'X' in the IMPORT parameter of BAPI_TRANSACTION_COMMIT.

For testing if it is working or not:

  • Goto SE37 --> click on FUNCTION MODULE --> TEST -->TEST SEQUENCES

  • First give BAPI_OUTB_DELIVERY_CHANGE and then BAPI_TRANSACTION_COMMIT.

  • Click on EXECUTE. Execute BAPI_OUTB_DELIVERY_CHANGE then 'BACK' and then BAPI_TRANSACTION_COMMIT with proper data.

  • Goto the transaction from where you can check entry has been created or not.

Regards

Read only

Former Member
0 Likes
1,469

solved

Read only

0 Likes
1,469

Hi Sreekanth Reddy ,

I am facing the same problem.

I want to know how did you solved it.

Is there any config reqrd or any flag to be checked/unchecked...

please suggest me....

Thanks

RK

Read only

0 Likes
1,469

Hi Sreekanth,

I am facing same problem.

Please guide me.

Thank you in Advance.!

Regards

Ashutosh

Read only

surykumar158
Explorer
0 Likes
1,469

Hello all,

You can use this parameter to update serial numbers

FM = WS_DELIVERY_UPDATE

Importing parameters

VBKOK_WA- VBELN

COMMIT-X

IF_DATABASE_UPDATE-1

IF_ERROR_MESSAGES_SEND_0-X

IT_SERNR_UPDATE- RFBEL(delivery number),RFPOS(item),SERNR

IF_LATE_DELIVERY_UPD-X

Thanks,

surya