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: 

Changing value from (SAPLCOBC)resb_bt[] before commit

jackyhjj_sn
Explorer
0 Kudos
441

Hi,
I have a concern with one of my development. Currently I am using CO_XT_COMPONENT_ADD to add component to production order. Before run commit statement, I have assign (SAPLCOBC)resb_bt[] table to a field symbol and change its posnr field relatively.

Recently, I change a few more fields other than POSNR field which are potx1, potx2 and sortf using the same method. It is working fine but since it seems that it is not a proper way to update those fields, I have a concern whether this way of updating those field might not be the best way in ABAP development. Do you guys know what might be the impact of this method or maybe other FM that could achieve the same goal ?

PS : I have looked over the internet and there is no other way than update it using BDC recordings.

1 REPLY 1

Sandra_Rossi
Active Contributor
337

The nickname of this "method" is the "dirty assign". It's not supported by SAP, you'll have to manage all consequences by yourself. At your own risk as people use to say. You can find more detailed answers in the forum.