‎2014 May 14 11:30 AM
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.
‎2014 May 14 1:42 PM
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
‎2014 May 14 3:43 PM
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
‎2014 May 16 11:02 AM