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

Extending vbap

Former Member
0 Likes
993

Hi I have created a ZZ fiield in a Z append structrue of vbap. And then added it to the item overview table control in screen 4900. But when I enter data into this field on the sales order item grid the data gets lost as soon as I press return. So it does not save to VBAP. What have i missed?

5 REPLIES 5
Read only

brad_bohn
Active Contributor
0 Likes
757

Force the field transport. Did you add the field to the PAI loop processing for the table control flow logic or just on the screen layout itself?

Read only

Former Member
0 Likes
757

Just the screen layout. I thought since it was just an extension fo vbap I wouldn;t need to modify any PBO/PAI logic. So any advice on where about in the PAI I should change?

Read only

0 Likes
757

Enter the value and then throw the transaction into debug immediately from the overview screen. You'll probably find that yuor screen field value gets dropped because it isn't transported to the program. You would want to do this in one of the big CHAINs before VBAP_BEARBEITEN is called, which is where the final validation occurs and where XVBAP gets appended.

Read only

Former Member
0 Likes
757

You would need to write logic in Sales order exit (MV45AFZZ ) .

Thanks

Seshu

Read only

Former Member
0 Likes
757

I needed to add the new field to the chain statements as per OSS note 862228. Once in here the user exit MV45AFZZ was getting called and I could pass the data to xvbap.