Call transaction passing values

Hi Experts,
      I have a report program from which i need to call a transaction to insert a record.Brief description of the problem is as follows:
      User enters some value of  Ware house No,Inventory record and Count in a transaction say 'T1'.
The entries are then checked in the database table.If no record exist then some other transaction 'T2'  is called passing these values of Ware house No,Inventory record No and Count.Please suggest a way how to pass multipe values from 1 transaction to other.
                        Help will be appreciated.
Regards
Sourabh

Hi,
call transaction syntax is ""call transaction <transaction code>using<BDCtab>mode<A/N/E>update<S/A>message into <internal table>
<b>
CALL TRANSACTION tcod [AND SKIP FIRST SCREEN] [USING itab].</b>
The <b>USING ITAB</b> addition in the <b>CALL TRANSACTION </b>statement allows you to pass an internal table itab to the new transaction. itab has the format of a batch input table.
Feel free to revert back.
--Ragu
Message was edited by:
        Raguraman C

Similar Messages

  • Call function, pass value, access variable in movieclip class from main stage

    i am new to flash as.
    I got quite confused on some problems. as the function here
    is quite different from c and asp.net.
    I have a movieClip named MC, and it's enabled with action
    script, with the class name MC_Rectangle
    and a Stage.
    I override the MC_Rectangle class file in a mc_rectangle.as
    external file.
    here is the code:
    package{
    import flash.display.*;
    import flash.events.*;
    public class MC_Rectangle extends MovieClip {
    var sequence:int = new int();
    function setSequence(data:int):void{
    sequence = data;
    function addSequence():void{
    sequence ++;
    I have new a object in the main stage var
    mc_rect:MC_Rectangle = new MC_Rectangle()
    question:
    in main stage:
    1. how can i access the variable "sequence" in "mc_rect"
    2. how can i pass parametre from main stage to mc_rect via
    function setSequence(data:int)?
    3. how can i call the function in addSequence() in mc_rect.
    in asp.net, i usually use mc_rect.sequenct,
    mc_rect.setSequence(data), mc_rect.addSequence() to achieve my
    goals......
    btw, can function in mc_rect return out result to main stage?
    thanks in advance.

    Your as-file must be named MC_Rectangle.as (same upper/lower
    case as in the Class name)
    Ad 1) You have to declare sequence as a public property
    "public var sequence;" or - better - define a getter-function for
    sequence.
    Ad 2) mc_rect.setSequence(8); e. g. (you must write "public"
    in the Class-declaration of setSequence)
    Ad 3) mc_rect.addSequence(); e. g. (you must write "public"
    in the Class-declaration of addSequence)
    ... and yes, your methods can return a value: Replace "void"
    with the proper data type (int, String, ...) and place a "return
    myNumber;" or the like in the method's body.

  • 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?

  • Problem in passing selection screen values using CALL TRANSACTION.

    Hi All
    I am facing problem in transfering selection screen values to the called transaction. I am trying to pass the path of the transaction filer but to no avail. The variable for filepath is not empty.
    Below is my code:
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFBASM00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'RFPDO1-FEBUMSF'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'RFPDO1-FEBUMSF'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_OKCODE'.
    wa_bdcdata-fval = 'PASS'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    opt-dismode = 'E'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Please help.
    Harsh

    Hi Harsh,
    I think you have entered wrong main program for tcode 'FF_5' and wrong screen field for the file name. Use the below code instead of yours.
    DATA: lt_bdcdata TYPE TABLE OF bdcdata,
           wa_bdcdata TYPE bdcdata,
           opt TYPE ctu_params,
           gv_filepath type char128 value 'C:\testfile.txt'.
    CLEAR wa_bdcdata.
    wa_bdcdata-program  = 'RFEBKA00'.
    wa_bdcdata-dynpro   = '1000'.
    wa_bdcdata-dynbegin = 'X'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'BDC_CURSOR'.
    wa_bdcdata-fval = 'UMSFILE'.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    wa_bdcdata-fnam = 'UMSFILE'.
    wa_bdcdata-fval = gv_filepath.
    APPEND wa_bdcdata TO lt_bdcdata.
    CLEAR wa_bdcdata.
    *wa_bdcdata-fnam = 'BDC_OKCODE'.
    *wa_bdcdata-fval = 'PASS'.
    *APPEND wa_bdcdata TO lt_bdcdata.
    *CLEAR wa_bdcdata.
    opt-dismode = 'A'.
    opt-updmode = 'S'.
    CALL TRANSACTION 'FF_5' USING lt_bdcdata OPTIONS FROM opt.
    Thanks.
    Regards,
    Jey

  • Passing select-options values using call transaction method

    Hi Experts,
    I have a scenario in which i have three fields BUKRS,WERKS and MATKL in an internal table i_tab and I have MATNR as a selection-option.
    After this I have to use call transaction <tcode> for all the line items in the internal table and the MATNR select-option values I have to pass directly for each line of i_tab using call transaction method.
    TYPES:  BEGIN OF t_tab,
              bukrs TYPE bukrs,
              werks TYPE werks_d,
              matkl TYPE matkl,
            END OF t_tab.
    DATA:  w_tab TYPE t_tab,
                i_tab      TYPE STANDARD TABLE OF t_tab.
    SELECT-OPTIONS: s_matnr FOR marc-matnr.
    Now I am putting a loop at i_tab and have to use CALL TRANSACTION <TCODE> for each line with the SELECT-OPTIONS for MATNR.
    Please tell me whether we can pass multiple ranges for MATNR using call transcation method.
    for example there can be multiple single values/multiple ranges/excluded ranges for MATNR. so please suggest me how tho achieve this sceanrio using CALL transaction method of BDC.
    Thanks a lot.
    Regards,
    Krishan

    Hi Krishan,
    For the Call transaction TCODE there is extension ....OPTIONS from OPT. Just Check it out. I think it is possible like this.
    ... OPTIONS FROM opt
    *Effect*
    This addition gives you control using the values of the components of the structure opt, which must be of the Dictionary type CTU_PARAMS. The components have the following meaning:
    DISMODE
    Processing mode (comparable with the MODE addition)
    UPDMODE
    Update mode (comparable with the UPDATE addition)
    CATTMODE
    CATT mode (controlling a CATT procedure)
    The CATT mode can have the following values:
    ' ' No CATT procedure active
    'N' CATT procedure without single screen control
    'A' CATT procedure with single screen control
    DEFSIZE
    Use standard window size
    RACOMMIT
    COMMIT WORK does not end CATT procedure
    NOBINPT
    No batch input mode, that s SY-BINPT = SPACE.
    NOBIEND
    No batch input mode after BDC data has been read
    The components DEFSIZE , RACOMMIT, NOBINPT, NOBIEND always take the following values:
    'X' Yes
    ' ' No
    If the OPTIONS addition is omitted, the following settings are valid for the control parameters:
    DISMODE from the MODE addition
    UPDMODE
    from the UPDATE addition
    CATTMODE
    No CATT procedure active
    DEFSIZE
    Do not use standard window size
    RACOMMIT
    COMMIT WORK ends procedure successfully
    NOBINPT
    Batch input mode, that is SY-BINPT =X.
    NOBIEND
    Batch input mode also active after BDC data has been read
    Regards,
    Swapna.

  • Call Transaction from Program by Skipping Initial Screen & Pass the Value

    Hi All,
    Can anybody help me to call a transaction from my program. I do not want to display the initial screen of the transaction but that TCODE should get opened by passing the values to the parameter of the initial screen.
    For Example, in my program I want to call 'SE38' and in that, my Program of Name 'ZTEST' should get opened. So I need to call Transaction SE38, but I donot want to display initial screen of that. Instead of that, I want to put the value of Program 'ZTEST' and thus my program should get opened.
    Sandip

    Hello Sandip,
    Since you have not made any references to Batch Processing, I shall tell you the normal way to do it. First look at the code below and execute it.
    set parameter id 'DTB' field 'VBAK'.
    call transaction 'SE16' and skip first screen.
    There are a few things that you need to keep in mind before you use this statement:
    1. All mandatory input fields of the initial dynpro must be filled completely and with the correct values by the SPA/GPA parameters.
    2. For the initial dynpro, in the Screen Painter the own dynpro number must not be specified as the next screen number. However, if the next screen can be reached from the first screen by just hitting the Enter key, this will work.
    The following will not work as you expect, because the next screen in the transaction cannot be reached by just hitting the Enter Key.
    set parameter id 'RID' field 'ZTEST'.
    call transaction 'SE38' and skip first screen.
    Regards,
    Anand Mandalika.
    Please reward points if this helps.

  • Call transaction which passing the value to T.CODE

    Hello
    I created zrepot in which i am calling the Standard transaction
    like
    call transaction 'FB03'..
    In Interactive report the value which i m selecting should be pass as document no(BSEG-BELNR) and Fiscial Year & Company Code should be taken
    Pls help me

    Hi,
    Is it an regular interactive report or an ALV.
    If it is a regular report then use the HIDE command
    to get the value of Document number and company code during line selection.
    In ALV get the values in selfield structure in the user_command routine.
    Regards,
    Sudhir Atluru
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 7, 2008 2:35 PM

  • VALUES not getting passed in t.code 'FMY3' VIA call transaction 'FMY3'

    hi guru's,
    i have created a ALV report for funds precommitment,when i click the document number,the respective document is not opening
    i have coded like this
    IF selfield-value IS NOT INITIAL.
            READ TABLE final INDEX selfield-tabindex.
            SET PARAMETER ID: 'KBL' FIELD final-belnr,
                              'KBP' FIELD final-blpos.
            CALL TRANSACTION 'FMY3' AND SKIP FIRST SCREEN.
          ENDIF.
    the transaction is called,but with empty value in the field and the document is not opening....please help me with this regard...
        thanks in advance,
    regards,
    Balaji.S

    Hello Venkat.O,
    i have a similar problem with the overwrite of the memory ID, when calling transaction FMY3. In the code block you mentioned, the system gets the right value from the memory ID, that i've set before calling the transaction. But i found that after that the system runs in the include LFMFRO01, the code
    MODULE init_suppress OUTPUT.
      IF status2 = st2_app.                "/Genehmigen/Ablehnen
    Lesen aus Memory: wird in WF-Methode 'APPROVE' gefüllt
        IMPORT wfdata TO g_f_wfdata FROM MEMORY ID con_memid_wf.
        IF NOT g_f_wfdata-belnr IS INITIAL.
          IF g_f_wfdata-blpos = space.
            g_f_wfdata-blpos = con_initial_blpos.
          ENDIF.
          kbld-belnr = g_f_wfdata-belnr.
    and here the system gets the memory of the last document created and overwrites the selecion-screen field KBLD-BELNR with that value. And the value i had stored in the parameter ID 'MRV', and that the system gets it right in the code you show, is overwritten..
    This seems like a bug from SAP, don't you think?
    This way the system will always show the last doc. when calling transaction, after setting a parameter ID..

  • How to pass the value to the screen through call transaction

    hi
    i have got an requirement for which i have to call MIGO tcode through call transaction command. But here one list box GODYNPRO-ACTION (screen field) contains list of values . my requirement is when i will call the tcode MIGO it should take defaultly  DISPLAY option from  list of values. I have searched for parameter id but i cannot get for that list box. please help me to solve this issue.
    points will be surely assigned to helpful answers.
    regards
    shiba dutta

    just try this its working...
    tables: godynpro.
    GODYNPRO-ACTION = 'Display'.
    call transaction 'MIGO'.
    Message was edited by:
            Chandrasekhar Jagarlamudi

  • How to pass value standard program to Workflow after than to call Transaction

    Hi Experts..
        While We are Cancel any PO in Me29n, it will Pass values(Like reason for cancel With PO No) and Send a mail (User name whose reject the cancel against Release of PO No) in workflow inbox(workplace) After than getting a mail any particular User, they will See the Message of  Purchase  order against  Canceled. After then they will double click on that message it will trigger ME29N Tcode with the particular PO.
            Using with Badi in Me29N we have to Passed  Values and sent a Mail in work place but When  Double click on Message I Dont Know HOw to Call ME29N in work place....
         Cancel Po in Me29N-->WORK PLACE --> Double click on message,will call ME29N
       So, please help me how to i can Rectified this.
    Regards,
    kumar

    hi Kumar
    BUS2012 is a business object, see it in tcode SWO1.
    You can try blow code:
    INCLUDE <CNTN01>.
    DATA: OBJ TYPE SWC_OBJECT.
    DATA: PO_ITEMS TYPE TABLE OF BAPIEKPOC.
    DATA: PURCHASEORDER     TYPE     BAPIEKKO-PO_NUMBER VALUE '4500000004'.
    SWC_CONTAINER CONTAINER.
    SWC_CREATE_OBJECT OBJ 'BUS2012' ''.
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.
    SWC_SET_ELEMENT CONTAINER 'PurchaseOrder' PURCHASEORDER.
    SWC_CALL_METHOD OBJ 'Display' CONTAINER.  " call method 'Display' show ME29N.
    Infact, you can achieve all your requirment in workflow, don`t need implement BADI.
    The trigger event is event 'rejection_start' in BUS2012. Create a user decision(which will show in workplace) and create a task bounding the 'Display' method of BUS2012.
    There are so many detail content in scn or wiki. thanks.
    hope can help you.
    Regards,
    Archer

  • 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

  • How to pass value coming from a program to a transaction

    hi gurus,
    In my requirement i will get a value from a program and i need to send this value to a field present in a transaction.
    can any one help me in this matter.

    First got to the data element of the field to which you want to pass the value to and check the Parameter ID in the Further Characterstics tab
    For Example it is XYZ
    Then
    In BADI
    Set Parameter ID 'XYZ' Field P_FIELD_VALUE.
    Call Transaction 'ABCD'.
    santhosh

  • How do I pass SELECT-OPTIONS to another screen via CALL TRANSACTION?

    Good day, everyone!
    I am writing a program that will be passing PARAMETERS and SELECT-OPTIONS values to another transaction via the CALL TRANSACTION statement.  I'm new at this, and I've run into a problem.  I have several fields that are defined as SELECT-OPTIONS, like so:
    SELECT-OPTIONS so_ccode FOR fkkop-bukrs.
    The user may select multiple values, enter a range, exclude certain values, etc. -- the things a SELECT-OPTIONS allows.
    But how do I pass all of this to a field on another screen using CALL TRANSACTION when I only have two fields (BDCDATA-FNAM and BDCDATA-FVAL) available to me?  That works fine for PARAMETERS, but I can send low/high values, different signs/options, etc. for the SELECT-OPTIONS variables.
    Please help!!  Points awarded for all helpful answers.
    Thank you,
    Dave

    Don't use CALL TRANSACTION. Use SUBMIT instead.
    Rob

  • How to pass values to transaction

    Hi Everyone,
       I am calling a Tcode S_ALR_87012343  when user clicks on alv report.
    my problem is (After calling this tcode my value should be passed to the field which is related to Logical database fields
    i,e:- Document type.) sm unable to do that .
    I need ur help.
    thanks
    Imran

    Hi,
    Try like this....
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
           WHEN '&IC1'.
          CASE rs_selfield-fieldname.
            WHEN '<field name>'.
              SET PARAMETER ID '<parameter id of the field>' FIELD rs_selfield-value.
              IF rs_selfield-value IS NOT INITIAL.
                CALL TRANSACTION 'S_ALR_87012343' AND SKIP FIRST SCREEN.
    The problem might be you are passing wrong parameter id...check it....
    In t-code i found Document type ( no field with this name)
    but there is a field..document number whose parameter id is 'BLN'.
    Please check it...
    Regards
    Debarshi

  • Pass value to desktop transaction shortcut

    Hi experts,
    I have created the desktop shortcut for transaction VA03.
    And I am calling this shortcut from another system(JAVA).
    Can I pass values during call to this shortcut.
    regards,
    Gopan

    Hi Roberto,
    I have found your replay on of forum regarding FEB_BADI for FF_5 transaction.
    We have implemented the FEB_BADI to change the GL account at runtime based on the business rules. The document posting is happening as per the requirement but the out put of FF_5 is not reflecting the GL account changes made in BADI.
    Have to come across this scenario.
    Appreciate your help on this.
    Thanks,
    Venkat Bomma

Maybe you are looking for

  • How do i copy contacts from one apple id to another?

    how do I copy contacts from one apple id to another?

  • Suddenly ODI scheduled executions taking more time than usual.

    Hi, I have set ODI packages scheduled for execution. From some days those are taking more time to execute themselves. Before they used to take 1 hr 30 mins approx. Now they are taking 3 - 3 hr 15 mins approx. And there no any major change in data in

  • Applescript on Numbers to copy rows between tables

    Hi, I am an applescript newbie, but am trying to make my book-keeping spreadsheet a bit more comfortable. And this is the problem: I have expenses that repeat every month and I would like to not have to rewrite them each time. So I thought I make a s

  • Runtime Error when filter an ALV

    Hello, I have problems when I execute a filter on an ALV colum, exactly, at the poupup where I select the value for the filter field, and execute, gives me the next dump: GETWA_NOT_ASSIGNED Field symbol has not yet been assigned. Error in the ABAP Ap

  • Deleting messages in iOS8

    Since upgrading to ios8 i can only delete two text message conversations at a time.   I then have to close messages and reopen to delete any more than two.  Has any one else seen to experienced this problem?   Any solutions?