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

Similar Messages

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

  • How to maintain inspection type at the time of material creation using LSMW

    Hi All,
    I have a differnet Issue.
    I am using a std. LSMW to create the materials.
    But now using same LSMW i have to maintain Inspection types(ART-RMQAM) for the materials to be created.
    How this can be done.
    This filed is not found in any structures like BGR....to  BMMH8
    Can I create such a structure ??
    Amol

    Some need the hard answer: it is not possible in one go.
    It is an embedded functionality in material master like classification, but it is not stored in a material master table.

  • Material creation using IDOC

    Hi All
    We are trying to create a Material with just a Basic View using FM : IDOC_INPUT_MATMAS01, but we are unable to do the same since it returns errors about fields to be filled for other Material master views
    like Plant , Sales Organisation etc
    Has any one succesfully created a material using this FM
    Please let us know ,
    Thanks in advance

    Hi Sanjay,
    These are the related programs related to your question.
    RBDARTS2 Posting of retail materials to your own system via IDocs
    RBDARTST Reimport IDoc Directly to Inbound Processing of Retail Material Master
    RBDFEART Get retail material
    RBDFEMAT Get Material
    RBDMATS2 Post Materials via IDocs to Your Own System
    RBDMATST Reimport IDoc Directly to Inbound Processing for the Material Master
    RBDSEART Send retail material
    RBDSEART_DXWB Send Material (Data Transfer Workbench)
    RBDSEBOM Material BOM Distribution
    RBDSECNP Distribution of Configuration Profiles for Materials
    RBDSEMAT Send Material
    RBDSEPAM Plant allocations to material BOMs distribution
    RBDSESTT Distribution of material variants
    RBDSEWG1 Direct transfer of base material groups
    RBDSEWGR Direct Transfer of Material Group Hierarchies
    You can use this standard program to generate IDoc(s) for material master.
    RBDSEMAT
    RCCLMAT
    You can check the EDIDC (data control) of an IDoc (WE02) to ensure correct and match with your partner profile (WE20).
    Reward points if helpful.
    Regards,
    Harini.S

  • Material Creation using Workflow

    This is my scenario .
    Initially when a new Material created it will have only the Basic 1 & 2 views alone .
    At the same time a workflow have to be triggered such that it have to send to a workitem to person who should define the MRP views only not other views of the material after it is finished another workitem to another person to define the account assignment views only not other views .Kindly help to proceed.
    - David Boon.

    Hi Martina,
    If you have done that then you are almost on the verge of completion!
    Follow this binding procedure between the task container and the method container and get the results.
    In the BO method, add an output parameter that would store the plant detail.
    Now create a data element in the method code of the same type as plant detail type.
    Then use swc_set_element to store the value of the plant detail in the output parameter.
    In the workflow task, create an output parameter of the same type as the BO method output parameter.
    In the binding between the task container and the method container fetch the value of plant details from method container to task container element.
    Now pass this parameter to the workflow container and use in the send mail step in the mail text.
    Make sure to save and generate the BO after doing all the changes.
    Regards,
    Saumya

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

  • Material Master Creation Using BAPI

    Hi,
    I m using BAPI_MATERIAL_SAVEDATA for Material creation using BAPI.
    Now the problem is , i have created a Screen exit long back in Purchasing view.. the corresponding Z field is created in table MARC..
    How can i pass value to this Z field using BAPI.
    i tried with BAPI_MARC.. my Z field is not coming in that structure.
    Can anyone guide me how can this be achieved.
    Thanks in Advance
    Aravindh Mani

    Hi,
    The Function Module BAPI_MATERIAL_SAVEDATA has the options to pass the Z fields. There exits a structure parameters
    EXTENSIONIN
    EXTENSIONINX
    in BPAI. In EXTENSIONIN pass the data and value part you can pass  in EXTENSIONINX. So this will update the Z fileds in material
    master .

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

  • Problem in uploading material master data using BDC?

    Hi all,
    I am using  BDC call transaction method to upload material data. Here i am facing a problem that a value in the flat file is going to the wrong screen field . But my recording done properly.
    In recording, after entering the data in the view BASIC DATA1 and trying to enter the text . For this i need to scroll down the scroll bar and after that i am clicking on basic data text and entering the text. Here i am not touching the languge field.
    But the problem is the text to be entered into the basic data text is storing in language and giving error.
    Please help me by specifying the reason and solution for this problem? Whether i did any mistake in recording in scrolling?
    Thanks,
    Vamshi.

    Hi
    Go with BAPI for such huge transactions and screens. Use BAPI: BAPI_MATERIAL_SAVEDATA.
    Regards,
    Vishwa.

  • Hi regarding material master and vendor master (mm01,xk01) upload using BDC

    hi can any one tell me how to upload material maste and vendor master using BDC.
    will the views capture by shdb when i use recording.

    Hey i suggest you to go to LSMW direct input program method. That's the best option.
    Material Master:
    Object               0020   Material master
    Method               0000
    Program Name         RMDATIND
    Program Type         D   Direct Input
    Vendor Master:
    Object               0040   Vendor master
    Method               0001   Standard
    Program Name         RFBIKR00
    Program Type         B   Batch Input

  • How to upload material text  in mm02 using bdc table control

    i have problem to upload material Description in mm02 using bdc.
    my text file is like
    2000251     AF     A12345               
    2000251     AR     B12345               
    2000251     BG     C12345               
    2000252     AF     F12345               
    2000252     AR     G12345               
    2000252     AF     H12345     
    i want to upload material number, language, and material description, how can i upload pls help me.

    Hi,
    Try with bapi , bapi_material_save_data.. didn't exactly remember it,Please check the same.
    Regards,
    Nagaraj

  • To change the classification data for a material using BDC

    I have to update clssification data for material in MM02 using BDC so when i record the transaction MM02 using SHDB i am not able to see the value assignment window which i a able to see when i am changing using MM02 transaction directly. So can anyone have an idea regarding this ?
         I have even tried updating classification data using a BAPI BAPI_OBJCL_CHANGE but i am not getting desired results....can anyone suggest me what are the parameters need to be passed to the BAPI. Thanks in advance for your help....

    Hi Nagarjuna,
                       <b>BAPI_OBJCL_CHANGE</b>  :  This BAPI changes an existing classification, or creates the classification if it does not yet exist. The classification is defined by the required entry fields for the object key (ObjectKey), object table (ObjectTable), class name (AllocDetail-Class_Num), and class type (AllocDetail-Class_Type). The default value for the optional date field (KeyDate) is the system date, on which all classifications become valid. The new characteristics and/or values are transferred to different tables according to data type. Numeric, time, and date characteristics are transferred to table AllocValuesNumNew, character and boolean characteristics are transferred to table AllocValuesCharNew, and currency characteristics are transferred to AllocValuesCurrNew.
    The object key (OBJECTKEY) must be transferred in internal format. This means before conversion exits. For example, a material number must be transferred with leading zeros.
    If the BAPI runs without errors, table Return contains no messages of type "E".
    Assignment created:  message CL735
    Assignment changed:  message CL737
    Assignment not changed:  message CL738
    This BAPI only changes the parameters of an existing assignment (or creates a whole new assignment), but it does not delete the assignment to a class and replace it with an assignment to another class. If you want to reassign an object, the old assignments must be read with BAPI_OBJCL_GETCLASSES and deleted with BAPI_OBJCL_DELETE, then the new assignments must be created with BAPI_OBJCL_CREATE.
    The information transferred by this BAPI replaces all old information. An empty field means "delete entry!", not "no change".
    This BAPI does not change the database. To change the database, call BAPI BapiService.TransactionCommit afterwards.
    You can only use this BAPI for objects that are not classes!
    This BAPI only processes assigned values for classification - not for configuration.
    Reward points if helpful.
    Regards,
    Hemant

Maybe you are looking for