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: 

Search Help for VL02n

tharaka_fernando
Contributor
0 Kudos

Dear Gurus,

I need to modify the search help of t-code VL02n initial screen.(When user select the execute button in f4 help screen, you get list of delivery numbers , in that screen I need to display ship-to-party customer description along with ship-to-party number). Is there a way to do this?

Thanks in advance

1 ACCEPTED SOLUTION

former_member213851
Active Contributor
0 Kudos

Hi Jam123,

If you want particular values should appear in the F4 help, then populate the Ztable with required contents and pass this to  FM F4IF_INT_TABLE_VALUE_REQUEST as follows:

Inside INCLUDE MV45AF0F_FCODE_ILIF  you need  to put below code using Implicit Enhancements.

Eg:

data: it_return type STANDARD TABLE OF DDSHRETVAL,

       wa_return like line of it_return.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VBELN.

*----

*Write the  query to populate the internal table GT_SHELP with

*required columns i.e.ship-to-party customer description along

*with ship-to-party number

*-----

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

      retfield         = 'VBELN'

      value_org        = 'S'

      callback_program = sy-repid

      callback_form    = 'CALLBACK_ROUTINE'

      dynpnr           = sy-dynnr

    TABLES

      value_tab        = GT_SHELP

      return_tab       = it_return

    EXCEPTIONS

      parameter_error  = 1

      no_values_found  = 2

      OTHERS           = 3.

  IF sy-subrc  <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

*---- Now IT_RETURN has all requires search help Values.

So use  FM DYNP_VALUES_UPDATE to pass these values on selection screen.

Best Regards,

Sachin

7 REPLIES 7

Former Member
0 Kudos

its possible using exits

Here list of possible exist for the transaction VL02N you can try one among these.

V02V0001  Sales area determination for stock transport order

V02V0002  User exit for storage location determination

V02V0003  User exit for gate + matl staging area determination (he

V02V0004  User Exit for Staging Area Determination (Item)

V50PSTAT  Delivery: Item Status Calculation

V50Q0001  Delivery Monitor: User Exits for Filling Display Fields

V50R0001  Collective processing for delivery creation

V50R0002  Collective processing for delivery creation

V50R0004  Calculation of Stock for POs for Shipping Due Date List

V50S0001  User Exits for Delivery Processing

V53C0001  Rough workload calculation in time per item

V53C0002  W&S: RWE enhancement - shipping material type/time slot

V53W0001  User exits for creating picking waves

VMDE0001  Shipping Interface: Error Handling - Inbound IDoc

VMDE0002  Shipping Interface: Message PICKSD (Picking, Outbound)

VMDE0003  Shipping Interface: Message SDPICK (Picking, Inbound)

VMDE0004  Shipping Interface: Message SDPACK (Packing, Inbound)

Former Member
0 Kudos

You can try the below method :

There are many ways to get the perticular search help . Like you can check the screen number and program, then from se80 go to that screen and you can get the search help name from the screen painter.

Then go to that search help (via se11). You can find there is an option to provide search help exit. Its basically a function module which import and export the table , that shows in the search help along with some other data. So you can try to modify that table inside that search help exit.

haresh_manani
Explorer
0 Kudos

You can append a new search help to the original collective search help i.e. to "VMVL".

Here is the process:-

Open the search help in SE11.

Then Goto-> append search help or press F5,after that use the create button to append search help, give a short description to that new search help.

After that in the included search help tab, you need to add another search help that will contain the ship-to-party name and description.

Note that you need to create a Database view in the combination of tables LIKP and KNA1 that will be for the ship-to-party code and description, you can take other fields also as per your requirement.

This database view will be used in your included search help.

After saving and activating it, come to the main search help screen,here you need to assign the parameter that is must else your delivery challan number would not be copied.

Position the cursor on your new search help and select the parameter assignment button, select vbeln from it.

Its done Enjoy 🙂

former_member213851
Active Contributor
0 Kudos

Hi Jam123,

If you want particular values should appear in the F4 help, then populate the Ztable with required contents and pass this to  FM F4IF_INT_TABLE_VALUE_REQUEST as follows:

Inside INCLUDE MV45AF0F_FCODE_ILIF  you need  to put below code using Implicit Enhancements.

Eg:

data: it_return type STANDARD TABLE OF DDSHRETVAL,

       wa_return like line of it_return.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VBELN.

*----

*Write the  query to populate the internal table GT_SHELP with

*required columns i.e.ship-to-party customer description along

*with ship-to-party number

*-----

  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

    EXPORTING

      retfield         = 'VBELN'

      value_org        = 'S'

      callback_program = sy-repid

      callback_form    = 'CALLBACK_ROUTINE'

      dynpnr           = sy-dynnr

    TABLES

      value_tab        = GT_SHELP

      return_tab       = it_return

    EXCEPTIONS

      parameter_error  = 1

      no_values_found  = 2

      OTHERS           = 3.

  IF sy-subrc  <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

  ENDIF.

*---- Now IT_RETURN has all requires search help Values.

So use  FM DYNP_VALUES_UPDATE to pass these values on selection screen.

Best Regards,

Sachin

0 Kudos

    Thank you for you reply and I created the Serach help according to abve and its working fine. Now What I need to do is to get the selected VBELN value to standard VL02n screen. below is my code.

.....code goes here..

CALL FUNCTION 'F4UT_RESULTS_MAP'
      TABLES
        shlp_tab          = shlp_tab
        record_tab        = record_tab
        source_tab        = lt_final
      CHANGING
        shlp              = shlp
        callcontrol       = callcontrol
      EXCEPTIONS
        illegal_structure = 1
        OTHERS            = 2.


    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

    callcontrol-step = 'DISP'.


    DATA : dyname LIKE  d020s-prog,
           dynumb LIKE  d020s-dnum,
           dynpfields  TYPE TABLE OF  dynpread,
           wa_dynpfields LIKE LINE OF dynpfields.


    dyname = 'SAPMV50A'.
    dynumb = '4004'.
    wa_dynpfields-fieldname = ls_final-vbeln.
    append wa_dynpfields to dynpfields.



    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname                     = dyname
       dynumb                     = dynumb
      TABLES
        dynpfields                 = dynpfields

              .
    IF sy-subrc <> 0.

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.


  ENDIF.



0 Kudos

Hi  Jam123,

Please try below COde:

  dyfields-fieldvalue  = ls_final-vbeln.

   dyfields-fieldname = 'VBELN'.

   APPEND dyfields.

   CALL FUNCTION 'DYNP_VALUES_UPDATE'

     EXPORTING

       dyname     = sy-cprog

       dynumb     = sy-dynnr

     TABLES

       dynpfields = dyfields.

0 Kudos

Hi jam 123,

Please let us know if your search help is working as per requirement and close the thread if your issue is resolved.