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

Problem with fields from vbrk table.

Former Member
0 Likes
850

Hello everyone.

Firstly i created an extra tab using "BADI_SLS_ITEM_SCR_CUS" for transactions VA01, VA02, VA03.

In BADI_SLS_ITEM_SCR_CUS i have given the program name "zz_test_prgrm" and srenn number as 100.

Now i created program "zz_test_prgrm " and screen 100. After that i have added fields from VBAK,VBAP and VBRK table to screen 100.

fields added from VBAP and VBAK table are working fie,but field STCEG from VBRK is showing empty field.

Note: i have not coded anything in PBO or PAI modules of "ZZ_test_prgrm" because the field names are same as field names from database table.

please suggest me where i went wrong.

thanks & regards,

cheruku.

3 REPLIES 3
Read only

Former Member
0 Likes
773

Hi,

If my memory serves correct, the field STCEG is for the customer (KNA1-STCEG). Also, while creating the sales order how do you expect something from billing to be populated?

I think you need get this data into your custom screen based on KUNNR on your sales order.

Thanks,

Vikram.M

Read only

0 Likes
773

Yes, no chance to find VBRK (invoice) during creation of sales order....

You would have better chance to find this information in one partner in internal table XVBPA (from table VBPA) Also, if some data is displayed, it comes from statement TABLES which create a common interface work area.

So first read the BAdI documentation as there are methods provided to exchange information with the main program (e.g. ACTIVATE_TAB_PAGE receives VBAK, VBAP)

Also use search tool, I'm sure there is already a blog on this BAdI (Ehp 5)

Regards,

Raymond

Read only

0 Likes
773

This message was moderated.