CALL TRANSACTION or SUBMIT

Hi guys,
I have a problem with calling a program(or transaction code).
I want to call a program with a variant by "CALL TRANSACTION" or "SUBMIT".
I checked that "SUBMIT" is possible by using "SELECTION-SET" but I can't use it because it doesn't allow calling a program with a variable which has the program name like below.
'SUBMIT gv_program SELECTION-SET gv_variant.'
Is there a solution for this?
Thanks.

No, it is not possible to call a program/transaction using a variable in place of program name.
As SUBMIT statement executes a report. Can only execute reports of type '1'.And the  ways that it could be used are :-
*Code used to execute a report
SUBMIT Zreport.
*Code used to populate 'select-options' & execute report
SUBMIT zreport with selection-table seltab
                 via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
                with p_param2 = 'value'.
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
And CALL TRANSACTION statement calls the transaction whose transaction code is contained in data object ta.
CALL TRANSACTION ta
{ [AND SKIP FIRST SCREEN]  ---- suppresses the display of a screen of the initial dynpro
| [USING bdc_tab [bdc_options]] }. -----  enables the transaction to be executed using a batch input table. This requires an internal table bdc_tab of row type BDCDATA to be passed from ABAP Dictionary to a dialog transaction
Wish this helps you...
Regards,
Bishwajit

Similar Messages

  • Use call transaction or submit statement

    Hi, i have a complex transaction, it has two control programs, a Z program and a standard program. I need execute it by call transaction or submit statement. In this transaction there are some select-options that i want fill with specific values.
    Can you help me with it?

    Hi Robin, the SHDB transaction was very useful. Now i have other problem. This transaction execute a jobs set.I already have filled all of fields in the transaction, i saved the parameters for the execution by SAVE button (BDC_OKCODE=SAVE), but the transaction don't release the jobs and  must do it. The last action (to release the jobs set) is executed by the OK button(BDC_OKCODE=OK).
    This is the code that i'm implementing:
    REPORT  ZPRUEBA_SALDOS_ANTERIORES     .
    DATA: BDCDATA TYPE TABLE OF BDCDATA.
    DATA: ITAB TYPE TABLE OF BDCMSGCOLL.
    DATA: WA_ITAB TYPE BDCMSGCOLL.
    DATA: PROGRAM LIKE SY-REPID ,
          WA_BDCDATA TYPE BDCDATA.
    DATA: DATE_ID(10).
    DATA: DATE_CONV(11).
    DATA: T_ID(6).
    DATA: DES_ERROR(500).
    *"parametro zdo(para tipo de documentos)
    *RANGES: R_BLART FOR DFKKOP-BLART,
    *        R_VKONT FOR FKKVKP-VKONT.
    *INITIALIZATION.
    START-OF-SELECTION.
      CALL FUNCTION 'CONVERSION_EXIT_SDATE_OUTPUT'
           EXPORTING
                INPUT  = SY-DATUM
           IMPORTING
                OUTPUT = DATE_CONV.
      DATE_ID = SY-DATUM.
    CONCATENATE DATE_ID+6(2) '.' DATE_ID+4(2) '.' DATE_ID+0(4) INTO DATE_ID.
      CONCATENATE DATE_CONV+3(3) '_' DATE_CONV+0(2) INTO T_ID.
      WA_BDCDATA-PROGRAM = 'SAPLFKKAKTIV2'.
      WA_BDCDATA-DYNPRO  = '1000'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'FKKAKTIV2_DYNP_1000-LAUFD'.
      WA_BDCDATA-FVAL = '11.06.2008'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'FKKAKTIV2_DYNP_1000-LAUFI'.
      WA_BDCDATA-FVAL = 'MAR_38'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
    *  WA_BDCDATA-PROGRAM = 'SAPLZ_CL_PROCESOS_EN_MASA'.
      WA_BDCDATA-PROGRAM = 'SAPLFKKAKTIV2'.
    *  WA_BDCDATA-DYNPRO  = '1001'.
      WA_BDCDATA-DYNPRO  = '1000'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'P_STICHT'.
      WA_BDCDATA-FVAL = DATE_ID.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'S_BUKRS-LOW'.
      WA_BDCDATA-FVAL = 'PCS'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'S_VKONT-LOW'.
      WA_BDCDATA-FVAL = '0'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'S_VKONT-HIGH'.
      WA_BDCDATA-FVAL = '999999999999'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=%01410010001580545'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-PROGRAM = 'SAPLALDB'.
      WA_BDCDATA-DYNPRO  = '3000'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
    *  CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(01)'.
      WA_BDCDATA-FVAL = 'BS'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(02)'.
      WA_BDCDATA-FVAL = 'FS'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(03)'.
      WA_BDCDATA-FVAL = 'CD'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(04)'.
      WA_BDCDATA-FVAL = 'EF'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(05)'.
      WA_BDCDATA-FVAL = 'TR'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(06)'.
      WA_BDCDATA-FVAL = 'TF'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(07)'.
      WA_BDCDATA-FVAL = 'TC'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(08)'.
      WA_BDCDATA-FVAL = 'LP'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'RSCSEL-SLOW_I(09)'.
      WA_BDCDATA-FVAL = 'NC'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=ACPT'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
    *  WA_BDCDATA-PROGRAM = 'SAPLZ_CL_PROCESOS_EN_MASA'.
      WA_BDCDATA-PROGRAM = 'SAPLFKKAKTIV2'.
    *  WA_BDCDATA-DYNPRO  = '1001'.
      WA_BDCDATA-DYNPRO  = '1000'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=TAB03'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=PRPRN'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-PROGRAM = 'SAPLSPRI'.
      WA_BDCDATA-DYNPRO  = '0100'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'PRI_PARAMS-PDEST'.
      WA_BDCDATA-FVAL = 'LOCAL'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'PRI_PARAMS-PLIST'.
      WA_BDCDATA-FVAL = '1604_SA_16'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=SAVE'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-PROGRAM = 'SAPLFKKAKTIV2'.
      WA_BDCDATA-DYNPRO  = '1000'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
    *  CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=TAB04'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'FKKAKTIV2_DYNP_1190-VARI'.
      WA_BDCDATA-FVAL = 'INTERES'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'FKKAKTIV2_DYNP_1200-JOBS_LOAD_BALA'.
      WA_BDCDATA-FVAL = '6'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=SAVE'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=DISP'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-PROGRAM = 'SAPLFKJO_JOB'.
      WA_BDCDATA-DYNPRO  = '0100'.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      CLEAR WA_BDCDATA.
      WA_BDCDATA-FNAM = 'D100_FIELDS-XBACKGR'.
      WA_BDCDATA-FVAL = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'D100_FIELDS-XIMMEDIATE'.
      WA_BDCDATA-FVAL = 'X'.
      APPEND WA_BDCDATA TO BDCDATA.
      WA_BDCDATA-FNAM = 'BDC_OKCODE'.
      WA_BDCDATA-FVAL = '=OK'.
      APPEND WA_BDCDATA TO BDCDATA.
      CALL TRANSACTION 'ZPSA' USING BDCDATA  MODE 'A'
                               MESSAGES INTO ITAB.
    Edited by: Marcel ochoa on Jun 12, 2008 5:01 PM
    Edited by: Marcel ochoa on Jun 12, 2008 5:03 PM
    Edited by: Marcel ochoa on Jun 12, 2008 5:06 PM
    Edited by: Marcel ochoa on Jun 12, 2008 10:43 PM
    Edited by: Marcel ochoa on Jun 12, 2008 10:45 PM
    Edited by: Marcel ochoa on Jun 12, 2008 11:37 PM

  • Call transaction LM05 from Z program

    Hi,
    I need to call transaction LM05 from a Z program, and when LM05 finishes then continue with the process in Z program. But when i use CALL TRANSACTION 'LM05' the process does not return to program Z, when LM05 finishes,it returns to main screen of 'LM05' but not Z program.
    I change CALL TRANSACTION by SUBMIT zrlmob001 AND RETURN, but it happens the same, because transaction 'LM05' continuosly evaluates the system variable SY-TCODE, and therefore SY-TCODE contains code transaction 'ZXX'.
    it exists a way to call a LM05 transaction from Z program, and then continue in z program after LM05 finishes?
    can i create a user exit screen for transaction LM05 and use the user exit to continue with the process that i wish in Z program after call transaction 'LM05'?
    I'm in SAP version ECC 6.0.
    Thanks in advance
    Alejandro

    Hi,
    I want to share how i resolved this topic:
    I searched for user exit, badi and did'nt find a correct way to solved this issue. Also, i tried to create a screen exit for transaction LM05, but the dynpro 2100 of program SAPLLMOB is used for transaction LM02, LM03, LM05 and for each one show a diferent initial screen, this logic cannot be suplied with my custom screen.
    Finally, how the final option, i used a enhancement implementation to add code in SAP standard program RLMOB001, and the problem was resolved. i am in version SAP ECC6.0, in this version is posible to create enhancement implementation, and for support package and upgrade, SAP will not overwrite your custom code.
    Regards,
    Alejandro.

  • Call Transaction / Submit Program

    Hello All,
    I have two ABAP reports : Report A & Report B.
    Report A has selection screen similar to Report B, where report A needs to send data to selection screen of Report B.
    Report B should be processed displaying its list display & should return its control back to Report B.
    This can be easily achieved by using SUBMIT program(Report B) with values from Report A.
    But my report B is made to run only via a TCode(ZEXECUTE) & hence when i submit program it is not executed
    as sy-tcode value in such case comes as SE38 .
    Further , Call Transaction (ZEXECUTE) using bdc_tab helps in passing the TCode & respective selection screen values
    correctly to Report B , but i am not able to see the outputs of the same.
    Please Note : I am not authorized to do any changes in Report B , so whatever i can try is from Report A itself.
    Kindly Help,
    Sudeep

    HI Suhas ,
    Firstly thanks for replying.
    1) Do you mean there is a hardcoding in Report B to check the t-code?
        Yes.
    2) What is the display mode you're using when doing via CALL TRANSACTION?
        Currently i am passing it as "A" , but still not able to get any output.
    Report A provides report B all the required values along with 'BDC_OKCODE'   '=ONLI'
    for executing the same. The report gets processed , but i am not able to see any list display.
    Thanks,
    Sudeep

  • Call transaction FB01 vs submit RSBDCSUB

    Hi guys,
    I would like to know how I can get the message log when I execute
    SUBMIT RSBDCSUB WITH MAPPE EQ  G_GROUP  "batch input name
                          WITH Z_VERARB EQ 'X'
                          WITH FEHLER EQ SPACE
                          WITH LOGALL EQ SPACE
                          EXPORTING LIST TO MEMORY
                          AND RETURN.
    instead of :
    CALL TRANSACTION 'FB01' USING BDCDATA
                      MODE 'N' UPDATE 'S'
                      MESSAGES INTO MESSTAB.
    I would like get the same information of MESSTAB but using submit RSBDCSUB
    I try it with :
    CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
              LISTOBJECT = LISTOBJECT
            EXCEPTIONS
              NOT_FOUND  = 4
              OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
            EXPORTING
              LIST_INDEX         = -1
            TABLES
              LISTASCI           = VLIST
              LISTOBJECT         = LISTOBJECT
            EXCEPTIONS
              EMPTY_LIST         = 1
              LIST_INDEX_INVALID = 2
              OTHERS             = 3.
          CALL FUNCTION 'LIST_FREE_MEMORY'
            TABLES
              LISTOBJECT = LISTOBJECT.
    And in VLIST  I only get the number of folder with  G_GROUP batch info.
    for example " 2 folder get it". I would like to know for example if there are errors in my batch input.
    Thanks a lot in advance.
    Best regards.
    Ana

    I'd not suggest your solution.
    better use RFBIBL00 ( or BAPI_ACC_DOCUMENT_POST - read docu)
    for rfbibl00 you can use
    SUBMIT RFBIBL00 WITH callmode = 'D'....
    A.

  • How to pass Function code to Submit or Call transaction command

    Hi
    I have to call a report in an other report, But the problem is when i call the report through submit command i need to skip the initial screen and display an other screen. the other screen is not next screen. It  display after clicking a button on main screen.
    Is there any way to pass Function code to submit command. submit command code is as under
    SUBMIT ZADR0056
                  WITH P_AUFNR = '7000052' AND RETURN...
    Regards
    Ammad

    Hi,
       It is not possible to pass function code with submit. alternatively you can work with CALL TRANSACTION with BDCDATA.
    Or as a work arround way you can modify your code i.e check for function code or an dummy parameter which can be passed by SUBMIT statement.
    Check below code..
    Report ztest1.
    submit ZTEST2 WITH P2 = 'X' AND RETURN.
    Report ztest2
    SELECTION-SCREEN:
        PUSHBUTTON 2(10)  but1 USER-COMMAND cli1.
    PARAMETERS P2 TYPE C NO-DISPLAY. " no need to display
    AT SELECTION-SCREEN.
    IF SY-UCOMM = 'CLI1' OR P2 IS NOT INITIAL.
    message 'Button clicked' type 'S'.
    ENDIF.
    Regards,
    Ravi.

  • Code for Hot spot in ALV report to call transaction

    Hi,
    I  hv never use hot spot to link as a call transaction can u give the link or code how to make hot spot on a particular fields  i am working on a ALV report in that report in the belnr coloumn when user click on belnr i want to call FB03 transaction ref. to that belnr number and fisacl year.
    regards,
      zafar

    Hi,
    In the fieldcatalog you will have to write the hotspot as shown below,
       wa_fieldcat-hotspot   =  'X'.
      APPEND wa_fieldcat TO it_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program       = sy-repid
            i_callback_user_command  = 'USER_COMMAND'"----> this is important
         i_callback_pf_status_set = 'PFSTATUS'
            it_fieldcat              = it_fieldcat
            is_layout                = it_layout
         it_event_exit            = it_eventexit
         i_screen_start_column    = 10
         i_screen_start_line      = 20
         i_screen_end_column      = 70
         i_screen_end_line        = 45
            i_grid_title             = 'Customer-Order Details'
          TABLES
            t_outtab                 = it_data.
    then you will have to catch the user command as follows,
    FORM user_command USING r_ucomm TYPE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: alv_vbeln TYPE vbeln,
            mess_text(30) TYPE c,
            txt_vbeln(10) TYPE c.
    *User clicks a Order No. in ALV it passed to the following transaction.
      CASE r_ucomm.
        WHEN '&IC1'.
          READ TABLE it_data INDEX rs_selfield-tabindex INTO wa_data.
          alv_vbeln  = wa_data-vbeln..
          IF sy-subrc = 0.
            CLEAR: mess_text, txt_vbeln.
            SUBMIT zprogram
             WITH pr_vbeln = alv_vbeln AND RETURN.
    put your call transaction logic here
          ENDIF.
      ENDCASE.
    ENDFORM.                    "user_command
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • Passing selection screen values to the next report using CALL TRANSACTION

    Hi experts,
    I have 2 reports. In the first report i have the 3 input fields in the first report, how do i pass the values to the next report which is transaction: ZKKBC_PKO_2.
    I want to display in the next report the selections that the user previously selected.
    First report:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: COMP     LIKE AFRU-WERKS OBLIGATORY MODIF ID s1.
    PARAMETERS: PERIOD   LIKE COEP-PERIO OBLIGATORY MODIF ID s1.
    PARAMETERS: YEAR     LIKE COEP-GJAHR OBLIGATORY MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b1.
    CALL TRANSACTION 'ZKKBC_PKO_2'.
    Anyone can help me?
    Thanks,
    Lawrence

    Hi experts,
    What i did is this:
    Using SET PARAMETER
    in the first report
    SET PARAMETER ID 'WRK' FIELD COMP.
    SET PARAMETER ID 'VPE' FIELD PERIOD.
    SET PARAMETER ID 'GJR' FIELD YEAR.
    CALL TRANSACTION 'ZKKBC_PKO_2'.
    Second Report
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: WRK     LIKE AFRU-WERKS.
    PARAMETERS: VPE     LIKE COEP-PERIO.
    PARAMETERS: GJR     LIKE COEP-GJAHR.
    SELECTION-SCREEN END OF BLOCK blk1.
    Using SUBMIT
    First Report
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: COMP     LIKE AFRU-WERKS OBLIGATORY MODIF ID s1.
    PARAMETERS: PERIOD   LIKE COEP-PERIO OBLIGATORY MODIF ID s1.
    PARAMETERS: YEAR     LIKE COEP-GJAHR OBLIGATORY MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b1.
    SUBMIT ZCO_PRDCOST_ACTUAL_2 VIA SELECTION-SCREEN USING SELECTION-SETS OF PROGRAM 'ZCO_PRDCOST_ACTUAL_1' AND RETURN.
    Second Report:
    GET PARAMETER ID 'WRK' FIELD comp.
    GET PARAMETER ID 'VPE' FIELD COEP-PERIO.
    GET PARAMETER ID 'GJR' FIELD YEAR.
    Either this 2 ways i still cannot get the first report selection values on the 2nd report. Can someone help me see if my codes is correcT?

  • Call transaction CJIC using bdcdata and skip first screen

    I want to call transaction CJIC and skip first screen. I have set parameters for fields for which I need to pass data. But one field namely display variant has no parameter id. How can I pass value to it and also skip first screen?
    I have tried passing its value in bdcdata and also passing ONLI. But it does not run in mode "N". What can be the solution?

    Hi frnd,
    fortunately transaction CJIC is selection-screen of an executable program RKPEP012.......so u don hav to use call transaction and instead u can use SUBMIT statement................
    submit RKPEP012 WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Revert back for queries.
    Cheers,
    Will.

  • How to give values to the field in free selection via call transaction?

    Hi,
    I'm using call transaction for transaction "FAGLB03". And i'm passing the values for the fields company code, account number and year using the respective parameter id. But i need to pass the value for Profit center also, which is in the free selction button (near to variant button). I have tried by passing the value thorugh the parameter id. but it is not taking up. The code is as follows:
        SET PARAMETER ID 'ACC' FIELD lv_saknr.
        SET PARAMETER ID 'BUK' FIELD lv_rbukrs.
        SET PARAMETER ID 'GJR' FIELD lv_ryear.
        SET PARAMETER ID 'PRC' FIELD lv_prctr.
        CALL TRANSACTION 'FAGLB03' AND SKIP FIRST SCREEN.
    Here the value of profit center is not filling up in the screen.
    If anybody have any clue please replay back.
    Thanks in Advance.

    Hello Pothiraja
    If the free selection parameter cannot be filled this way you may try to call the corresponding report using the SUBMIT statement. <b>SUBMIT </b>has the option
    ... WITH FREE SELECTIONS texpr
    For details refer to the ABAP keyword documentation for SUBMIT -> selscreen_parameters.
    Regards
      Uwe

  • Call transaction inside of call function in back ground task

    Hi,
        Is it possible to use call transaction statemement inside of call function in back ground task. I am getting error if i use the same. Any help will be highly appreciated.

    Hi,
    I don't think this is possible. The call goes into error in SM58, what you can try to do is after the function is called, you can submit the program RSARFCEX by setting the user name as sy-uname and other parameters as * and set all the checkboxes.
    regards,
    Advait

  • Call Transaction in background mode

    Hi everyone,
    What I am currently trying to do is to perform a 'call transaction' while forcing the 'background processing' mode even when the user is running the program in online mode; this allows me to retrieve a lot more messages that are useful to the user than the messages generated in online mode.
    As long as I have seen there is no field for that in the options table that can be passed to the 'call transaction' sentence. The only way to see that behavior while in online mode is by 'playing back' a recording thru the SHDB transaction and checking the 'Simulate background' option.
    My first attempt was to set the SY-BATCH flag before doing the call transaction but it doesn't work, the flag seems to reset itself with the correct value during the call.
    Any comments on this would be greatly appreciated.
    Regards,
    Sergio

    You would have to create a job on the fly to do this.  This example shows how to kick off a background job via an ABAP program.
    report zrich_0004 .
    data:   sdate type sy-datum,
            stime type sy-uzeit,
            l_valid,
            ls_params like pri_params,
            l_jobcount like tbtcjob-jobcount,
            l_jobname  like tbtcjob-jobname.
    start-of-selection.
    * Get Print Parameters
      call function 'GET_PRINT_PARAMETERS'
           exporting
                no_dialog      = 'X'
           importing
                valid          = l_valid
                out_parameters = ls_params.
    * Open Job
      l_jobname = 'ZRICH_0005'.
      call function 'JOB_OPEN'
           exporting
                jobname  = l_jobname
           importing
                jobcount = l_jobcount.
    * Submit report to job
      submit zrich_0005   
           via job     l_jobname
               number  l_jobcount
           to sap-spool without spool dynpro
               spool parameters ls_params
                  and return.
    * Schedule and close job.
      call function 'JOB_CLOSE'
           exporting
                jobcount  = l_jobcount
                jobname   = l_jobname
                strtimmed = 'X'

  • Call transaction in ALV report

    Dear Experts,
    I want to call transaction HUMO from my ALV report on double click on Handling unit no.
    I want to pass the Handling unit through my report and skip the first screen.
    I try it using Call Transaction but the filed Handling unit doesn't have a parameter ID.
    I also try it using Submit but the program is a function pool.
    Can anyone please help me out in solving the issue.
    Thanks in advance
    Best regards
    Ankur G.

    Hai,
    This can be achieved by creating custom parameter id.
    1.Go to the table maintenance generator of the table TPARA and go to the Maintain button through the transaction SM30. 
    Enter the table view name TPARA.
    2.Click on the maintain button. The following information will appear. Click on the Tick button or the ENTER button to go to the next screen.
    3.Enter the Set/Get parameter id as the parameter ID you want to create. Here, I will be creating the parameter Id as ZNAME_DATA1. Click on ENTER button.
    4.It will ask for the text of the parameter Id. Enter the text of the parameter ID and click on the Save button.
    5.Now go to the SE11 transaction for creating a data element and enter the parameter id at the Further Characteristics tab at the parameter Id section.
    6.Activate the data element and use it with the program. It will act the same good as a standard one.

  • Is it possible to change user in call transaction ??

    Hi experts,
    There is a custom RFC FM wich makes some call transacion (for example to ME21N) and is invoked from .NET. The user logged in that moment is 'USER1' but the client wants user 'USER2' to appear in standard tables (EKKO...) and in ME23N. It's not possible that the client loggs on with USER2 as he needs the password and we don't like to share it whith them.
    I found this:
    l_Fecha = sy-datum - 1.
      CALL FUNCTION 'BDC_OPEN_GROUP'
        EXPORTING
          client   = sy-mandt
          group    = 'maria'
          user     = 'USER2'
          keep     = space
          holddate = l_fecha.
    (code for the batch input)
      CALL TRANSACTION 'ME21N' USING i_bdcdata
                               MODE w_mode  UPDATE 'S'
                               MESSAGES INTO i_messtab.
      CALL FUNCTION 'BDC_CLOSE_GROUP'.
      SUBMIT rsbdcsub
      WITH bis = sy-datum
      WITH fehler = space
      WITH logall = space
      WITH mappe = 'maria'
      WITH von = sy-datum
      WITH z_verarb = 'X'
      EXPORTING LIST TO MEMORY
      AND RETURN.
    But when the PO is created, the user is still USER1.
    Is it possible to change the user at any moment ??
    Thanks in advance !!
    Regards,
    Marí

    Hi
    You are using ME21n which is and  ENJOY transaction.
    To update ENJOY Transactions use BAPIs instead of BDC.
    because ENJOY transactions are built on control framework which use ActiveX controls (like Grid).
    These new transactions should make life for the end user a bit easier, since SAP transactions not always accelerate in design, logic, etc. That's why SAP has introduced these new transactions which in the end, will have the same result. In these socalled 'Enjoy' transactions, SAP started using these 'new' enjoy sap controls like ALV grid, text editor, HTML viewer etc.
    For 'updating' Enjoy transaction (BTW: You are NOT updating the transactions, but rather the purchase order or whatever) you will have to use BAPI's (or FM for that matter) in stead of BDC since Enjoy Controls work with a different framework in which you can not call a certain screen and field. Like in an ALV grid, not every field has it's own screen field name. So you cannot use them in BDC.
    Hope this makes any sense for your question. As BDC is not reliable for your tcode.
    Thanks DP

  • Call transaction mode 'A' and mode 'N'

    Hi all
    In my below mentioned code statement bdc call transaction eg33 mode 'A' is working fine in both programs main program and called(submit) program (highlighted here). But if I give mode 'N' in both called and calling program call transaction  the called program using submit is not at all called. Suggest me what to do if i want to run it in background.Write now its runing in foreground and user has to press enter many times which i want to avoid.
    REPORT  zac_eg33 NO STANDARD PAGE HEADING
                     LINE-SIZE 100.
    TABLES: EABL,
            BUT000,
            ZISUH0003.
    DATA: IT_STATUS TYPE ZISUH0003.
    DATA: G_INDEX TYPE I,
          G_START_COL TYPE I VALUE '1',      "start column
          G_START_ROW TYPE I VALUE '14',      "start row
          G_END_COL   TYPE I VALUE '18',     "maximum column
          G_END_ROW   TYPE I VALUE '75',  "maximum row
          G_TEXT(20),                         "stores error messages
          G_PAGES        TYPE I,
          G_CURRENT_PAGE TYPE I,
          G_COUNT LIKE SY-DBCNT.
    data: l_file   type file_table,
          file1    type string,
          l_title  type string,
          LENGTH   TYPE I,
          FILES    type filetable,
          SUBRC    type i,
          STR_FILE type STRING,
          D_FILE   type RLGRAP-FILENAME,
          filename TYPE String,
          L_itab_date(10).
    FIELD-SYMBOLS : <FS>.
    DATA msgtext(80).
    DATA: IT_EXCEL LIKE STANDARD TABLE OF ALSMEX_TABLINE WITH HEADER LINE,
          IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
    TYPES: BEGIN OF TY_OPEN,
            HAUS LIKE REG30-HAUS,
            EADAT(10),
            GERAETNEU LIKE REG30-GERAETNEU,
            MESSDRCK LIKE REG30-MESSDRCK,
            ZWSTANDCE LIKE REG30-ZWSTANDCE,
            XYZ LIKE EGPLD-DEVLOC,
          END OF TY_OPEN.
    DATA : T_ANLAGE LIKE EANLD-ANLAGE,
           VSTELLE LIKE EVBS-VSTELLE,
           S_ANLAGE LIKE EANLD-ANLAGE,
           temp_c(7).
    DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
    DATA: BDCDATA1 TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: P_FILE like RLGRAP-FILENAME OBLIGATORY.
    SELECTION-SCREEN SKIP 2.
    SELECTION-SCREEN END OF BLOCK 1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE  .
      PERFORM GET_FILE_NAME.
      MOVE FILENAME TO P_FILE.
    *START-OF-SELECTION.
    *CLEAR IT_EXCEL.
    START-OF-SELECTION.
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = p_file
        I_BEGIN_COL                   = 1  "VF_START_COL
        I_BEGIN_ROW                   = 2  "VF_START_ROW
        I_END_COL                     = 5  "VF_END_COL
        I_END_ROW                     = 10000  "VF_END_ROW
      TABLES
        INTERN                        = IT_EXCEL
      EXCEPTIONS
        INCONSISTENT_PARAMETERS       = 1
        UPLOAD_OLE                    = 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.
    IF IT_EXCEL[] IS INITIAL.
      G_TEXT = 'No Data Uploaded'.
    ELSE.
      SORT IT_EXCEL BY ROW COL.
      LOOP AT IT_EXCEL.
        MOVE : IT_EXCEL-COL TO G_INDEX.
        ASSIGN COMPONENT G_INDEX OF STRUCTURE IT_OPEN TO <FS>.
        MOVE IT_EXCEL-VALUE TO <FS>.
        AT END OF ROW.
          IF NOT IT_OPEN IS INITIAL.
          APPEND IT_OPEN." TO IT_LINE.
          CLEAR IT_OPEN.
          CLEAR IT_EXCEL.
          ENDIF.
        ENDAT.
      ENDLOOP.
    ENDIF.
    REFRESH IT_EXCEL.
    ULINE.
    FORMAT COLOR 3 ON.
    WRITE: /1 sy-vline ,
           2 'Material No.' ,
           25 sy-vline,
            2 'Logs' ,
            100 sy-vline.
    uline.
    FORMAT COLOR OFF.
    LOOP AT IT_OPEN.
    REFRESH BDCDATA1.
    clear : temp_c.
    move it_open-MESSDRCK to temp_c.
    condense : temp_c.
    PERFORM MAP1.
    *CALL TRANSACTION 'EG33' USING BDCDATA1 MODE 'A' MESSAGES INTO IT_MESS.
    GET PARAMETER ID 'GEP' FIELD it_open-XYZ.
    SET PARAMETER ID 'IFL' FIELD it_open-XYZ.
    *MESSAGE X003(IA) INTO msgtext.
    *IF MSGTEXT = 'Only single installation is allowed at functional location &'.
    *EXIT.
    *ELSE.
    SUBMIT ZIL02_BDC and return.*
    ENDIF.
    DATA: G_INSNO LIKE IT_OPEN-HAUS.
    IF NOT IT_MESS[] IS INITIAL.
      G_INSNO = IT_OPEN-HAUS.
      PERFORM GET_MESSAGES  TABLES IT_MESS USING G_INSNO." IT_LINE.
    ENDIF.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
    IF SY-SUBRC NE 0.
    READ TABLE IT_MESS WITH KEY MSGTYP = 'S'  MSGNR = '622'.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
    SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
    MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
    MOVE 'X' TO IT_STATUS-RFC.
    *perform get_date_format using IT_OPEN-EADAT.
    MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
    SELECT SINGLE ANLAGE FROM ZISUH0003 INTO  S_ANLAGE WHERE ANLAGE =
    T_ANLAGE.
      IF SY-SUBRC EQ 4.
        INSERT ZISUH0003 FROM IT_STATUS.
      ELSE.
        UPDATE ZISUH0003 FROM IT_STATUS.
      ENDIF.
      ENDIF.
      ENDIF.
      REFRESH IT_MESS.
      CLEAR   IT_MESS.
    ENDLOOP.
    *PERFORM BDC_OPEN_READING.
    MESSAGE S013(ZPS).
    *&      Form  GET_FILE_NAME
          text
    -->  p1        text
    <--  p2        text
    FORM GET_FILE_NAME .
    REFRESH FILES.
    call method cl_gui_frontend_services=>file_open_dialog
                exporting
                  window_title            = l_title
                changing
                  file_table              = files
                  rc                      = subrc
                exceptions
                  file_open_dialog_failed = 1
                  cntl_error              = 2
                  error_no_gui            = 3
                  others                  = 4.
              check sy-subrc = 0.
              loop at files into l_file.
                str_file = l_file.
                move str_file to filename.
                exit.
              endloop.
    ENDFORM.                    " GET_FILE_NAME
    *&      Form  BDC_OPEN_READING
          text
    -->  p1        text
    <--  p2        text
    FORM BDC_OPEN_READING .
    *DATA: G_INSNO LIKE IT_OPEN-HAUS.
    *IF NOT IT_MESS[] IS INITIAL.
    G_INSNO = IT_OPEN-HAUS.
    PERFORM GET_MESSAGES  TABLES IT_MESS USING G_INSNO." IT_LINE.
    *ENDIF.
    *READ TABLE IT_MESS WITH KEY MSGTYP = 'E'.
    *IF SY-SUBRC NE 0.
    *READ TABLE IT_MESS WITH KEY MSGTYP = 'S'  MSGNR = '622'.
    *IF SY-SUBRC EQ 0.
    *SELECT SINGLE VSTELLE FROM EVBS INTO VSTELLE WHERE HAUS = IT_OPEN-HAUS.
    *SELECT SINGLE ANLAGE FROM EANL INTO T_ANLAGE WHERE VSTELLE = VSTELLE.
    *MOVE T_ANLAGE TO IT_STATUS-ANLAGE.
    *MOVE 'X' TO IT_STATUS-RFC.
    **perform get_date_format using IT_OPEN-EADAT.
    *MOVE IT_OPEN-EADAT TO IT_STATUS-ADATE.
    *SELECT SINGLE ANLAGE FROM ZISUH0003 INTO  S_ANLAGE WHERE ANLAGE =
    *T_ANLAGE.
    IF SY-SUBRC EQ 4.
       INSERT ZISUH0003 FROM IT_STATUS.
    ELSE.
       UPDATE ZISUH0003 FROM IT_STATUS.
    ENDIF.
    ENDIF.
    ENDIF.
    REFRESH IT_MESS.
    CLEAR   IT_MESS.
    *ENDLOOP.
    ENDFORM.                    " BDC_OPEN_READING
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA1.
      BDCDATA1-PROGRAM  = PROGRAM.
      BDCDATA1-DYNPRO   = DYNPRO.
      BDCDATA1-DYNBEGIN = 'X'.
      APPEND BDCDATA1.
    ENDFORM.
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA1.
        BDCDATA1-FNAM = FNAM.
        BDCDATA1-FVAL = FVAL.
        APPEND BDCDATA1.
      ENDIF.
    ENDFORM.
    *&      Form  MAP1
          text
    -->  p1        text
    <--  p2        text
    FORM MAP1 .
    perform bdc_dynpro      using 'SAPLE30D' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-GERAETNEU'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'REG30-HAUS'
                                  IT_OPEN-HAUS.  "'100000000033'.
    perform bdc_field       using 'REG30-EADAT'
                                  IT_OPEN-EADAT.  "'18.02.2006'.
    perform bdc_field       using 'REG30-GERAETNEU'
                                  IT_OPEN-GERAETNEU.  "'66a'.
    perform bdc_dynpro      using 'SAPLE30D' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'REG30-TEMP_AREA(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'REG30-MESSDRCK'
                                   temp_c. "IT_OPEN-MESSDRCK'0.0125'.
    perform bdc_field       using 'REG30-GERWECHS'
                                  '05'.
    perform bdc_field       using 'REG30-ANZDAYSOFPERIOD(01)'
                                  '30'.
    perform bdc_field       using 'REG30-ZWSTANDCE(01)'
                                  IT_OPEN-ZWSTANDCE.  "'10'.
    perform bdc_field       using 'REG30-ZWSTANDCE(02)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(01)'
                                  '0'.
    perform bdc_field       using 'REG30-PERVERBR(02)'
                                  '0'.
    perform bdc_field       using 'REG30-TEMP_AREA(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-TEMP_AREA(02)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(01)'
                                  '0001'.
    perform bdc_field       using 'REG30-PR_AREA_AI(02)'
                                  '0001'.
    ENDFORM.                    " MAP1
    *&      Form  get_date_format
          text
         -->P_IT_ORDER_TABLE_C_DATE  text
    FORM get_date_format USING L_ITAB_DATE." LIKE SY-DATUM.
    data: d_temp(4),
          m_temp(2),
          y_temp(4).
    *move L_ITAB_DATE to L_ITAB_DATE.
    y_temp = L_ITAB_DATE(4).
    m_temp = L_ITAB_DATE+4(2).
    d_temp = L_ITAB_DATE+6(2).
    CONCATENATE d_temp '.' m_temp '.' y_temp into L_ITAB_DATE.
    ENDFORM.                    " get_date_format
    *&      Form  GET_MESSAGES
          text
         -->P_IT_MESS  text
         -->P_G_INSNO  text
    FORM GET_MESSAGES  TABLES IT_MESS STRUCTURE BDCMSGCOLL USING G_INSNO .
      TABLES T100.
    DATA: L_MSTRING(255).
    LOOP AT IT_MESS WHERE MSGTYP = 'E'   OR MSGTYP = 'S'.
          SELECT SINGLE * FROM T100 WHERE SPRSL = IT_MESS-MSGSPRA
                                    AND   ARBGB = IT_MESS-MSGID
                                    AND   MSGNR = IT_MESS-MSGNR.
          IF SY-SUBRC = 0.
            L_MSTRING = T100-TEXT.
            IF L_MSTRING CS '&1'.
              REPLACE '&1' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&2' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&3' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&4' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ELSE.
              REPLACE '&' WITH IT_MESS-MSGV1 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV2 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV3 INTO L_MSTRING.
              REPLACE '&' WITH IT_MESS-MSGV4 INTO L_MSTRING.
            ENDIF.
            CONDENSE L_MSTRING.
          ENDIF.
          CONDENSE G_INSNO.
          CONCATENATE 'For' ' ' G_INSNO ',' L_MSTRING INTO L_MSTRING SEPARATED BY SPACE.
    FORMAT COLOR 2 ON.
    *IF IT_MESS-MSGTYP = 'S' AND IT_MESS-MSGNR = '622'.
    *WRITE: 1 sy-vline,
            L_MSTRING    under 'Error Messages',
           100 sy-vline.
    *ULINE.
    *ELSEIF IT_MESS-MSGTYP = 'E'.
    WRITE: 1 sy-vline,
             L_MSTRING    under 'Logs',
            100 sy-vline.
    ULINE.
    *ENDIF.
    ENDLOOP.
    ENDFORM.                    " GET_MESSAGES
    code for ZIL02_BDC    
    .report ZIL02_BDC
           no standard page heading line-size 255.
    *data : XYZ LIKE EGPLD-DEVLOC.
    TYPES: BEGIN OF TY_OPEN,
            HAUS LIKE REG30-HAUS,
            EADAT(10),
            GERAETNEU LIKE REG30-GERAETNEU,
            MESSDRCK LIKE REG30-MESSDRCK,
            ZWSTANDCE LIKE REG30-ZWSTANDCE,
            XYZ LIKE EGPLD-DEVLOC,
          END OF TY_OPEN.
    DATA: IT_OPEN TYPE STANDARD TABLE OF TY_OPEN WITH HEADER LINE.
    DATA: BDCDATA TYPE STANDARD TABLE OF BDCDATA WITH HEADER LINE.
    GET PARAMETER ID 'GEP' FIELD it_open-XYZ.
    DATA :  IT_MESS TYPE STANDARD TABLE OF BDCMSGCOLL WITH HEADER LINE.
    *include bdcrecx1.
    start-of-selection.
    perform bdc_dynpro      using 'SAPMILO0' '1110'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-TPLNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'IFLO-TPLNR'
                                  it_open-xyz.
    perform bdc_field       using 'RILO0-TPLKZ'
                                  'AO_GP'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'IFLO-PLTXT'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=T\04'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ITOBATTR-EINZL'.
    perform bdc_field       using 'ITOBATTR-IEQUI'
                                  'X'.
    perform bdc_field       using 'ITOBATTR-EINZL'
                                  'X'.
    perform bdc_dynpro      using 'SAPMILO0' '2100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BU'.
    perform bdc_field       using 'IFLO-PLTXT'
                                  'DEVICE LOCATION'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ITOBATTR-EINZL'.
    perform bdc_field       using 'ITOBATTR-IEQUI'
                                  'X'.
    perform bdc_field       using 'ITOBATTR-EINZL'
                             'X'.
    CALL TRANSACTION 'IL02' USING BDCDATA MODE 'A' MESSAGES INTO IT_MESS.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD

    Hi Michelle,
    No I havent tried this way. How to do that can you tell me ?
    Regards
    Anu

Maybe you are looking for

  • Iphone 6 Blue Tooth Pairing with my 2011 Tundra

    My Tundra will not pair effectively with my new iPhone 6...I have the latest software update 8.0.2.  It will play audio (Music) but will pair with phone audio.   What needs to happen here now? My 4S worked fine.

  • Finding vars in Exit user

    Hi I code Exit user for MIR7 but don't see global var xblnr (field on screen rbkp-xblnr) in include EXIT_SAPLMRMP_004 (ZXM08U29). How to check which vars are visibles in this include? Edited by: Kosmo on Aug 21, 2008 6:51 PM

  • TFS 2012 Setup failes

    Hi, I am trying to run a test installation of TFS for testing purpose. The Setup fails with the following error:  TF400534: Zwischenspeicherung von Paket (tfs:objectmodel_x64) ist mit folgendem Stauts fehlgeschlagen: 0x80070001. HRESULT: 0x80070001 E

  • How to See Contents Of TC?

    I set up a TC in 2008 to back up a MBP but also to act as a network drive for my iTunes content. I remember copying over my iTunes content via a wired Ethernet cable into the TC. I also remember Time Machine up and running and making back ups of my M

  • Unable to Install New Flash Player

    I've been trying to install the new version of Flash Player and it's not working... I uninstalled my old version. But upon completing the installation process for the new version, a browser window pops up on the Adobe site that says, " Thank you and