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

Insert a custom field into T-code FB50

Former Member
0 Likes
2,485

Hi experts,

I am currently an internist at an ERP company in Vietnam. I got assigned to enhance T-code FB50 by adding a custom field.

Right now, through several readings and google-ings, I am aware that I have to find out what database table the FB50 uses and append some fields to that table. But I don't really have any ideas where to continue because literally I have been working with SAP/ABAP just for 4 days.

Any ideas would be appreciated. Thanks in advance,

Minh Nguyen

9 REPLIES 9
Read only

former_member213851
Active Contributor
0 Likes
2,190

Hi Minh,

Do you want to add extra field i.e column in the output after Executing TCODE FB50 or

want to dispaly extra screen field  (screen exit).

Please clarify and also mention name of  field you want to add.

Read only

0 Likes
2,190

Hi Sachin

According to the assignment, I need to add a new custom field on the header screen of T-Code FB50. And the new field will be retrieved from the Sale Order list in the system database.

Minh

Read only

0 Likes
2,190

Hi Minh,

In order to add extra field for TCODE FB50,  go to the screen to which you want to add custom field.

From menu path System->Status and note program and scren no say SAPMF05A and 1001.

Now go to SE80 and choose Program and enter the program name obtained in above case.

Now press Enter and from the list below Selet SCREEN option ,click on drop down and search for SCREEN number obtained in previous step.

Click on screen name and go to flow Logic and search for call customer-subscreen.Double click on it and you will go to screen . This is the subscrren area provided by SAP to add extra fields.

If you unable to finf the EXIT using call customer-subscreen , then you may lead ACESS key to modify the Standard SAP screen.

Best Reagrds,
Sachin

Read only

0 Likes
2,190

Hi Sachin

Sorry for taking such a long time to reply. I am not able to find any "call customer-subscreen. Is there any other possibilities 'cause I am pretty sure that I cannot get the ACCESS key to modify the Standard SAP screen as you said above.

Thank you very much for you time.

Cordially,

Minh

Read only

0 Likes
2,190

Hi Sachin

Basically I just want to do what Manoj did in this thread http://scn.sap.com/thread/3184032

But my problem is much simpler. I just need to add one additional field into FB50. And esspecially, I have to use BADIs as it's a requirement, therefore no ACCESS code will be provided.

Thanks in advance.

Minh

Read only

0 Likes
2,190

Hi Minh,

In SE80 ,you can also go for Enhancements option which is above SCREENs and create your own zenhancement to call SUBSCREEN where you want to add extra field  Inside PBO , using below stmt:

CALL SUBSCREEN area INCLUDING sy-repid  '1001'.

Also check for Implicit Enhancements asoocitaed with that screen number using the Menu path: Edit->Enhancement operations->Show Implicit enhancement Options.

Regarding BADIs:

Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code say FB50  and press F8 and you will see that control stopped at the break point which you had set on the cl_exithandler. Now In the exit name u can find list of badi's attached to the tcode FB50.

Best Regards,

Sachin

Read only

0 Likes
2,190

Hi Sachin

I couldn't see any Enhancement options in SE80. There is a lot of stuff above SCREENS but no Enhancement options.

Cordially,

Minh

Read only

0 Likes
2,190

Hi Minh,

Please check below screenshot. I can see the option for enhancements

Read only

0 Likes
2,190

Hi Sachin

I am having a few days off from work now so I will not be able to try it. I will get back to you asap.

Thanks a lot for your time.

Cordially,

Minh