Application Development 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: 

Enhance FM:SD_F4_EXTENDED with new custom fields

0 Kudos

How to enhance the function module SD_F4_EXTENDED add new custom fields to it, as implicit enhancements are not feasible to add new field to the search help screen resulting from SD_F4_EXTENDED(Used - search help shipment number in VT02n).

8 REPLIES 8

Former Member
0 Kudos

If you are planning to call this FM in your custom program or enhancements, then it's better you copy the FM and add the fields.. and call the Z FM in your program.

0 Kudos

Function module SD_F4_EXTENDED is used to get search help for shipment number in VT02n by sap not in any custom program or enhancement.We can not replace this standard FM by cuatom FM , we need to enhance the FM but no idea about how do it or possible options.

0 Kudos

Hi Shri,

Where do u want to add new fields? In 'Find Shipment' screen?

Regards

Sreekanth

0 Kudos

Hi sreekanth,

Yes in the Find shipment screen ,if possible under general shipment tab else anywhere in the screen also fine.

Thanks

0 Kudos

Hi,

With regards

Sreekanth

0 Kudos

Hi, thanks a lot.

adding new field is working but unable to add selection text to it ? if you have any idea how to add selection text ,for ex: so_text in your screens

0 Kudos

Hi

1. You can use the FM SELECTION_TEXTS_MODIFY' in the INITIALISATION event in the main Program.You have to create another implicit enhancement. Debug the program and locate a spot.Refer to Thread

http://scn.sap.com/thread/1750557

2. Second option is using AT SELECTION-SCREEN OUTPUT event (Recommended)



Also, refer to SAP Notes 336765 and 1303261.


Regards

Sandy

0 Kudos

Hi,

There is no proper spot to use any of the events(at selection screen output or initialization) in the program and also FM:SD_F4_EXTENDED is using call selection screen to call the screen.

i. FM SELECTION_TEXTS_MODIFY is useful if we can use initialization event

ii. Loop at screen is useful if we can use AT SELECTION SCREEN OUTPUT

ii. SELECTION SCREEN COMMENT also requires text elements.

Is there any way to update the screen names after CALL SELECTION SCREEN or is there any way to enhance selection texts(Go to --> Selection texts) as it is asking for access key?

Regards,

Shrinivas