Call Pop-up screen with I/O fields form function module.

Hello experts,
  I have a Zfunction module with input paramteres i_matnr, i_posnr and i_kwmeng.
  My requirement is to call a pop-up screen with following fields.
  Material - Inputbox for material (Read Only)  " v_matnr
  Item     - Inputbox for Item (Read Only)      " v_posnr
  Quantity - Inputbox for Qty (Read Only)       " v_kwmwng
  Price    - Inputbox for Qty (Change only)     " v_price
  Submit button.
  I created function ZSD_MAT_DATA.
  Added statement CALL SCREEN 0005
In PBO_0005, (include Prog)
  v_matnr = i_matnr
  v_posnr = i_posnr
  v_kwmeng = i_kwmeng
1. But it gives me error for not declaration i_matnr. What I am missing here?
2. Is there anything to make window as pop-up with some specific size?
Regards,
RH

Hi,
You can use the stanadard FM K_KKB_POPUP_RADIO3
else like same you can craete a new function accordind to your requirement.
Hope it helps you.
Reagrds
Arbind

Similar Messages

  • Handling Double click on a Pop-up screen with ALV Grid

    Hello Experts,
    I have an issue handling double click on ALV Pop-up screen. I tried to achive this using following steps.
    1. I defined a local class in Top-include to handle double click and implemented it in the following way.
    CLASS lcl_alv_event_handler DEFINITION.
    PUBLIC SECTION.
    CLASS-METHODS:
    on_double_click FOR EVENT double_click
    OF cl_gui_alv_grid
    IMPORTING e_row
    e_column
    es_row_no.
    ENDCLASS. "lcl_alv_event_handler DEFINITION
    *~~~ Implementation code
    CLASS lcl_alv_event_handler IMPLEMENTATION.
    To handle Selection of Issue data on Screen 100
    METHOD on_double_click.
    DATA: lt_row_no TYPE lvc_t_roid,
    ls_req TYPE zcst_zirt_seltab.
    READ TABLE gt_req
    INTO ls_req
    INDEX e_row-index.
    g_req_id = ls_req-zzrequest_id.
    gv_selected = true.
    CALL METHOD go_alv->dispatch
    EXPORTING
    cargo = 'OK'
    eventid = 3
    is_shellevent = ' '
    is_systemdispatch = 'X'
    EXCEPTIONS
    cntl_error = 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.
    ENDMETHOD. "on_double_click
    ENDCLASS. "lcl_alv_event_handler IMPLEMENTATION
    2. Registered the event in the PBO module of the screen
    ls_events-eventid = 3.
    ls_events-appl_event = gc_true.
    APPEND ls_events TO lt_events.
    CALL METHOD co_alv->set_registered_events
    EXPORTING
    events = lt_events
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    illegal_event_combination = 3
    OTHERS = 4.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT co_alv_event_handler.
    SET HANDLER: co_alv_event_handler->on_double_click FOR co_alv.
    CALL METHOD co_alv->set_toolbar_interactive.
    3. In the PAI module of Screen, tried to handle the event 'OK' that waqs registred in PBO.
    CASE save_ok.
    WHEN 'OK'.
    Get selected line
    CALL METHOD io_alv->get_selected_rows
    IMPORTING
    et_index_rows = lt_rows
    et_row_no = lt_rows_no.
    IF NOT lt_rows IS INITIAL.
    READ TABLE lt_rows INTO ls_rows INDEX 1.
    IF sy-subrc EQ 0.
    gv_selected = 'X'.
    READ TABLE it_req
    INTO ls_req
    INDEX ls_rows-index.
    e_req_id = ls_req-zzrequest_id.
    SET SCREEN 0.
    ENDIF.
    ELSE.
    SET SCREEN 0.
    ENDIF.
    With this code what is happening is, when user double clicks a line on Pop-up screen with ALV grid data, the program is able to successfully get into the class implementation but the control is not going to PAI module to execute the OK_code handling part.
    Am I doing this in the right way? Appreciate quick suggestions. Proper posts will be thoroughly awarded with points.
    Thx.
    Minni

    Put your code into the Event handler Implementation of Double Click which is there in the PAI Module.
    Regards,
    Naimesh Patel

  • If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    If I click on an e-mail address link in a web page instead of a blank message opening I always get a pop up screen with a log-in for googlemail. I do not have and do not want a googlemail account. I just want to be able to send e-mails using Outlook.

    OUtlook was already set as the mail client for FF, and is my operating system (XP)'s default mail programme. therefore problem not solved at all. what I get whenever I follow a link in a webpage to send an e-mail is a little pop up window asking me to sign in to gmail or open an account. any other suggestions?

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • Howt 2 delta with the extractor created on Function Module..

    hi there,
    can anybody tell me how to update delta with the extractor created on Function Module..
    rgds,
    amol

    refer to the document at the below link
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    Generic Extractor using FM with Delta Logic
    hope it helps,
    rgs,
    Parth.
    Edited by: Partho Mukherjee on Jan 12, 2009 6:00 PM

  • Is it possible to create a pop up screen with alv tree within it?

    I was wondering whether it is possible to create a pop up screen where an ALV tree is within the pop up screen and the user may select a record from it..
    is there a function module for such function?

    you may use class cl_gui_alv_tree and display it in a popup screen. Look at RSDEMO_DIALOGBOX_CONTROL program (popup + cl_gui_picture control), and you combine it with BCALV_TREE_04 (cl_gui_alv_tree) to replace cl_gui_picture. You may access all demos from menu SE38, Environment, Examples (and finally Controls Examples in your case)

  • Calling pop up screen CRM UI from BADI

    Hi,
    I have a requirement to call a pop-up screen in CRM UI from a BADI. The scenario is like:
    Whenever a new account in created through CRM UI, a duplicate check has to be done using BADI. If any similar entries found these entries are to be displayed in a pop-up window in CRM UI. As I am new to CRM 2007 please help me in implementing this.
    Thank you,
    Rregards,
    Renjith

    Hi,
    Try to use CREATE_POPUP or POPUP_TO_CONFIRM method of IF_BSP_WD_WINDOW_MANAGER interface .
    Regards
    Gaurav

  • How to Call a standard screen with in a custom function module

    Hi Guru,
    I am copying a standard function module SWU_WF_TASK_DISPATCH in to Z function module in that they where calling a standard screen.
    Some one help me how to copy or call this standard sceen within the function module.
    Regards
    Paul

    Hi,
               for that you have to create screen from SE51 same number in standard and program name should be the name of Z function group's main program and declare all varriable in function group's top inclue.
    I think copy is not possible u have manually create screen for that.
    Regards
    Gagan

  • Error with field E_ENDEDATUM, function module PK_ENDDAT_AUS_START_PLUS_WORK

    Hi
    Well, i don´t know exactly were put this, but, here it is.
    The estandard function module PK_ENDDAT_AUS_START_PLUS_WORKD has an error on his definition: due to the field E_ENDEDATUM has no type, when you test it on SE37, gets a dump error message.
    Maybe using it directly in a program, may not happen (I didn´t tested it), but if you first need make tests, you CAN NOT!!
    How notify this issue to SAP AG or to somebody of staff of programming???
    Thanks in advance.
    José Gabriel Martínez.

    you cannot test it in SE37. you have to write a small program to call this function and test it.
    and the data type of the variable to be used with E_ENDEDATUM  should be of type sy-datum or SCAL-DATE
    Regards
    Raja

  • Error with the FIELD CAT function module.

    Hi folks,
    This was the error message i had got from the FIELDCAT function module.
    An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_READ_SRC_LINE_TOO_LONG', was
         not caught in
        procedure "K_KKB_FIELDCAT_MERGE" "(FUNCTION)", nor was it propagated by a
         RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        There was an attempt to read program "/A1SSPC/ITP_SCH_REP" from the database.
        The READ REPORT statement allows you to copy a program text into an
        internal table. The occupied line length in the program text must not
        exceed the width of the internal table.
        The internal table "\FUNCTION=K_KKB_FIELDCAT_MERGE\DATA=???" is 72 characters
         wide. The program line is
        204 characters wide.
    Reg,
    Hariharan

    You can do this
    TYPE-POOLS:slis.
    DATA: it_vabp TYPE STANDARD TABLE OF vbap WITH HEADER LINE.
    DATA: it_fieldcat TYPE slis_t_fieldcat_alv.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
       i_program_name               = sy-repid
       i_internal_tabname           = 'IT_VBAP'
       i_inclname                   = sy-repid
      CHANGING
        ct_fieldcat                  = it_fieldcat
    * EXCEPTIONS
    *   INCONSISTENT_INTERFACE       = 1
    *   PROGRAM_ERROR                = 2

  • Passing text parameter with spaces to oracle forms function

    Hi,
    I have a personalized link in R12.1.3 from OAF to a custom form, which is working fine:
    Item Style = Link
    Destination URI = form:PO:XXPO:STANDARD:XXXABC03:VENDOR_ID={@VendorID} QUERY_MODE=No
    View Instance = SupplierVO
    XXPO is the responsibility key, and PO the responsibility application
    XXXABC03 is the function name
    VENDOR_ID and QUERY_MODE are the form parameters
    This link works as expected.
    I have a problem passing a text parameter containing spaces. The Oracle Application Framework Developer's Guide
    Release 12.1.3 states the following
    Note: If you wish to send varchar2 parameter values that contain spaces, use \" to enclose the string value. For example, to pass in something of the form:
    TXN_NUMBER=LT INVOICE 1
    Use:
    TXN_NUMBER=\"LT INVOICE 1\"
    So my personalization becomes
    Item Style = Link
    Destination URI = form:PO:XXPO:STANDARD:XXXABC03:VENDOR_ID={@VendorID} VENDOR_NAME=\"{@VendorName}\" QUERY_MODE=No
    View Instance = SupplierVO
    But the problem is that the spaces in the vendor name parameter are replaced with %20 when the form opens, e.g. EXAMPLE%20SUPPLIER%20LTD instead of EXAMPLE SUPPLIER LTD
    Has anybody got this type of personalization working? Thanks in advance, Ruth
    Additional Note:
    In real life I have created a workaround for this example. I just pass vendor_id and have modified the XXXABC03 form to derive vendor_name from vendor_id. But I now have another requirement where the parameter WILL have spaces.
    In desperation I may add a function to the form to replace %20 with a space in text parameters.
    But it would be nice if Oracle worked how it is explained in the manual......

    Hi,
    I'm not sure if there is a built in function. Else, Javascript code would be necessary.
    Using the technique in the link below will do.
    http://www.java2s.com/Code/JavaScript/Form-Control/Jumptothenextfield.htm
    Unfortunately, it doesn't seem like that tabIndex attribute is supported in ADF Faces. Link below.
    ADF Faces setting the tab order between fields
    They are suggestions to use the <h:inputText> component instead but not sure if that is supported and if other problem may occur.
    Regards,
    Chan Kelwin

  • IDOC with ABAP - PI Port , RFC Function module

    Hi ,
    I am creating outbound Idoc in one system,  In the same  system I am using a ABAP - PI port and assigned a RFC function module.
    So when ever the outbound IDOC is created it will go to the port and triggers the RFC function module.
    now my question is how to get the outbound IDOC number in the RFC function module.
    I thought of reading the table EDIDC with message type, but all previous IDOC's aslo coming .
    Regards
    Bhaskar

    Hi Bhaskar, the IDOC control record or records are transfered to your function module in table paramater I_EDIDC. You could read the IDOC data by calling function modules EDI_DOCUMENT_OPEN_FOR_PROCESS and EDI_SEGMENTS_GET_ALL for each control record.
    Regards Jack

  • How to fetch values at runtime in field exit function module

    Hi all,
    I am creating a field exit for delivery date in Purchase requisition.
    For that I need to capture Delivery Date and Sale Order entered in purchase requisition and pass this to Function module and validate this data.
    I am using import and export parameters but it is giving runtime error.
    please tell me how to solve it.
    Regards,
    Sunny

    Hi,
    There are other ways to access the purchase requisition related values..that is using field symbols..
    pls check the below mentioned link:
    Re: Pricing Routine : Can we get the VBAP Data in this pricing routine.(VOFM)
    Identify the similar data fields for requisition.
    Hope this wil help..
    Sumit

  • Issue with creating virtual provider using function module

    Hello experts,
    We are building virtual cube based on function module by following the SAP guideliness.
    Upon execution of the virutal cube we get the following message:
    CX_SY_DYN_CALL_PARAM_MISSING Infocube parameter missing
    In method READ_DATA  of class CL_RSDRV_VPROV_LOC_NOSID
    Did anybody experienced this message and what was your resolution?
    Thank you ahead for any assistance

    Hi Naveen,
    In some cases where the cubes are build on FM, there can be a chance that the FM information gets missed out from the cube.
    Can you please try the below steps:
    a) RSDCUBE transaction and enter your cube name and Edit
    b) Click on button i(Informatiuon)
    c) Clieck on button 'Type/Attributes'
    d) Click on button 'details'
    e) in field 'FMOD/CLASS/HANA MOD', enter the FM you want for to use for the cube
    f) Save and reactivate the cube.
    Please let me know what happens?
    BR
    Prabhith

  • Pop up screen with radio buttons

    Hi,
    I'm a new to APEX and I've a requirement of creating popup page with two radio buttons.
    This pop needs to pop before the starting/Home page.User must select atleast one of those radio buttons and then it goes back to starting/home page unconditionally.
    Thanks,
    Mahender.

    Hi Mahender,
    OK - the user has finished with the login page and hasn't yet loaded page 1. Therefore, there is no page on screen, which is not possible :D
    What you can do is something like the following:
    1 - In your application, through Shared Components, create an Application Item called, say, G_OK_TO_CONTINUE
    2 - On your page 1, create a new branch. The Branch Point setting for this should be "On Load: Before Header" (this is the point before any page rendering starts). The page to point to would be your "popup1" (except that this should probably be a normal page rather than a popup). The Conditions section for this branch would have the following settings:
    Condition Type: Value of Item in Expression 1 != Expression 2
    Expression 1: G_OK_TO_CONTINUE
    Expression 2: 1
    3 - On your "popup1" page, you should then have a branch that takes the user back to page 1. This branch must set G_OK_TO_CONTINUE to 1 (use the "Set these items"/"With these values" settings on the branch to do this) otherwise you create a loop.
    So, when the user first logs in, Apex attempts to load page 1. The new branch is checked immediately and, as G_OK_TO_CONTIINUE is NULL at this point (and, therefore, does not equal 1), the branch will be triggered and the user is redirected to your "popup1" page. They do what they need to do on that page and, if you want them to actually go to page 1, the branch back to page 1 sets G_OK_TO_CONTINUE to 1, the new branch on page 1 checks this and because the condition is now false, the branch is not triggered and the user is passed through to page 1
    Andy

Maybe you are looking for

  • Suddenly my PC can not find out TC's hard drive

    I use TC as home sharing hard drive and connect my PC with TC through ethernet cable, but suddenly can not find it at my computer

  • How to rename column name of table?

    Hello... How to rename column name of table? The column have data. Thanks. Martonio.

  • Where to buy HD?

    Here is my situation. My MacPro HD died. It is being shipping from Apple, but I am in a dire situation. I need my machine running tonight to complete a project. I do not mind buying an extra drive, there is always a good use for one around my place.

  • Client not running ?

    Hi Eventhough i included weblogic.jar in class path, the client program throws exception like this. I am using weblogic server 8.1 as standalone mode Exception in thread "main" java.lang.NoClassDefFoundError: PortfolioClient (wron g name: stateful/Po

  • **Urgent ** Reports html problem

    Hi, I hava this problem: When I generate a report in client mode I see all fields correctly but in Web mode I see ************ in the same field, why? any idea?? tks