‎2011 Sep 10 9:47 PM
Hi Experts,
For adding fields in Vendor Master , I have implemented BADI VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS and have done all relevant customizations . So now I am able to see customized push button on vendor master screen and relevant fields in the custom subscreen . Now the requirement is that pushbutton should be visible for a specific vendor account group (LFA1-KTOKK). Now the problem is in the method CHECK_ADD_ON_ACTIVE , i dont get LFA1 values and so i am not able to set pushbutton active flag only for specific vendor account group . Is there any way how this can be done ??
Please suggest.
Regards,
Kaustubh.
‎2011 Sep 11 3:37 AM
Hi
Try using dynamic assignment of the Field symbol to get the Account group from the program SAPMF02D and the field is RF02D-KTOKD.
Also check the whether this program is having instance during the execution in the method.
http://abaplog.wordpress.com/2007/03/01/reading-other-programs-data-using-field-symbols-in-abap/
Shiva
‎2011 Sep 11 9:57 PM
Hi Shiva,
Problem is method CHECK_ADD_ON_ACTIVE is triggered even below the display of first screen of XK01/02/03 . So in case of vendor creation according to me it is not at all possible because vendor is yet to select account group . According to me most we can do is restrict user input to these custom fields based on the account group .
Please suggest if you have better alternative to restriction method.
Regards,
Kaustubh.
‎2011 Sep 11 10:47 PM
Hi
I believe you can only suppress the tabstrip by method SUPPRESS_TAXI_TABSTRIPS
Max
‎2011 Sep 11 9:28 AM
Hi Kaustubh,
Did you check with field symbols .
Regards,
Madhu.
‎2011 Sep 11 12:52 PM
If you are using other enhancement points- you could use some in-memory data transfer to get the account group-
the badi would provide the parameters though.