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 custom field to XK01

Muniyappan
Active Contributor
0 Likes
4,003

Hello Gurus,
I want to add custom field to (Say XTEST) to XK01 on purchasing Data Screen as shown in attached screenshot.
Program - SAPMF02K Screen - 310
I am new to BADI and Enhancements.
Please help me regarding how to do this?

Moderator Message: Urgency removed. Please read the

Message was edited by: Suhas Saha

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,126

AFAIK there is no offical customer exit/BAdI for this, it will be a modification of standard.

The official BAdI to extend those screen are VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.  (Check the "student info" icon for an idea, and read BAdI documentation, that will create another icon which will display other screen, but will not enable insertion in standard screen, read also Customer view on vendor modification (MK01, XK01...))

If you want to do it the "old way", start with Note 1561889 - New tax number in the vendor/customer master data which add a field to vendor, that will give you an idea of the Customizing table to fill after modifiying the screen (or copying it to your namespace and changing some values of internal SAP Customizing table)

Regards,

Raymond

Hello Gurus,
I want to add custom field to (Say XTEST) to XK01 on purchasing Data Screen as shown in attached screenshot.
Program - SAPMF02K Screen - 310
I am new to BADI and Enhancements.
Please help me regarding how to do this?

Moderator Message: Urgency removed. Please read the

Message was edited by: Suhas Saha

10 REPLIES 10
Read only

RaymondGiuseppi
Active Contributor
0 Likes
3,127

AFAIK there is no offical customer exit/BAdI for this, it will be a modification of standard.

The official BAdI to extend those screen are VENDOR_ADD_DATA and VENDOR_ADD_DATA_CS.  (Check the "student info" icon for an idea, and read BAdI documentation, that will create another icon which will display other screen, but will not enable insertion in standard screen, read also Customer view on vendor modification (MK01, XK01...))

If you want to do it the "old way", start with Note 1561889 - New tax number in the vendor/customer master data which add a field to vendor, that will give you an idea of the Customizing table to fill after modifiying the screen (or copying it to your namespace and changing some values of internal SAP Customizing table)

Regards,

Raymond

Read only

madhu_vadlamani
Active Contributor
0 Likes
3,126

Hi swamy,

Instead of modifying the standard screen,try to  develop a custom screen using the badi and use it.

Regards,

Madhu.

Read only

Muniyappan
Active Contributor
0 Likes
3,126

Hi Madhu and Raymond,

Thanks for information.

but I am not having any knowledge about BADI and How to implement it.

Will you please explain me in details what i need to do?

Read only

0 Likes
3,126

Hi,

There is  badi with one for get and set data.You can use VENDOR_ADD_DATA_CS.if moderators treat as a basic if i start answer about how to use this badi. You start the existing threads else post.

Regards,

Madhu.

Read only

0 Likes
3,126

Hi Madhu,

Thanks for you reply.

If I  use BADI , I need to add Pushbutton  ( refered  to link given by Raymond ) and after pressing  that  I can see custom fields

but my requirement is to add field in Purchasing Data screen only.

I checked  whether we can achive the same from  enhancement for XK01/XK02/XK03.

I found only Enhancement SAPMF02K but there is no screen exits for in this.

It contain only one function module exits EXIT_SAPMF02K_001 (Vendors: User Exit for Checks prior to Saving).

So I want to ask you is there any way to add this custom field to Purchasing data screen.

Or it is impossible to fulfill  this requirement ?

Read only

0 Likes
3,126

Hi Muniappan,

As i know there is no badi or exit available in standard.

Regards,

Madhu.

Read only

0 Likes
3,126

AFAIK no, without modifying standard SAP dynpro and code...

Regards,

Raymond

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,126

I remember we had to use GuiXT to achieve something similar in Sales Order transactions.

BR,

Suhas

Read only

0 Likes
3,126

Thanks Madhu your valuable information.

Please reply to me if you find any solution to fulfill this requirement.

Read only

0 Likes
3,126

@Madhu and @Raymond

Thanks Madhu and Raymond for your valuable information.

Please reply to me if you find any solution to fulfill this requirement.

@Suhas

Thanks Suhas.

I don’t have any knowledge about GuiXT.

Please explain me in detail what I need to do to add custom field in XK01/XK02/XK03 without using BADI.