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: 

Function CS_BT_STPOB_UPDATE not inserting records into item table.

Former Member
0 Kudos

Dear Friends,

I am currently working on a userexit PCSD0001 for tcode CS01. In that while creating BOM when the user enters a material number in the material component tab, i need to fetch some data from material master and perform some calculation and update the quantity field.

Sometimes i also need to add one or two line items after the first line item.

So i have added a Function code(button) to the application toolbar and on clicking that all my action should be performed.

I have coded in include ZXCSAU01 of exit EXIT_SAPLCSDI_001 and reading the line items using the FM CSUE_ITEMS_EXPORT as said in the exit documentation.

After this iam able to update already existing line(Say the first item which the user entered) fields using FM CS_BT_STPOB_UPDATE by passing evbkz = 'U' (for update) and etabix = 1 (to modify first line item).

But iam not able to insert new line items using FM CS_BT_STPOB_UPDATE by passing evbkz = 'I' (for Insert) and etabix = 2 (to insert after the first line item).

It is just creating a empty line below the first line.

So what else i am missing here? I have spent almost a whole day debugging the application but could not find a turn around, any suggestion would be appreciated.

Regards

Karthik D

1 ACCEPTED SOLUTION

matt
Active Contributor
0 Kudos

Moved to correct forum. Please take care to post in the correct forums.

3 REPLIES 3

Former Member
0 Kudos

Any ideas?

matt
Active Contributor
0 Kudos

Moved to correct forum. Please take care to post in the correct forums.

Former Member
0 Kudos

Thanks Matt, i will ensure that in the future...

Regards

Karthik D