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: 

Update KNA1 table using DEBMAS IDOC custom (Z segement) segment

sanjana_lingras
Active Participant
0 Kudos

Hi All,

We are facing issue in updating KNA1 table fields using custom segment values.

Values are properly populated in custom segment and we found the user exit for inbound idoc processing as well i.e. EXIT_SAPLVV02_001.

But once we get the data in IDOC_SDATA how should we process it , we do not want to write direct database table update for KNA1.

Is there any customer exit or BADI available where we can pass IDOC-SDATA and on posting of idoc data will be updated in KNA1 table.

If idoc fails data should not be updated. We want to process data from custom segment which should update standard table KNA1.

BAPI or direct table update approach we do not want to use.

Regards,

Sanjana

1 REPLY 1

Former Member
0 Kudos

Hi,

I suppose the exit EXIT_SAPLVV02_001 gets called after the customer has been created. You can also try using the BTE DE_BALE which is called during inbound IDOC processing where you can populate the custom fields in KNA1 (structure x_e1kna1m).

Hope this helps,

~Athreya