How to use SUBMIT on Programme RDDm0001 (SE10)

Hi All,
I am trying to call this program using submit with return passing the transport request ID TRKORR
How can I find out how to successfully call the program?
thanks

I was able to do with with BDC...
  DATA lv_dev_task_display LIKE LINE OF gt_dev_task_display.
*p_ucomm LIKE sy-ucomm
*p_rs_selfield TYPE slis_selfield.
  REFRESH gt_bdcdata.
*  IF p_rs_selfield-sel_tab_field EQ 'GT_CURR-STRKORR' OR
*      p_rs_selfield-sel_tab_field EQ 'GT_TADIR-STRKORR'.
*    IF p_rs_selfield-value IS NOT INITIAL.
  READ TABLE gt_dev_task_display INTO lv_dev_task_display INDEX p_row.
  IF sy-subrc = 0.
    PERFORM bdc_dynpro      USING 'RDDM0001' '0100'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=SNGL'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'TRDYSE01CM-USERNAME'.
    PERFORM bdc_field       USING 'TRDYSE01CM-USERNAME'
                                  sy-uname.
    PERFORM bdc_field       USING 'TRDYSE01CM-REQ_CUST'
                                  gc_x.
    PERFORM bdc_field       USING 'TRDYSE01CM-REQ_WB'
                                  gc_x.
    PERFORM bdc_field       USING 'TRDYSE01CM-SEL_CHAN'
                                  gc_x.
    PERFORM bdc_field       USING 'TRDYSE01CM-SEL_RELE'
                                  gc_x.
    PERFORM bdc_dynpro      USING 'SAPLSTRH' '1200'.
    PERFORM bdc_field       USING 'BDC_CURSOR'
                                  'GV_1200_TRKORR'.
    PERFORM bdc_field       USING 'BDC_OKCODE'
                                  '=TAKE'.
    PERFORM bdc_field       USING 'GV_1200_TRKORR'
                                  lv_dev_task_display-trkorr.
    CALL TRANSACTION 'SE09' USING gt_bdcdata
                    MODE   'E'.
  ENDIF.

Similar Messages

  • But how to use submit??

    but how to use submit?? i mean how to generate an event thru submit and how to receive these values in the next page

    but how to use submit??You can do it by using Simple HTML Code
    <INPUT TYPE="SUMBIT" VALUE="SUBMIT">
    i mean how to generate an event thru submit and how to receive these values in the next pageTo generate an event through Submit! You need to do this using java script.
    I think you are talking about assingning some values on the click of submit and collecting those values in the next page!
    To do that
    keep some input fields in page1. Then try to assign the values to those input fileds using javascript through onclick event.
    <INPUT TYPE="SUMBIT" VALUE="SUBMIT" onclick="javascript:callSomeFunc()">
    In
    callSomeFunc() {
    //Assign values to the hidden fields
    In next page say page2 collect those values using request.getAttribute(" InputHiddenFieldsName);
    That's it.

  • How to use SUBMIT for transaction program?

    Hello,
    Please help me with following requirement.
    I need to pass selection screen values from ZReport to transaction F.01 and collect displayed data output in internal table in ZReport and use internal table for further processing.
    Please let me know,
    1) How to use SUBMIT with transaction code or modulepool program (<b>remember I don't want to submit report program</b>)?
    2) How to collect F.01 output data and bring back to Zreport ?
    Thanks in advance.

    Hi ab,
    1.  How to collect F.01 output data and bring back to Zreport
    The data (of output) can be collected,
    for display purpose.
    We cannot get the full data, which makes sense.
    2. The data shall be collected, in a printable format only,
       ie. with vertical lines, horizontal lines (if any) etc.
    regards,
    amit m.

  • How to use SUBMIT key word in the program in the program

    Hello Folks,
                     I want use SUBMIT statment in the program for calling the other program. My query is
    I have one report named REPORT1 and I am using the SUBMIT statment in this report to call the second report named as REPORT2. The flow of the program is I excute the first report REPORT1 and entr the value on selection screen of REPORT1, selection screen is having one parameter. then SUBMIT statment comes into picture to call the second report REPORT2 in this second report, I would like to pass the selection screen value of first report REPORT1.
          I want to know how to pass the selection screen value of the first REPORT1  to second REPORT2.
    Anyone please guide me in this regards.
    Thanks & Regards
    Chetan

    Hi Chetan,
    Try this report.
    Create two reports namely ztry, ztry1 as below.
    Run report ztry.
    When you run report ztry,
    ztry1 will get excuted first(through 'submit'),
    getting values from report ztry through 'import' and 'get parameter'.
    Report ztry.
    *Export and Import
    DATA: text(20) VALUE 'Hello',
          mem(20).
    WRITE:/ 'Export and Import' COLOR = 1.
    EXPORT text TO MEMORY ID mem.
    SUBMIT zawi_try AND RETURN.
    WRITE:/ ''' Hello'' exported to ZAWI_TRY successfully '.
    WRITE:/.
    *Set and Get Parameter ID
    DATA: var(20) VALUE 'Master'.
    WRITE:/ 'Set and Get Parameter' COLOR = 1.
    SET PARAMETER ID 'abc' FIELD var.
    WRITE:/ 'Set Parameter ID is success'.
    WRITE:/.
    Report ztry1.
    DATA: text(5),
          mem(20).
    IMPORT text FROM MEMORY ID mem.
    WRITE:/ 'Importing '' Hello'' from ztry:', text color = 1.
    FREE MEMORY ID mem.
    write:/ mem.
    DATA: var(6).
    GET parameter id 'abc' field var.
    write:/ 'Value got through Get Parameter ID from ztry:',var color = 1 .
    Thanks....

  • How to use Submit program of RAIMCOPY for a specific TCode - IM34

    Hi Experts,
    I have to use submit program RAIMCOPY.  but the program intend used in differnt Tcodes (IM27,IM27_Close,IM27_REPEAT,IM34,IM44,IM54,IM64).
    I used the following code but it is some other selection instead of IM34.
    SUBMIT RAIMCOPY VIA SELECTION-SCREEN with PA_PRNAM = gv_improg
                                                 WITH PA_GJAHR = gv_appyear
                                                 with SO_VERSN-LOW = 'G00'
                                                 with P_XVOVR = 'X'
                                                 and RETURN.
    Please help me to write a submit program RAIMCOPY for only IM34.
    Regards,
    Thulasiram.

    Yes at start of report (events LOAD-OF-PROGRAM and INITIALIZATION) the variant / parameters are not yet transfered to program, they are only passed just before the AT SELECTION-SCREEN OUTPUT, so that could have been nice ... before OSS note  927693 - Report variants used incorrectly in program RAIMCOPY which triggers now an error if sy-tcode <> pa_tcode in interactive mode ...
    So either you look for an implicit enhancement option to force again pa_tcode to required value (e.g. stored in memory) and disable effect of the OSS note (*) /or/ you replace the SUBMIT statement with a CALL TRANSACTION with a small BDC data.
    Regards,
    Raymond
    (*) SAP did that for transaction  IMCAOV, 1023920 - IMCAOV: Unberechtigter Abbruch 00368

  • How to use 'Submit' for Program rpsinfo (tcode:cn41n)

    Hi Friends,
    CN41N is a Hierarchical report of PS Module. Which displays WBS, Network, Project details in Hierarchical view. I want to store the output of this report in internal table for further processing. For this i am using the following code .
    SUBMIT  rpsinfo
       WITH cn_pspnr-low EQ 'S-0018-01-01-01-01-001'
       EXPORTING LIST TO MEMORY AND RETURN .
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = list_tab
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      DATA: BEGIN OF i_asci OCCURS 0,
           data1(5000) TYPE c,
           END OF i_asci.
      CALL FUNCTION 'LIST_TO_ASCI'
    * EXPORTING
    *   LIST_INDEX               = -1
    *   WITH_LINE_BREAK          = ' '
    * IMPORTING
    *   LIST_STRING_ASCII        =
    *   LIST_DYN_ASCII           =
       TABLES
         listasci                 = i_asci
         listobject               = list_tab
       EXCEPTIONS
         empty_list               = 1
         list_index_invalid       = 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.
    The above code is not working. Output is not going to memory. But this is working with all other reports which are simple ALV Reports. I think since  rpsinfo (tcode:cn41n) is hierarchical report it is not displaying output. Then how do i send the output to the memory. Please suggest the solution.
    Thanks in Advance.
    Mahender.

    if the hierarchical report is displayed using SAP Graphics, then you will never be able to get information from memory because the output is not stored into a SAP list

  • How to use "Submit - after computation" with PL/SQL?

    Hi,
    I'm new in APEX
    My scenario: I have a date column that I need to populate automatically (DATE_CREATION = sysdate) when I create a row, probably on "Submit - After Computations and VAlidations" with PL/SQL, how can I do that?
    Thanks for your reply
    Sam Karema

    You should be able to use the PL/SQL APIs to get the current page
    or back page. The portlet runtime record has these APIs
    type portlet_runtime_record is record
    portlet_id - number,
    provider_id - number,
    node_id - number,
    reference_path - varchar2(100),
    language - varchar2(30)
    exec_mode - number,
    back_page_url - varchar2(4098),
    page_url - varchar2(4098),
    page_type - varchar2(200),
    has_title_region - boolean,
    has_border - boolean
    caching_key - varchar2(200),
    caching_level - varchar2(30),
    caching_period - number
    back_page_url
    The URL for the calling page.
    Notes: The value stored in this field is used by portlets to
    redirect users to the calling page (previous page).
    This value can be null if there is no calling URL.
    Datatype: varchar2
    page_url
    The URL of the page that contains the portlet instance that will
    receive the portlet_runtime_record. Current page.
    Datatype: varchar2
    Hope this helps,
    Sue

  • How to use Submit in background when report name is not static

    Hi all,
    I have an FM to which report name is being sent as an input parameter.
    So based on the report name I need to call that particular report in background and send the output as a HTML format to dealer's MAIL ID which is also sent as an input param.
    The logic for sending mail in background is achieved.
    I am using the followinf logic to submit the job.
    SUBMIT wf_report USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
        to sap-spool immediately ' '
                         without spool dynpro
        WITH SELECTION-TABLE tb_seltab AND RETURN.
    wf_report holds the dynamic value of report.
    Here, tb_seltab holds various parameters and select-option values.Since I cannot pass a table to JOB_SUBMIT fm i had to use the SUBMIT statement.
    But the program dumps coz we need to explicitly mention the name of the program in the submit statement.
    Is there any other possibility to acheive this req when the report name is not going to be hardcoded?
    Thanks in advance.
    Regards,
    Chandra.

    You forgot the basics of using the SUBMIT.
    try like this it will work
    SUBMIT (wf_report ) USER user_id VIA JOB lv_jobname NUMBER lv_jobcount
    to sap-spool immediately ' '
    without spool dynpro
    WITH SELECTION-TABLE tb_seltab AND RETURN.
    Rhea.

  • How to use Submit Statement for mutiple Spools.

    Hi Gurus,
    I have a requirement wherein I need to Submit a Report Program to SAP-SPOOL which generates output for multiple Idocs.
    For each Idoc I need to attach the spool to a particular object_id.
    As of now I am doing this by putting the Submit statement in a loop.
    I want to meet the same functionality without using a loop for different Idocs.
    Ex.
    LOOP AT IDOCS.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    CALL FUNCTION 'JOB_OPEN'
    IF sy-subrc = 0.
      SUBMIT YFAPINV_IDOC_RPTS  TO SAP-SPOOL    "USING SELECTION-SCREEN '1000'
        WITHOUT SPOOL DYNPRO
        SPOOL PARAMETERS print_parameters
        WITH CREDATE IN CREDATE
        WITH CRETIME IN CRETIME
        WITH DOCNUM IN DOCNUM
        WITH VENDOR IN VENDOR
        WITH V_INVOIC IN V_INVOIC
        WITH MESCODE IN MESCODE
        WITH DOCSTAT IN DOCSTAT
        WITH DC_NBR IN DC_NBR
        WITH DOC_TYPE IN DOC_TYPE
        WITH S_BSART IN S_BSART
        WITH ap1_flag eq 'X'
        AND RETURN.
      IF sy-subrc EQ 0.
        CALL FUNCTION 'JOB_CLOSE'
      ENDIF.
    ENDIF.
    SELECT  rqident rqcretime FROM tsp01
    INTO (rqident,rqcretime)
    WHERE rqowner = sy-uname
    ORDER BY rqcretime DESCENDING.
      EXIT.
    ENDSELECT.
    IF rqident IS NOT INITIAL.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    DATA l_line TYPE docs-lines.
      LOOP AT l_tline.
        CLEAR l_line.
        MOVE l_tline-tdline TO l_line.
        l_docs-lines = l_line.
        APPEND l_docs.
      ENDLOOP.
    ENDIF.

    Hi,
    Each submit will create only one spool. So I dont think this is possible. Yes what you can do though is that submit the program for all the IDocs at once ( provided your program YFAPINV can handle this) and then process the spool and separate the output for each IDoc after you retrieve the data from spool.
    To retrieve the data from the spool, you can use the function 'RSPO_RETURN_ABAP_SPOOLJOB' pass the spool request number and it will return you a internal table with the spool data.
    regards,
    Advait

  • How to use selection-set in submit report

    Hi ,
    How to use,
    submit report via selection-screen
                                         using selection-set 'ABC' .
    Can somebody pl tell me how to use selection-set 'ABC' in submit report . It would be nice if someone can send me a piece of code.
    Regards,
    Hardik

    Hi,
    This is from ABAPDOCU.
    SUBMIT REPORT01
           VIA SELECTION-SCREEN
           USING SELECTION-SET 'VARIANT1'
           USING SELECTION-SETS OF PROGRAM 'REPORT00'
           AND RETURN.
    Effect
    Executes the program REPORT01 with the variant VARIANT1 of the program REPORT00.
    You can use f1 help also.

  • How to use Batch operation for two xsodata services?

    Hi All,
    I have two xsodata services. How to use submit batch for two xsodata services
    Thanks,
         Mj

    Gateway Batch Calls from SAPUI5

  • How to use alv in progrmm

    hi all
    thanks in advance
    how to use alv in programm please can any one send me simple example of alv
    thanks

    Hi,
    Refer this code. If u find it useful, reward points.
    TYPE-POOLS: slis.
         Data Declaration
    DATA: wa_layout       TYPE slis_layout_alv, "Layout structure
          it_fieldcatalog TYPE slis_t_fieldcat_alv, " Fieldcatlog IT
          wa_fieldcatalog TYPE slis_fieldcat_alv, " Fieldcatlog WA
          lt_event TYPE slis_t_event, "for capturing page events
          ls_event TYPE slis_alv_event. " WA for Page Events
    Data: l_syrep type sy-repid,
          l_tcode type sy-tcode.
    *& I N I T I A L I Z A T I O N                                         *
    INITIALIZATION .
    l_syrep = sy-repid.
    l_tcode = sy-tcode.
    *&               AT SELECTION-SCREEN                                   *
    AT SELECTION-SCREEN.
    *&               START-OF-SELECTION                                    *
    START-OF-SELECTION.
    *&               END-OF-SELECTION                                      *
    END-OF-SELECTION.
       PERFORM build_layout.
       PERFORM build_catlog.
       PERFORM build_events.
    *&               AT LINE-SELECTION                                     *
    AT LINE-SELECTION.
    *&      Form  build_layout
          Building the Layout
    FORM build_layout .
    wa_layout-ZEBRA = 'X'.
    wa_layout-NO_VLINE = 'X'.
    wa_layout-NO_HLINE = 'X'.
    wa_layout-CELL_MERGE = 'X'.
    wa_layout-EDIT = 'X'.
    wa_layout-WINDOW_TITLEBAR = ''.
    wa_layout-NO_ULINE_HS = 'X'.
    wa_layout-LIGHTS_FIELDNAME = ''.
    wa_layout-LIGHTS_TABNAME = ''.
    wa_layout-LIGHTS_ROLLNAME = ''.
    wa_layout-LIGHTS_CONDENSE = 'X'.
    wa_layout-NO_TOTALLINE = 'X'.
    wa_layout-NO_SUBTOTALS = 'X'.
    wa_layout-TOTALS_BEFORE_ITEMS = 'X'.
    wa_layout-TOTALS_ONLY = 'X'.
    wa_layout-TOTALS_TEXT = ''.
    wa_layout-SUBTOTALS_TEXT = ''.
    wa_layout-BOX_FIELDNAME = ''.
    wa_layout-BOX_TABNAME = ''.
    wa_layout-BOX_ROLLNAME = ''.
    wa_layout-CONFIRMATION_PROMPT = 'X'.
    wa_layout-HEADER_TEXT = ''.
    ENDFORM.                    " build_layout
    *&      Form  build_catlog
          Building the Field Catlog
    FORM build_catlog .
    wa_fieldcatalog-ROW_POS = 0.
    wa_fieldcatalog-COL_POS = 0.
    wa_fieldcatalog-FIELDNAME = ''.
    wa_fieldcatalog-TABNAME = ''.
    wa_fieldcatalog-CHECKBOX = 'X'.
    wa_fieldcatalog-DO_SUM = 'X'.
    wa_fieldcatalog-OUTPUTLEN = ''.
    wa_fieldcatalog-wa_fieldcatalog-OFFSET = ''.
    wa_fieldcatalog-SELTEXT_L = ''.
    wa_fieldcatalog-SELTEXT_M =''.
    wa_fieldcatalog-SELTEXT_S =''.
    wa_fieldcatalog-REF_FIELDNAME =''.
    wa_fieldcatalog-REF_TABNAME = ''.
    wa_fieldcatalog-NO_SUM ='X'.
    wa_fieldcatalog-EDIT ='X'.
    wa_fieldcatalog-HOTSPOT = 'X'.
    APPEND  wa_fieldcatalog TO it_fieldcatalog.
    CLEAR   wa_fieldcatalog.
    ENDFORM.                    " build_catlog
    *&      Form  build_events
          Building the Events
    FORM build_events .
    Get all possible events
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = lt_event
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
      ENDIF.
    Specify events used in selection screen
      READ TABLE lt_event WITH KEY name = slis_ev_top_of_page
                         INTO ls_event.
      IF sy-subrc = 0.
        ls_event-form = 'TOP_OF_PAGE'.
        MODIFY lt_event FROM ls_event INDEX sy-tabix.
        CLEAR ls_event.
      ENDIF.
      READ TABLE lt_event WITH KEY name = slis_ev_end_of_list
                         INTO ls_event.
      IF sy-subrc = 0.
        ls_event-form = 'END_OF_LIST'.
        MODIFY lt_event FROM ls_event INDEX sy-tabix.
        CLEAR ls_event.
      ENDIF.
    ENDFORM.                    " build_events
    *&      Form  TOP_OF_PAGE
    To display top of the page
    FORM top_of_page .
    data: lt_top_of_page type slis_t_listheader,
           ls_line type slis_listheader.
      clear ls_line.
      ls_line-typ  = 'H'.
      ls_line-info = ''.
      append ls_line to lt_top_of_page.
      clear ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = ''.
      ls_line-info = ''.
      append ls_line to lt_top_of_page.
      clear ls_line.
      ls_line-typ  = 'A'.
      ls_line-info = ''.
      append ls_line to  lt_top_of_page.
      clear ls_line.
       CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = lt_top_of_page
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    ENDFORM.                    " TOP_OF_PAGE
    *&      Form  end-of-list
    To display the totals at the end of the list
    FORM end_of_list .
    ENDFORM.                    " end-of-list
    *&      Form  set_pf_status
          Set the Pf Status
    FORM pf_status USING pa_extab TYPE slis_t_extab.
       SET PF-STATUS 'ZXXXX'.
    ENDFORM.                    "SET_PF_STATUS
    *&      Form  user_command
          To Catch the User Events
         -->PA_UCOMM     text
         -->PA_SELFIELD  text
    FORM user_command USING pa_ucomm TYPE syucomm
                            pa_selfield TYPE slis_selfield.
      CASE pa_ucomm.
          WHEN '&IC1'.
              CLEAR gs_output .
              READ TABLE gt_output INTO gs_output INDEX pa_selfield-tabindex .
              CASE pa_selfield-fieldname .
              ENDCASE.
          WHEN 'XXX'.
          WHEN 'XXX'.
      ENDCASE.
    ENDFORM.                    "USER_COMMAND

  • How to get data from the called program using SUBMIT in a background job?

    Hi Experts,
    I've a program which creates a background job using JOB_OPEN and JOB_CLOSE function modules.
    Between the above function modules I need to call a program using SUBMIT VIA JOB statement.
    My problem is, How do I fetch some data in an internal table in the called program to the calling program after the SUBMIT statement?
    I tried to EXPORT and IMPORT the data, but they are giving a failed sy-subrc when using this background job.
    Kindly let me know your inputs and valuable suggestions.

    Kumar,
    When we execute a program as a background job then the output will be sent to Spool which needs to be fetched again.I guess we need to use Submit via spool as mentioned by Rajat.
    Check these threads to get some idea
    submit report to spool & import spool id
    Re: Generate Spool for a report
    K.Kiran.

  • How to use a Submit Sentence with a transaction tha has 2 screens?

    Hi all,
    I want to use the SUBMIT sentence to call the WRP1 transaction, but how can I control the second screen after the SUBMIT to the 1000 screen??.
    This because the first screen of this transaction is returning me to the second one, and I need to hit the execute button at the second screen. 
    thks all!!!

    That won't work using SUBMIT...You will be able to at most SKIP FIRST SCREEN but cannot execute button on second screen.
    Here is work around
    Create a small Z program which will have BDC recoridng for WRP1 first screen and record Execute action on second screen..Submit your Z program from your current program
    Regards,
    Mohaiyuddin

  • How do I submit netflix ID using Apple TV remote

    How do I submit the Netflix ID using Apple TV remote?

    Welcome to the Apple Community.
    just use the up, down, left and right buttons to navigate to each letter or number, pressing enter when the selection is correct, when complete navigate to and select the submit button.

Maybe you are looking for