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

DXVBAP UPDATE

Former Member
0 Likes
1,069

I need to update vbap-arktx after the EXIT_SAPLVEDA_001

But I found DXVBAP which is not allowing me to update

I'm getting error DXVBAP has no structure and therefor no component called......

For a particular condition I need to update KTEXT which is vbap-arktx

DXVBAP IS DECLARED AS OPTIONAL

what is optional means do I have to follow any spl syntax for them Plz guide me.

Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
825

This user exit is called from every segment interpretation. You will have to update E1EDP19-KTEXT when the conditions are met. But if your conditions involve data values from other segments, you will have to make sure that you read those segments. You have to also understand that this is a hierarchical structure, so in that loop of IDOC_DATA, all those segments that come before E1EDP19 should have processed by the time you come to E1EDP19 and you DXVBAP fields must have been filled in. So you read those values from DXVBAP and change E1EDP19.

Read only

0 Likes
825

I'm trying to read the values but I'm getting error dxvbak has no structure hence has no component matnr....

Read only

0 Likes
825

I am sorry, I forgot to mention that you will have to loop at DXVBAP and move the record into a local structure say ls_vbap LIKE XVBAP. Then you can refer to ls_vbap-matnr.

Read only

0 Likes
825

loop at dxvbap.

dxvbap LIKE XVBAP

move dxvbap to xvbap.

endloop.

its not accepting athe code

I'm getting error like is not defined.

DXVBAP is an optional (vbap is not declared in the exit)

Read only

0 Likes
825

DATA: ls_vbap LIKE xvbap.

LOOP AT dxvbap.

ls_vbap = dxvbap.

IF ls_vbap-matnr = 'XXX'.

...

ENDIF.

ENDLOOP.

Read only

0 Likes
825

ok tx how shall I update the value