Selection screen and smart form..

Hi Frnds,
In Creating Material transfer form  I need to have a selection screen giving two options whether the user wants 1) Material transfer form
                                      or      2) Material Transfer Challan.
And reg this selection the appropriate form should be generated.
(Note: I have created 2 appropriate forms. and no Print pgm , all code written in forms itself)
Thanks in advance.
Sree

hi,
u hav eto write print prog with  selection screen with two radio buttonsfor ex
parameter  Material transfer form radiobtton group rad.
parameter  Material Transfer Challan radiobtton group rad .
if  Material transfer form  = 'x'.
call sf Material transfer form
else .
call sf Material Transfer Challan

Similar Messages

  • PWB- Connection between selection screen and Application Form

    Hi Experts,
    I need your help regarding PWB.
    My requirement is, I need to fetch date and amount placed on selection screen into application form and those values I need to print through pwb using SAPScript.
    I am new to PWB so not getting how exactly I need to do this. Please help me on this.
    Thanks in advance.
    Regards,
    Abhijeet

    Hi,
    Write LEAVE TO SCREEN 0 in the PAI of screen 500.
    MODULE user_command_0500 INPUT.
      CASE g_ok_code.
        WHEN 'BACK' OR 'EXIT'.
        Goto Selection screen
          LEAVE TO SCREEN 0.
        WHEN  'CANC' .
          LEAVE PROGRAM.
        WHEN OTHERS.
        Do Nothing
      ENDCASE.
      CLEAR : g_ok_code.
    ENDMODULE.

  • Selection screen and pdf form

    hi
    i am creating a pdf form and i want to link this form to a selection screen. i will use the selection screen to send paramtetrs to the job.
    is there a way to do that?

    what you can do is add the same type of field in the interface of the form and pass it from the program to the interface of the form.
    Regards,
    Lalit Mohan Gupta.

  • ? MSWORD as EDITOR in sap script and smart forms ?

    Hi friends,
    How to use MSWORD as EDITOR in sap script and smart forms.
    Edited by: Julius Bussche on Jul 17, 2008 12:45 PM

    hi,
    Call transaction I18N
    go to I18N Customizing -> MS Word as Editor.Choose the Help-Button and follow the instructions.
    If transaction I18N is not available in your system yet (see SAP Note 848036), you can also enable this feature via program RSCPINST.
    Call transaction SE38, enter program RSCPINST and press F8. On the next screen,select Goto -> Set MS Word as Editor.

  • Diff  bet Adobe forms and smart forms?

    Hi Friends
    What is the diff between Adobe forms and Smart Forms
    Thanks & Regards
    Kanni

    Hello,
    Smartform:
    To create and maintain forms for mass printing in SAP systems. Besides using the printer for standard output you can also select the Internet (by using a generated HTML output), a fax, or e-mail as the output medium. Smart Forms allows you to execute simple modifications to the form and in the form logic by using simple graphical tools
    http://help.sap.com/saphelp_srm70/helpdata/EN/16/a369b1800e4bdda978ee0fe3b7bd2c/frameset.htm
    Adobe Form:
    Interactive forms in PDF format that allow users to fill out the form on the screen and save their entries in XML format in the form. When the SAP system receives the PDF form, it extracts the data saved in the form, and can process it further.
    http://help.sap.com/saphelp_srm70/helpdata/EN/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
    Links will provide more information.
    Thanks
    Ashutosh

  • Background Processing, Selection Screens and Variants

    Hi All,
    I am having a little trouble Background Processing with Selection Screens and Variants.
    When a user runs my report and selects the option of background processing, then they select a checkbox. Once this is checked, they should go and fill in details, press Execute and voila a background process is created. However what is happening is that when i execute it then it asks for a variant. I do not want this to happen. I want the values in the selection screens to be used as default. Here is my code for background processing
    FORM START_BACKGROUND_PROCESSING.
      CALL FUNCTION 'BP_JOBVARIANT_SCHEDULE'
        EXPORTING
          TITLE_NAME            = 'End Customer Report '
          JOB_NAME              = 'customer_report'
          PROG_NAME             = 'ZSE_SD_SALES'
      EXCEPTIONS
        NO_SUCH_PROGRAM       = 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.
    ENDFORM.                    "START_BACKGROUND_PROCESSING
    After the background process is started, all teh data is collated then written to the app server. this is the order
      ELSEIF R2 EQ 'X' AND SY-BATCH EQ 'X'.
        PERFORM INITIALIZE_DATA.
        PERFORM SELECT_DATA.
        PERFORM PROCESS_DATA.
        PERFORM GET_END_CUSTOMER_DATA.
        PERFORM WRITE_TO_APP_SERVER.
    Any ideas? Points given to those who are helpful

    done myeslf

  • Using Selection screen and selection screen output

    Hi All,
    I am trying to execute AT SELECTION-SCREEN and AT SELECTION-SCREEN output. Both the para's working fine seperately. But when I execute them together AT SELECTION-SCREEN output is not working. Please let me know how to solve this problem. Please see below for the code.
    PARAMETERS:  p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
                 p_lgort LIKE mard-lgort OBLIGATORY,
                 p_rlgort LIKE mard-lgort OBLIGATORY.
        PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
            SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
                PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
            SELECTION-SCREEN: END OF BLOCK b1.
    *SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
        PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
           SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
                PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
                            p_verid type afpo-verid MODIF ID cp1,
                            p_labst type mard-labst MODIF ID cp1.
           SELECTION-SCREEN: END OF BLOCK b2.
       PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
    AT SELECTION-SCREEN output.
      LOOP AT SCREEN.
        IF p_boml <> 'X' AND
           screen-group1 = 'CP1'.
           screen-active = '1'.
           MODIFY SCREEN.
        ENDIF.
        IF p_cmpl <> 'X' AND
           screen-group1 = 'CP2'.
           screen-active = '1'.
           MODIFY SCREEN.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN.
      IF p_boml EQ 'X'.
        IF p_AUFNR EQ space.
            MESSAGE e000(z1) WITH 'Please fill Production Order.'.
        ENDIF.
      endif.
      IF p_cmpl EQ 'X'.
        IF p_MATNR EQ space  OR p_verid EQ space OR p_labst EQ space.
            MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
        ENDIF.
      endif.
    Thanks,
    Senthil

    Hi Senthil,
    As far as my knowledge is concerned AT Selection-Screen output and AT Selection-Screen wont work together.In this code you are trying to do the validation in AT Selection-Screen. Instead of that try doin your validations in Start-of-selection Event.
    i,e., modify your code as follows:
    PARAMETERS: p_werks LIKE marc-werks OBLIGATORY MEMORY ID WRK,
    p_lgort LIKE mard-lgort OBLIGATORY,
    p_rlgort LIKE mard-lgort OBLIGATORY.
    PARAMETERS: p_boml TYPE c RADIOBUTTON GROUP mode user-command flag.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_aufnr LIKE aufk-aufnr MODIF ID cp2.
    SELECTION-SCREEN: END OF BLOCK b1.
    *SELECTION-SCREEN COMMENT 1(44) text-004 FOR FIELD p_cmpl.
    PARAMETERS: p_cmpl TYPE c RADIOBUTTON GROUP mode.
    SELECTION-SCREEN: BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: p_matnr type marc-matnr MODIF ID cp1,
    p_verid type afpo-verid MODIF ID cp1,
    p_labst type mard-labst MODIF ID cp1.
    SELECTION-SCREEN: END OF BLOCK b2.
    PARAMETERS: p_mstr TYPE c RADIOBUTTON GROUP mode.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF p_boml <> 'X' AND
    screen-group1 = 'CP1'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    IF p_cmpl <> 'X' AND
    screen-group1 = 'CP2'.
    screen-active = '1'.
    MODIFY SCREEN.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    START-OF-Selection.
    Perform validation.
    form validation.
    IF p_boml EQ 'X'.
    IF p_AUFNR EQ space.
    MESSAGE e000(z1) WITH 'Please fill Production Order.'.
    ENDIF.
    endif.
    IF p_cmpl EQ 'X'.
    IF p_MATNR EQ space OR p_verid EQ space OR p_labst EQ space.
    MESSAGE e000(z1) WITH text-003 'Production Version & Quantity. '.
    ENDIF.
    endif.
    endform.
    Kindly reward if useful.
    Thanks,
    pavithra

  • Selection screen and smartforms

    Hi,
    Can somebody share with me simple eg to
    enter data via the selection screens and then pass those values to smartform.
    i have used the following code.But whenever i execute it the smartform opens first. i want to open the selection screen first.Then after entering the data there ,the smartorm must open up with the entered values.
    PARAMETER P_PARAM1 TYPE MYTABLE-COL1.
    PARAMETER P_PARAM2 TYPE MYTABLE-COL2.
    AT SELECTION-SCREEN OUTPUT.
    CALL FUNCTION '........................................'
      EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
       PARAM1                    =  P_PARAM1
       PARAM2                     = P_PARAM2
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks & Regards
    Jay

    Hi,
    As asked I am sending this piece of a code so that you can get a clear idea for the same.If you face the difficulty again please let me know.
    selection-screen begin of block b1 with frame title text-001.
    parameters :
       p_carrid type spfli-carrid.          " Carrier Id.
    selection-screen end of block b1.
    Working variable
    data:
      f_name      type rs38l_fnam.         " function module name
    start-of-selection.
    perform open_smartforms.
    form open_smartforms .
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = '<formname>''
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       importing
         fm_name                         = f_name
       exceptions
         no_form                          = 1
         no_function_module       = 2
         others                            = 3
      if sy-subrc <> 0.
        message id sy-msgid type 'S' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                               " IF sy-subrc ne 0
      call function f_name
        exporting
      ARCHIVE_INDEX                  =
      ARCHIVE_INDEX_TAB         =
      ARCHIVE_PARAMETERS    =
      CONTROL_PARAMETERS   =
      MAIL_APPL_OBJ                =
      MAIL_RECIPIENT                 =
      MAIL_SENDER                    =
      OUTPUT_OPTIONS             =
      USER_SETTINGS               = 'X'
        p_carr                                = p_carrid
    exceptions
       formatting_error         = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled           = 4
       others                         = 5
      if sy-subrc ne 0.
        message id sy-msgid type 'S' number sy-msgno
        with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.                               " IF sy-subrc ne 0
    endform.                               " OPEN_SMARTFORMS
    Regards,
    Suvajit.

  • Difference b/w At-selection-screen and onfield

    Hi,
         What is the difference between at-selection-screen and at-selction-onfield?

    Different Types of Selection Screens
    What is:
    1. at selection-screen on field
    2. at selection-screen output
    3. at selection-screen block
    4. at selection-screen on value-request
    5. at selection-screen on help-request and their difference?
    For knowing Selection-screens:
    First you must have right understanding of Events.
    - Events are introduced by Event Keyword.  They end when again next processs begins.
    Selection-screens are special screen defined in ABAP.  
    - This ABAP at run time only controls the flow logic of Selection-screens.  The PBO and PAI triggers the num of. selection-screens.
    The basic form of the selection screen events is the AT SELECTION-SCREEN event. This event occurs after the runtime environment has passed all input data from the selection screen to the ABAP program. The other selection screen events allow programmers to modify the selection screen before it is sent and specifically check user input. 
    At Selection-screen OUTPUT is trigerred in PBO of selection-screen.  
    - This allows you to modify the Selection-screen, before it is displayed.
    At Selection-screen On Field is triggered in PAI of selection-screens.
    - The input fields can b checked,in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
    At Selection-screen On Block is trigerred in PAI event.
    - You define a block  by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK block - END OF BLOCK block. You can use this event block to check the consistency of the input fields in the block.
    At Selection-screen On value request.
    - This event is trigerred for F4 help.
    At Selection-screen On help request .
    - This event is triggered when the user clicks F1 for help on fileds.

  • What is the diff b/w Sap Scripts and Smart Forms

    Hi,
          Whats the diff b/w SAP Scripts and Smart Forms..
             I need the internal explanation for both Smart Forms and SAP Scripts mean when we execute what happens whether Print Program r Forms starts execution 1st  and SIMILARLY FOR SMARTFORMS WHETHER FM'S  R FORMS.
    Thanks & Regards,
    Gopi.

    Hi
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated.
    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.
    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.
    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.
    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.
    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.
    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.
    check out this link:
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    Reward points if helpful.
    Regards,
    Swathi.

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

  • Selection-screen and GET

    Hi all,
    in my program i use PNP logical database, so system create automatically selection screen. Nice.
    When user fill selection screen event start-of-selection is launched and i do GET PERNR for read data from PNP.
    But my customer want to add field in selection screen. Ok, i did that. Well, now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched, so i my program i write this :
    if myfield is initial.
    GET PERNR.
    else.
    PERFORM get_data.
    endif.
    But when i compile program i can't do that and i don't know how to make this and if it's possible.
    Regards,

    Hi tafkap,
    1. u have created a z report and
       u are using PNP logical database.
    2.  u say,
    , now he want that when a user fills new fields the PNP is not read i.e GET PERNR shouldn't be launched
    suppose this is achieved, then how
    are u going to fetch the data
    and show the report ?
    3. If u already have the logic for
       getting information from database and showing
       to the user,
       then do  not use GET event.
      (It is not compulsory in a ldb)
    4. Instead use START-OF-SELECTION
       event
       and do the normal programming.
    5. In such case,
       the selection screen (and ur extra field(s))
       will be displayed as usual
       and your own code will get triggered
       at start-of-selection.
    I hope it helps.
    regards,
    amit m.

  • List of script and smart forms(except TNAPR) with output type or print prog

    How to find out List of SAP SCRIPT and SMART FORMS (except TNAPR)with output type or print program..I like to chk in output type WMTA  whch form should use.kindly help on this

    Hi
    WMTA is special msg and doesn't create any print: so you can't find a sapscript or smartform to link to it.
    WMTA is a message for delivery, so you can find it by NACE trx or TNAPR table (It's the same): infact here it can find only all messages of logistic modules (SD & MM).
    The routine ENTRY of RLAUTA20 is called by WMTA and creates a Transfer Order (for WM, Warehouse Management, module), so if you need to create a print for that msg you need to change prg RLAUTA20,
    Max

  • What is a Selection Screen and how to make it ?

    What is a Selection Screen and how to make it ? Please explain the process.
    Best regards,
    Ryan

    Selection Screen are used for the program reports. These allows you to input some values that are required to show the desired output.
    for example : you want to show the list of sales orders between 1000 to 1999, you would write a select query as this (to make u understand better)
    select vbeln from vbak into it_vbeln
                 where vbeln GE 1000 " greater than or equal to
                   and vbeln LE 1999. " less than or equal to
    now if you wnat to do it dynamically, you need a selection screen
    tables : vbak. " declaration
    selection-screen : begin of block block1 with frame title text-003.
    select-options : so_vbeln for vbak-vbeln. " selection range from __ to __
    selection-screen : end of block block1.
    now you can write the same select query as
    select vbeln from vbak into it_vbeln
                 where vbeln in so_vbeln.
    Hope this is clear now
    Regards
    Gopi

  • SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN

    SUBMIT Zxx VIA SELECTION-SCREEN AND RETURN
    and it's dont make f8 why

    wa_rspar-selname = 'P_DEALNO'.
    wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'.
    wa_rspar-option = 'EQ'.
    wa_rspar-low  = T_FORDER-DEAL_No.
       APPEND wa_rspar TO rspar.
    Submit ZSDR_SALESORDER_DISPLAY
         using Selection-screen '1000'
               WITH SELECTION-TABLE rspar.
    orelse
    *submit RSEIDOC2 with docnum-low = docnum with
                       credat-low = credat
                               and return.

Maybe you are looking for

  • Dynamic File Name with PayloadSwapBean

    I've  created an abap proxy with a small schema containing PO and PO_Line with an attachment that is a zipped PDF file (.zip). I have configured a File adapter with the payloadswapbean to place the attached .zip file in an FTP folder.  Now I need to

  • Need user message  when trying to run report when report session is already open.

    HI !! I have GUI application bulid in C++ and we call reports from there. My user ran a report and minimized the sceen display of the report. He then clicked Task/Reports and selected a differnet report from the selection list. After he clicked OK no

  • Sharepoint 2013 Custom Workflow - Email link to EditForm.aspx for Workflow Task

    I have created a custom workflow which starts a task with one or two users once a form is submitted.  These users receive an email with a link to the task that has been created.  The problem is it doesn't open the edit form for the task it just links

  • Ignored lines on data upload, but no reject

    Hi everyone, I have a question about the import package, maybe the answer is simple, but I did not find. Let's follow this scenario. 0. I upload my txt file on the server 1. I launch the import package on this file with the appropriate transformation

  • No performance improvement with  Bulk Binding

    Hi All, I need to update 0.2 million rows in (t_shdr_trx_stg ), previously it was... FOR loop..I converted it to bulk binding... but i can can hadrly see any improvement.... Any clue I am missing something...please check my code snippet Cursor M I mi