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

Adding fields in Vendor Master dynamically

Former Member
0 Likes
759

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.

5 REPLIES 5
Read only

Former Member
0 Likes
673

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

Read only

0 Likes
673

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.

Read only

0 Likes
673

Hi

I believe you can only suppress the tabstrip by method SUPPRESS_TAXI_TABSTRIPS

Max

Read only

madhu_vadlamani
Active Contributor
0 Likes
673

Hi Kaustubh,

Did you check with field symbols .

Regards,

Madhu.

Read only

Former Member
0 Likes
673

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.