Skip to Content
author's profile photo Former Member
Former Member

How to implement a Popup in VA01

Hi There.

I'm implementing the user exit for Items MV45AFZZ to do some validations, In addition of that I need to include a popup screen where I need to display a list of batches available and allow the user to select one and refresh it in the line item of the sales order.

I don't have an Idea how to include this screen.

Thanks in advance

Regards

Alexis

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Nov 14, 2007 at 08:43 PM

    You can use this FM to display the list of the BATCHes.

    F4IF_INT_TABLE_VALUE_REQUEST.

    DATA IT_RETURN TYPE DDSHRETVAL OCCURS 0 WITH HEADER LINE.
    * Internal table for storing the batches
    DATA : BEGIN OF IT_CHARG OCCURS 0,
            CHARG TYPE CHARG
           END   OF IT_CHARG
    
    data: l_field type DFIES-FIELDNAME.
    l_field = 'CHARG'.
    
    * fill the table TI_CHARG from your source
    
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = l_field
          VALUE_ORG       = 'S'
          DISPLAY         = ' '
        TABLES
          VALUE_TAB       = P_IT_VARIANT1
          RETURN_TAB      = IT_RETURN
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC = 0.
       read table IT_RETURN  index 1.
       if sy-subrc  =0.
         your_field    = IT_RETURN-FIELDVAL.
       endif.
      ELSE.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.