Salesorder creation using BDC

Hi All,
I have a requirement as described below.
while creating a sales order, if u go to header level and then partners tab in that, u would see a table like structure where u have sold-to-party, ship to party, bill to party, and payer.
My requirement is that i need to select ship-to-party and press details button then i want to change the details there.everything is working fine at the moment.
but i have a doubt that the order of ship to party, sold to party , payer and bill-to-party wouldnt be same all the time.now the ship-to-party is in 4th position.so, in BDC recording it is GVS_TC_DATA-SELKZ(04), i am setiing that to 'X' and iam going ahead.what if the position changes?
is there anyway that i can trace the ship-to-party position whether it is in position 1 or 2 or 3 or 4.
could some one help me with this.
Thanks in advance,
suresh

Use the function module VIEW_KUAGV. Pass soldto details and document details being created in inport parameter comwa and pass shipto number in WE_INPUT and fif_no_dialog = 'X',no_address_data = 'X'.
This gives the exact structure of how the partners will appear when you create a sales order in table xvbpa. You can find the positions of partners from the table.
Award points if answer is helpfull.

Similar Messages

  • Material Creation Using BDCs.

    Hi all,
    I have developed a program for Material Creation using BDC.
    Material is Being created and that is working well and good.Here i have a Requirement to update the Newly creted material in Ztable.So when i use call transaction mathod,i have written code for updation under the line CALL TRANSACTION.where in iam getting newly creatde material from MARA table,and so it is working perfectly fine..
    But our requirement should be sessions method,so when i use sessions method and exeute the program..we face the problem of updation.
    the piece of code for updation is updating previously created material.
    Literally speaking only the sessions are created ,when the program is executed,material is not created when program is run.Material is only created when the sessions are processed using SM35,
    So how should i do here,where should be the updation code written and where will we get the newly created material in sessions method..
    Pls Help me in solving this problem

    hai priyanaka it might be due to configuration problem
    bcos manulay also ur gettign this , so just consult ur MM consultant for soem setting
    regards
    afzal

  • Upload data for Tcode LT06(Transfer order creation) using BDC -very urgent

    hi experts,
          I got stucked up in writing a BDC for the Tcode LT06(Transfer order creation using wearhouse number) in MM module,
    the problem is like this, when i go to the tcode LT06 , it will ask for material doucument,mat. docu. year and wearhouse number, iam entering the inputs and then press enter, as soon as i press enter it takes me to the second screen where i will be selecting the item and then click on the button called  'Generate TO item'
    here the problem arises, as soon as i click the button iam getting a standard SAP error message(No Destination Storage Bin found in storage type 'IMP'). Due to this errror iam not able populate the batch input data on the screen, suggest me a proper solution. rewards will given if solution found useful.
    Kishore K

    Hi ,
    I have done the same in Background with BDC and TR Number for Multiple Materials ,
    Can u please explain the scenario, so then I would be able to try for solution ?
    Warm Regards.

  • Billng document creation using bdc

    hi experts,
    I've been using bapi for sales order and outbound delivery creation. But for billing document i'm using BDC. it's simpler. The creation of sales order and outbound delivery has no problem. The problem is upon creation of the billing document, it only creates the last entry in the item level. Example, if item has 10,20, and 30; it will only create item 30 in the billing document level. But no problem with the sales order and outdel. What could i be missing here?
    Thank you in advance!

    Hi,
    Im actually not very particular on where in the bdc code the line items are being processed. the only variable that I see here is the outbound del number which is g_odnum. Here is the BDC code.
    f_bdc_dynpro 'SAPMV60A' '0102'.
          f_bdc_field  'BDC_CURSOR' 'KOMFK-VBELN(01)'.
          f_bdc_field  'BDC_OKCODE' '/00'.
          f_bdc_field  'KOMFK-VBELN(01)' g_odnum.
          f_bdc_dynpro 'SAPMV60A' '0104'.
          f_bdc_field  'BDC_CURSOR' 'VBRK-FKART'.
          f_bdc_field  'BDC_OKCODE' '=SICH'.
          f_bdc_transaction 'VF01'.
    Can you help me identify where it is in this BDC code?
    Thanks for you help!

  • Contract creation using BDC wherein Net order price is Zero

    Hi,
    Please let me know the solution to the above problem.
    I am trying to create a quantity contract using BDC but the Net Order Price is coming as Zero even though the condition type PB00 is maintained properly in the info record with some net order price which is not equal to zero.
    Please let me know asap as this is a critical issue. The same problem is not happening if i try an create a contract manually.

    Hi,
    Please let me know the solution to the above problem.
    I am trying to create a quantity contract using BDC but the Net Order Price is coming as Zero even though the condition type PB00 is maintained properly in the info record with some net order price which is not equal to zero.
    Please let me know asap as this is a critical issue. The same problem is not happening if i try an create a contract manually.

  • Salesorder creation using jco

    hi,
    i am trying to create a salesorder in r/3 from website using jco. can any one tell me the sites where i can get the stuff regarding this.
    thanking u in advance.
    regards,
    mounika.

    hi,
    You need to call the BAPI - BAPI_SALESORDER_CREATEFROMDAT2
    Here is a simple example...
    import com.sap.mw.jco.*;
    public class Bapi1 extends Object{
      JCO.Client mConnection;
      JCO.Repository mRepository;
      public Bapi1(){
        try{
           mConnection = JCO.createClient(client,userid,password,
    lang,host,system no );
           mConnection.connect();
           mRepository = new JCO.Repository("MyRepos", mConnection);
        }catch(Exception ex){
           ex.printStackTrace();
           System.exit(1);
        JCO.Function function = null;
        JCO.Table codes = null;
        try{
          function = this.createFunction("BAPI_SALESORDER_CREATEFROMDAT2");
          if (function == null){
            System.out.println("BAPI_SALESORDER_CREATEFROMDAT2" + "not found in SAP");
            System.exit(1);
    //here you need to pass the paramters also.........
    //pass all the parameters needed for the creation of the sales order in JCO.Structure.
          mConnection.execute(function);
          JCO.Structure returnStructure = function.getExportParameterList().getStructure("RETURN");
          if (!(returnStructure.getString("TYPE").equals("")||
                returnStructure.getString("TYPE").equals("S"))){
            System.out.println(returnStructure.getString("MESSAGE"));
            System.exit(1);
        }catch(Exception ex){
          ex.printStackTrace();
          System.exit(1);
        mConnection.disconnect();
      public JCO.Function createFunction(String name) throws Exception{
        try{
          IFunctionTemplate ft = mRepository.getFunctionTemplate(name.toUpperCase());
          if (ft == null)
            return null;
            return ft.getFunction();
        }catch(Exception ex){
          throw new Exception("Probelm retrieving JCO.Fucntion object");
      public static void main(String agrs[]){
          Bapi1 app = new Bapi1();
    Hope you will find it useful
    Regards,
    Richa.

  • Salesorder Creation Using ALE

    Hi,
    I am a new to the ALE scenario.
    In the current project, whenever a Purchase Order is created, a coresspponding sales order is automatically generated using ALE. My questions are:
    1) Is an Idoc generated in this scenario to create the sales order?
    2) If yes, then from where can I get the message type, idoc type and the function module used, if the Idoc has already been archived.
    3) If the salesorder is created without an Idoc (in this ALE scenario) then how can I find out which program is being used to create the sales order.
    Any help would be greatly appreciated.
    Thanks in advance.
    Mick

    hi,
    http://****************/Tutorials/ALE/ALEMainPage.htm
    dis is the link where u can find d solution to ur problem,if u find it useful .
    regards,
    ric.s

  • Error while salesorder creation using bapi

    Hi  All
    while testing the bapi salesordercreatefromdat2 in se37 ,its working.
    but in reports i m passing same data with this bapi ,its not working.
    its showing error message like:sales document type OR is not defined.
    so where is the problem.

    Hi
    Check with the value of import parameter ORDER_HEADER_IN-DOC_TYPE you are passing to function module BAPI_SALESORDER_CREATEFROMDAT2.
    Regards
    Srilaxmi

  • Creation of Material using BDC Session method & global class

    Hi
    Creation of Material using BDC Session method & global class by using oops.
    can anyone plz help me out

    Hi,
    it looks like it's not possible to call this BAPI wihtout material number. Here is a quote from BAPI documentation.
    When creating material master data, you must transfer the material
    number, the material type, and the industry sector to the method. You
    must also enter a material description and its language.
    Cheers

  • TSW-Ticket Creation & Actualization using BDC

    Hi,
    I am using BDC for Ticket creation using transaction O4TEN.
    After execution of this BDC, Ticket get created and Saved but it does not actualize ticket even if we click actualize button using BDC.
    In real scenario, after ticket creation the status and substatus values should be "C"(Planned) and "6" (Complete) but in this case the status and substatus values are "B"(Checked) and "4"(Positive).
    If we create ticket directly using O4TEN then it actualizes ticket properly.
    I am not able to find out why BDC is not actualizing tickets.
    Any idea?
    Regards,
    Umesh

    Hi,
    I tried BDC for SAVE but still not getting Ticket Key.
    So now I am using FM: OIJ_EL_A_TICKETS_MAINTAIN_N.
    It creates ticket but in Ticket Item table Ticket item field is blank. Purpose is blank.
    Also OIJ_EL_TKT_I_O1 and OIJ_EL_TKT_I_O2 are not populated.
    In header I am passing: TICKET_PURPOSE, TICKET_TYPE, UPDKZ = 'I'
    and In item I am passing: NOMNR, NOMTK, NOMIT, MENGE, MEINS, TIME_ST_LOAD_STA, TIME_ST_LOAD_END, BUDAT UPDKZ = 'I'.
    am I missing something?
    Code is as follows:
    Replace BDC with function module: OIJ_EL_A_TICKETS_MAINTAIN_N
    1) Call FM: OIJ_EL_A_TICKETS_MAINTAIN_N
    2) Call FM: ENQUEUE_E_OIJTKT
    3) Call FM: OIJB_GENERATE_DOCUMENTS_N
    4) Call FM: DEQUEUE_E_OIJTKT
      DATA: ls_tkt_h            TYPE roij_el_ticket_hvb,
            ls_tkt_i            TYPE roij_el_ticket_i_io,
            ls_oijnomi          TYPE oijnomi,
            ls_roijnomiio       TYPE roijnomiio,
            ls_ticket_item      TYPE oij_el_ticket_i,
            ls_ticket_item_o1   TYPE oij_el_tkt_i_o1,
            ls_ticket_item_o2   TYPE oij_el_tkt_i_o2,
            ls_ticket_header_pv TYPE oij_el_ticket_h,
            ls_ticket_header    TYPE oij_el_ticket_h,
            ls_tkt_i_o1         TYPE oij_el_tkt_i_o1,
            ls_tkt_i_o2         TYPE oij_el_tkt_i_o2.
      DATA: lv_time             TYPE sy-uzeit.
      DATA: it_tkt_i            TYPE roij_el_ticket_i_io_t,
            it_tkt_h_evt        TYPE roijte_t,
            it_tkt_h_evt_txt    TYPE oij_txt,
            it_tkt_i_evt        TYPE roijte_t,
            it_tkt_i_evt_txt    TYPE oij_txt,
            it_tkt_i_o1         TYPE roij_el_tkt_i_o1_t,
            it_tkt_i_o2         TYPE roij_el_tkt_i_o2_t,
            it_tkt_err_log      TYPE oij_el_err_log_tt,
            it_tkt_doc_flow     TYPE roij_el_doc_flow_io_t,
            it_return           TYPE bapiret2_t,
            it_oijnomh          TYPE oijnomh_t,
            it_oijnomi          TYPE oijnomi_t,
            it_ticket_item      TYPE STANDARD TABLE OF oij_el_ticket_i,
            it_ticket_item_o1   TYPE STANDARD TABLE OF oij_el_tkt_i_o1,
            it_ticket_item_o2   TYPE STANDARD TABLE OF oij_el_tkt_i_o2.
      ls_tkt_h-ticket_purpose = '1'.
      ls_tkt_h-ticket_type = lv_ticket_type.
      IF lv_ticket_type EQ c_yp2.
      If Ticket type is YP2 then
        ls_tkt_h-yy_mct_cat = fp_mct_cat.
      ENDIF.
      ls_tkt_h-yy_pat_alc = lv_alloc_rule.
      ls_tkt_h-updkz = 'I'.
      ls_tkt_i-nomnr = fp_s_tc1-nomnr.
      ls_tkt_i-nomtk = fp_s_tc1-nomtk.
      ls_tkt_i-nomit = fp_s_tc1-nomit.
      ls_tkt_i-menge = lv_menge.
      ls_tkt_i-meins = fp_s_tc1-units.
      CLEAR ls_oijnomi.
      SELECT SINGLE * FROM oijnomi INTO ls_oijnomi
             WHERE nomtk = fp_s_tc1-nomtk
               AND nomit = fp_s_tc1-nomit.
      IF sy-subrc EQ 0.
        MOVE-CORRESPONDING ls_oijnomi TO ls_roijnomiio.
      ENDIF.
      PERFORM get_timestamp USING    fp_sdate
                                     lv_time
                                     ls_roijnomiio
                            CHANGING ls_tkt_i-time_st_load_sta.
      PERFORM get_timestamp USING    fp_edate
                                     lv_time
                                     ls_roijnomiio
                            CHANGING ls_tkt_i-time_st_load_end.
      CONCATENATE lv_budat(4) lv_budat5(2) lv_budat8(2) INTO ls_tkt_i-budat.
      ls_tkt_i-updkz = 'I'.
      APPEND ls_tkt_i TO it_tkt_i.
      CALL FUNCTION 'OIJ_EL_A_TICKETS_MAINTAIN_N'
        EXPORTING
          is_tkt_header           = ls_tkt_h
        IT_HEADER_EVT           =
        IT_HEADER_EVT_TXT       =
          it_items                = it_tkt_i
        IT_ITM_EVT              =
        IT_ITM_EVT_TXT          =
        IT_ITM_O1               =
        IT_ITM_O2               =
        IT_TKT_ERROR_LOG        =
          it_tkt_doc_flow         = it_tkt_doc_flow
          iv_commit               = 'X'
        IV_LOCK                 =
        IV_ADD_TO_LOG           =
        IV_CALL_TO_OUTPUT       =
        IMPORTING
          es_tkt_header           = ls_tkt_h
        ET_HEADER_EVT           = it_tkt_h_evt
        ET_HEADER_EVT_TXT       = it_tkt_h_evt_txt
          et_items                = it_tkt_i
        ET_ITM_EVT              = it_tkt_i_evt
        ET_ITM_EVT_TXT          = it_tkt_i_evt_txt
          et_itm_o1               = it_tkt_i_o1
          et_itm_o2               = it_tkt_i_o2
        ET_TKT_ERROR_LOG        = it_tkt_err_log
          et_tkt_doc_flow         = it_tkt_doc_flow
          et_return               = it_return
        EXCEPTIONS
          ticket_locked           = 1
          OTHERS                  = 2
      IF sy-subrc NE 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        COMMIT WORK AND WAIT.
    Lock the ticket
    There is no check neccessary if the ticket has already
    been locked by an other user because it has just been
    created.
        CALL FUNCTION 'ENQUEUE_E_OIJTKT'
          EXPORTING
            mode_oij_el_ticket_h = 'E'
            mandt                = sy-mandt
            ticket_key           = ls_tkt_h-ticket_key
            ticket_version       = ls_tkt_h-ticket_version
            ticket_purpose       = ls_tkt_h-ticket_purpose
          EXCEPTIONS
            foreign_lock         = 1
            system_failure       = 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.
      ENDIF.
      CALL FUNCTION 'OIJB_GET_NOMINATION_DATA'
        EXPORTING
        ACTIVITY                     =
          is_ticket_header             = ls_tkt_h
          is_ticket_item               = ls_tkt_i
        IV_ADD_TO_LOG                =
        CHANGING
          ct_oijnomh                   = it_oijnomh
          ct_oijnomi                   = it_oijnomi
        RETURN                       =
        EXCEPTIONS
          ticket_data_error            = 1
          no_nomination_selected       = 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.
      ls_ticket_header = ls_tkt_h.
      LOOP AT it_tkt_i  INTO ls_tkt_i.
        MOVE-CORRESPONDING ls_tkt_i TO ls_ticket_item.
        APPEND ls_ticket_item TO it_ticket_item.
      ENDLOOP.
      LOOP AT it_tkt_i_o1 INTO ls_tkt_i_o1.
        MOVE-CORRESPONDING ls_tkt_i_o1 TO ls_ticket_item_o1.
        APPEND ls_ticket_item_o1 TO it_ticket_item_o1.
      ENDLOOP.
      LOOP AT it_tkt_i_o2 INTO ls_tkt_i_o2.
        MOVE-CORRESPONDING ls_tkt_i_o2 TO ls_ticket_item_o2.
        APPEND ls_ticket_item_o2 TO it_ticket_item_o2.
      ENDLOOP.
      CALL FUNCTION 'OIJB_GENERATE_DOCUMENTS_N'
        EXPORTING
          i_ticket_header                = ls_ticket_header
          i_ticket_header_pv             = ls_ticket_header_pv
        I_CLOSE_SHIPMENT               = ' '
        TABLES
          t_ticket_item                  = it_ticket_item
          t_ticket_item_o1               = it_ticket_item_o1
          t_ticket_item_o2               = it_ticket_item_o2
        T_TICKET_ITEM_PV               =
        T_TICKET_ITEM_O1_PV            =
        T_TICKET_ITEM_O2_PV            =
          t_oijnomh                      = it_oijnomh
          t_oijnomi                      = it_oijnomi
        T_DOC_FLOW                     =
        T_ERR_LOG                      =
        T_REVERSAL_DOCS                =
        T_ORIGINAL_DOCS                =
        T_TICKET_SUBITEM               =
        EXCEPTIONS
          error_during_cip_process       = 1
          error_during_checks            = 2
          nomination_lock_error          = 3
          nomination_read_error          = 4
          cip_process_read_error         = 5
          OTHERS                         = 6
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        COMMIT WORK AND WAIT.
      ENDIF.

  • Creation of po with mutiple line items using BDC

    Hi Gurus,
          Can any body hav notes for creating po's using BDC with multiple line items in transaction ME21. I hav created po for single line item but if i tried to create multiple line items, it ll create multiple po's...
    thanks in advance
    arun

    See the Below Logic for me22 and it is also same for me21
    report zpochange.
    data : i_error like bdcmsgcoll occurs 0 with header line.
    data : i_bdcdata like bdcdata occurs 0 with header line.
    tables : ekko, ekpo.
    data :c1(10) value 'ME22',
          c2(1) value ',',c3(10).
    data : var1(20). " LIKE EKKO-EBELN.
    data : var2 like ekko-ebeln.
    data : begin of i_ekko occurs 0,
              header(2),
              ebeln like ekko-ebeln,
              end of i_ekko.
    data : begin of i_ekpo occurs 0,
    item(2),
            ebeln like ekpo-ebeln,
            ebelp like ekpo-ebelp,
            menge(10), " LIKE EKPO-MENGE,
           end of i_ekpo.
    data : v like ekpo-ebelp.
    data: begin of itab occurs 0,
             text(300),
            end of itab.
    parameters: p_file like ibipparms-path.
    *PARAMETERS: PONUMBER LIKE EKPO-EBELN.
    at selection-screen on value-request for p_file.
    call function 'F4_FILENAME'
      exporting
        program_name        = syst-cprog
        dynpro_number       = syst-dynnr
       FIELD_NAME          = ' '
      importing
        file_name           = p_file
    start-of-selection.
    *SELECT EBELN FROM EKKO INTO TABLE I_EKKO WHERE EBELN = PONUMBER.
          SELECT EBELN EBELP MENGE FROM EKPO INTO TABLE I_EKPO WHERE EBELN
    *= PONUMBER.
    perform get_data.
    *LOOP AT ITAB.
    WRITE :/ ITAB.
    ENDLOOP.
    loop at itab.
    var1 = itab-text+0(1).
    if var1 = 'H'.
    *I_EKKO-EBELN = ITAB-TEXT.
    split itab at c2 into i_ekko-header
                           i_ekko-ebeln.
    SPLIT  ITAB AT ',' INTO I_EKKO-EBELN.
                        " I_EKPO-EBELP
                        " I_EKPO-MENGE
                        " var1.
    append i_ekko.
    else.
    split itab at c2 into i_ekpo-item
                            i_ekpo-ebeln
                            i_ekpo-ebelp
                            i_ekpo-menge.
    append i_ekpo.
    endif.
    *var2 = i_ekpo-ebeln.
      MOVE VAR1 TO I_EKPO-EBELN.
      MOVE VAR1 TO I_EKKO-EBELN.
    APPEND: I_EKPO.
    *if not var1 is initial.
        split var1 at ',' into i_ekpo-ebelp
                               i_ekpo-menge.
      i_ekpo-ebeln = var2.
    append i_ekpo.
    *endif.
    endloop.
    loop at i_ekpo.
    write :/ i_ekpo.
    endloop.
    loop at i_ekko.
    perform fill_data. " TABLES I_EKPO.
    endloop.
    LOOP AT I_EKPO.
    WRITE :/ I_EKPO.
    ENDLOOP.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    *LOOP AT I_ERROR.
    WRITE :/ I_ERROR.
    ENDLOOP.
    form get_data.
    call function 'WS_UPLOAD'
    exporting
       codepage                      = ' '
       filename                      = p_file
       filetype                      = 'ASC'
       headlen                       = ' '
       line_exit                     = ' '
       trunclen                      = ' '
       user_form                     = ' '
       user_prog                     = ' '
       dat_d_format                  = ' '
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = itab
    exceptions
       conversion_error              = 1
       file_open_error               = 2
       file_read_error               = 3
       invalid_type                  = 4
       no_batch                      = 5
       unknown_error                 = 6
       invalid_table_width           = 7
       gui_refuse_filetransfer       = 8
       customer_error                = 9
       others                        = 10
    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.                    " GET_DATA
    *&      Form  FILL_DATA
          text
         -->P_I_EKPO  text
    form fill_data. " tables   i_ekpo .
    perform bdcscreen using 'SAPMM06E' '0105'.
    perform bdcfield using 'RM06E-BSTNR' i_ekko-ebeln.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    loop at i_ekpo where ebeln = i_ekko-ebeln.
      V = I_EKPO-EBELP.
    perform bdcscreen using 'SAPMM06E' 0120.
    perform bdcfield using 'BDC_CURSOR' 'RM06E-EBELP'.
    perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    perform bdcscreen using 'SAPMM06E' 0120.
    perform bdcfield using 'BDC_CURSOR' 'EKPO-MENGE(01)'.
    perform bdcfield using 'RM06E-EBELP' i_ekpo-ebelp.
    perform bdcfield using 'EKPO-MENGE(01)' i_ekpo-menge.
    perform bdcfield using 'BDC_OKCODE' '/00'.
    *PERFORM BDCSCREEN USING 'SAPMM06E' 0120.
    *PERFORM BDCFIELD USING 'BDC_CURSOR'  'RMO6E-EBELP'.
    *CLEAR V.
    endloop.
    perform bdcfield using 'BDC_OKCODE' '=BU'.
    call transaction  c1 using i_bdcdata mode 'A'
                                       messages into i_error.
    refresh i_bdcdata.
    endform.                    " FILL_DATA
    *&      Form  BDCSCREEN
          text
         -->P_0140   text
         -->P_0120   text
    form bdcscreen using    p_program p_screen.
    i_bdcdata-program = p_program.
    i_bdcdata-dynpro = p_screen.
    i_bdcdata-dynbegin = 'X'.
    append i_bdcdata.
    clear i_bdcdata.
    endform.                    " BDCSCREEN
    *&      Form  BDCFIELD
          text
         -->P_0145   text
         -->P_I_EKPO_EBELN  text
    form bdcfield using    fnam fval.
    i_bdcdata-fnam = fnam.
    i_bdcdata-fval = fval.
    append i_bdcdata.
    clear i_bdcdata.
    endform.                    " BDCFIELD
    Reward Points if it is helpful
    Thanks
    Seshu

  • Creation of PO using BDC with ME21N - Urgent

    Hi All,
    My requirement is to create a Purchase Order using BDC. I'm using ME21N for BDC. I did recording and using that recording I wrote a program for BDC. BDC table is populated correctly, but while calling ME21N using call transaction, program is cuming back to the selection screen, without creating PO. And sy-subrc value after call transaction is '0'. Please let me know the problem.
    Thanks in Advance.
    Siva Sankar.

    Hi,
    Put a break point after the call transaction statement(i.e, put break point on sy-subrc check)
    and then check the message table.
    if call transaction is suceessfull u will find a success messages in the I_messages table.
    Regards,
    Sriram

  • Profile Creation in BW using BDC

    Hi,
    Is it possible to create profiles in BW using BDC's?
    Thanks,
    Suja

    Thanks a lot.
    Have you tried this?
    I did everything that is mentioned in the document. I can also see the profile generated successfully. But when I run the report is doesnt apply the necessary restriction.
    I created a cube which has material,customer,invoice,date and 2 measures.I restricted Material to a single value as explained in the document.In Su01 it shows the correct values.But the query still runs for all the material values. I have omitted the heirarchy part of this document.Would that be the reason?
    Any input on this would be veryh helpful. Thanks again.
    Suja

  • Creating Sales order texts while using BDC session method is not working

    Hi All,
    I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
    I wanted to modify this BDC sesion  to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
    Please suggest if there is any way to create sales order using BDC.
    Regards
    Sheeba

    Hi Madhu,
    '=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
    Part of BDC program generated for cretaing sales order texts.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=%_GC 128 22'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TP_CREATE'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4003'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EBACK'.
    perform bdc_field       using 'LV70T-SPRAS'
                                  'EN'.
    perform bdc_dynpro      using 'SAPMV45A' '4001'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    Regards,
    Sheeba

  • Vendor creation using bapi

    Hi experts,
    I am new to bapi concept I done vendor creation by using bdc and lsmw and now I want to create by using bapi can anyone send program code for creating so that I can go through it.
    thanks in advance,
    points will be rewarded,
    Srinivas.D

    hi
    I gone to the bapi function module for bapi_vendor_create etc but the problem their is no input parameters or tables so I am little bit of confused if any body has the code plz send me.
    Regards,
    SrinivasD

Maybe you are looking for

  • "An Unknown Error Has Occurred"

    This is the pop up message I get when I am trying to publish two new photo pages with several jpegs to my iweb website. Can anyone give me any hints? I tried several times with no luck. I've never seen that error message before - no code or numbers,

  • Default operation on CUCM V9.1.2 after migration ESXi5.1

    Hello Following migration of CUCM and Unity Connection V8.5 to V9.1.2 we meet a very important problem of slowdown on the CUCM Publisher Web interface. The servers used UCS C210 M1 are with ESXi 5.1 The slowdown makes it virtually unusable administra

  • Chimes, no video, no boot when video card installed.  Cause?

    Dual G5 2.0 (late '04?) Used for 5 years, then system started suddenly powering off. Eventually wouldn't boot. Tried swapping out ATI X800XT vid card for a 9600 (both AGP) & it worked again for a couple days, then wouldn't boot again. Put it aside fo

  • 2008 IMac screen problems

    need some advice here please .. i have a imac 24"Intel Core 2 Duo 3.06 GHz bought in aug 2008 , now i am starting to see what i think are "dust fans " on the display and they are really annoying i have researched and took the outer screen off to clea

  • Is there a command to sync the end of a region to the playhead or the end of another region?

    Is there a command to sync the end of a region to the playhead or the end of another region?