05-06-2014 10:54 AM
Hello Everyone,
i have created an Extra tab(like ADDITIONAL DATA B) using BADI, i have added fields from VBAP table, its working fine. But when i add fields from KOMK structure(KOMK-STCEG) only empty field is showing. Do i need to code something in PBO or PAI?
Thanks & Regards,
NarsiReddy Cheruku.
05-06-2014 12:00 PM
Hi,
Check in debug if komk-stceg field has any value. if value is there then it should display.
Regards,
Aswath.
05-06-2014 12:15 PM
Hi Aswath,
There is value, any field which i add from KMOK structure is showing empty field.
Just i have added fields to screen painter as i did for VBAP fields. But it is not working.
Thanks & Regards
NarsiReddy
05-06-2014 12:29 PM
Hi,
Actually if the field is linked to the structure which is having value in the screen then it should display. Check whether your field is linked to dictionary in layout. i,e whether from dictionary check box is ticked.
Regards,
Aswath.
05-06-2014 12:37 PM
please see this...
If i have done any thing wrong, please correct me.
DO i need to code anything for displaying in PBO or PAI?
05-06-2014 1:02 PM
Hi,
This method is right but i am asking you to check whether the below check box (from dict) is ticked for this field in layout.
regards,
Aswath.
05-06-2014 1:10 PM
hi Aswath,
I have not understood what is "check box (from dict) is ticked for this field in layout."
05-06-2014 1:12 PM
Hey you have added the field in additional fields 2 tab right? so open the layout and check the properties of your added field in SE51.
05-06-2014 12:47 PM
Yes, you need to add logic to populate the fields in the screen. Your BADI would be having a method for that. Write code in it.
Regards,
Ashish
05-06-2014 12:59 PM
hi ashish,
i have not coded for populate the fields in screen before, if possible can you post some sample code.
Thanks in advance,
Regards,
NarsiReddy.
05-06-2014 1:47 PM
Hello NarsiReddy,
I assume that you have linked the field KOMK-STCEG using "Get from Dictionary" option from your above screenshot.
In PBO section, make sure to write the logic to update the value in the field. The logic which you would build, would be based on your requirement. For instance, you can use BELNR to check and its corresponding STCEG could be found in the structure KOMK.
But if the KOMK structure itself is not filled with any value, then there is some problem with your code. Try to check your BADI and its corresponding structures which would get updated at runtime and use them appropriately.
Thank you.
Regards,
Naresh
05-06-2014 2:02 PM
Hello Naresh Devineni,
Thanks for your reply, yes, you are right i have added using get from dictionary option.
What code nedded to write in PBO module, please give some example code.
Thanks & Regards,
NarsiReddy Cheruku.
05-06-2014 2:10 PM
05-06-2014 2:13 PM