Uploading BOM Item Text

Hi Friends,
I have to upload the Long text for BOM Items. How can I do that? Are there any Function Modules to update the BOM Item Text? BDC involves a very complex coding.
Please provide me the solution.
Thanx in advance.
Ram

Hi Ram,
Please check whether the link given below is useful,
BAPI_BOM_UPLOAD_SAVE
Regards,
Hema.
Reward points if it is useful.

Similar Messages

  • BOM Item Text/Long Text

    Hi Gurus,
    I want to change a BOM and update/create the BOM Item text/Long text. I just want to change the BOM and create an item text (If the text is more than 80 chars, then I should be able to create a long text).
    I tried using FMs SAVE_TEXT and CREATE_TEXT without much luck. Could someone throw some light on how to achieve this.
    R

    Thanks Sudheer. Yes, I'm passing the correct parameters. Please see below.
            CONCATENATE sy-mandt ls_stpo-stlty ls_stpo-stlnr
                                     ls_stpo-stlkn ls_stpo-stpoz
              INTO lf_tdname.
              CALL FUNCTION 'CREATE_TEXT'
                EXPORTING
                  fid       = 'MPO'
                  flanguage = sy-langu
                  fname     = lf_tdname
                  fobject   = 'BOM'
                TABLES
                  flines    = lt_lines
                EXCEPTIONS
                  no_init   = 1
                  no_save   = 2
                  OTHERS    = 3.
    The thing is that it should save the text in Line1 and line 2 of the item text if the length is less than 80. I assume that the TEXT Fms will do it for me. Please correct me if I'm wrong.
    I have also tried a direct database update by changing the stpo-ltxsp field. No luck again. Did someone has updated/created the text using this method ?

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • BOM Item Text

    In cs02 transaction i am tring to save long text into the field <b>item text</b> and . i am Using Standard LSMW for Uploading long text     /SAPDMC/SAP_LSMW_IMPORT_TEXTS.
    Pls help me to find  <b>Name</b> in the Long text - header (TDOBNAME).
    Its Ugrent ....
    Thanks in advace.
    Manoj

    Hi Manoj,
                     Select the Item and click to Goto-Item you will reach the Item details
    Then cleck Long text tab and you will get an editor for long text .
    Then From Menu Goto-Header you will get the data what is want to fill the long text .
    Text Name       PO
    Language        EN
    Text ID           MPO
    Text object     BOM
    Please reward if useful.

  • Line item text in BOM

    Hi ,
    I am trying to upload the BOM from the excel and also i am trying to change the BOM based on the data in the Excel.
    During this process , i have to check the line item text for each component of the BOM to see wheather there is any changes in the line item text is there or not.
    Is there any way to pull out the line item text for the BOM ..Not only the m Line item text 1 and Line item text 2 , but also the Long text...
    TCode for display of BOM : CS03.
    Thanks..

    We can use the function module READ_TEXT ,
    in the import parameters ,
    id : MPO
    object : BOM
    language : EN
    text name :  it is the concatenation of
                      sy-mandt
                      stpo-stlty   "bom type
                      stpo-stlnr   "Bom number
                      stpo-stlkn  "Item Node
                      stpo-stpoz  "Item Counter
    Text name should be in the same order like this.
    Now pass these values to the READ_TEXT Function module
    the output will be in the form of an internal table. the internal table line will have the long text for that particular line item...

  • Upload item text for FI document using BAPI_ACC_DOCUMENT_POST

    Hi,
    I need to upload FI document posting using BAPI_ACC_DOCUMENT_POST.  However item text that I received is too long and need to store at item long text.  So can we use BAPI_ACC_DOCUMENT_POST to upload long text for item text? If this possible, may I know how to do this.
    Thanks.
    Regards,
    ain

    Hi,
    You cannot pass item long text using this BAPI,  Call the function module SAVE_TEXT after successfull call of BAPI
    Call Save_Text with following parameters.
    Text_ID : 0001 (Notes)
    Text_object : DOC_ITEM (Line Item Text)
    Language : EN
    Text Name : Company code +Document NO + Fiscal Year + Line item ID
    Regards
    Vinod

  • How to Populate long text(item text)  from BOM CS01 to CJ20N transaction

    I have requiremnt  in which i need to Populate long text/item text  of  BOM  from CS01 to CJ20N transaction(PS network)

    Hi Naveen,
    for anylong text related work use the functions READ_TEXT and SAVE_TEXT.
    read the long text of the BOM item using the proper header and then populate the same text lines to the PS network using the new header specific to the PS network.
    Prabhas.

  • How to upload the Header and Item texts

    Hi ,
    I need to upload the Header and Item texts , what is the process to upload.................................
    Regards,
    Raghunath.S

    hi,
    see the sample code.
    report ZVENDOR_BANK
           no standard page heading line-size 255.
    *-----tables declaration
    tables:lfa1,lfbk,t100.
    *-----data declaration
    data:begin of it_dummy occurs 0,
           dummy(100) type c,
         end of it_dummy.
    data:begin of it_lfa1 occurs 0,
           lifnr like lfa1-lifnr,
           ktokk like lfa1-lifnr,
           name1 like lfa1-name1,
           sortl like lfa1-sortl,
           land1 like lfa1-land1,
         end of it_lfa1,
         begin of it_lfbk occurs 0,
           lifnr like lfbk-lifnr,
           banks like lfbk-banks,
           bankl like lfbk-bankl,
           bankn like lfbk-bankn,
           koinh like lfbk-koinh,
         end of it_lfbk.
    data:bdcdata like bdcdata occurs 0 with header line.
    start-of-selection.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
      FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                      = it_dummy
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17.
      loop at it_dummy.
        if it_dummy-dummy+0(1) = 'H'.
          it_lfa1-lifnr = it_dummy-dummy+1(4).
          it_lfa1-ktokk = it_dummy-dummy+5(4).
          it_lfa1-name1 = it_dummy-dummy+9(7).
          it_lfa1-sortl = it_dummy-dummy+16(2).
          it_lfa1-land1 = it_dummy-dummy+18(2).
          append it_lfa1.
        else.
          it_lfbk-lifnr = it_dummy-dummy+1(4).
          it_lfbk-banks = it_dummy-dummy+5(2).
          it_lfbk-bankl = it_dummy-dummy+7(8).
          it_lfbk-bankn = it_dummy-dummy+15(8).
          it_lfbk-koinh = it_dummy-dummy+23(4).
          append it_lfbk.
        endif.
      endloop.
      loop at it_lfa1.
        refresh bdcdata.
        perform bdc_dynpro      using 'SAPMF02K' '0100'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'RF02K-LIFNR'
                                      it_lfa1-lifnr.
        perform bdc_field       using 'RF02K-KTOKK'
                                      it_lfa1-ktokk.
        perform bdc_dynpro      using 'SAPMF02K' '0110'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'LFA1-NAME1'
                                      it_lfa1-name1.
        perform bdc_field       using 'LFA1-SORTL'
                                      it_lfa1-sortl.
        perform bdc_field       using 'LFA1-LAND1'
                                      it_lfa1-land1.
        perform bdc_dynpro      using 'SAPMF02K' '0120'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-KOINH(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        data:FNAM(20) TYPE C,
             IDX TYPE C.
        move 1 to idx.
        LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
          CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-banks.
          CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankl.
          CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankn.
          CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-koinh.
          IDX = IDX + 1.
        endloop.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        perform bdc_dynpro      using 'SAPLSPO1' '0300'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=YES'.
        call transaction 'XK01' using bdcdata mode 'A'.
      endloop.
           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

  • Upload BOM - validity dates items

    Hi All,
    we want to upload BOMS with historical data in it. So I need to 'upload' the validity dates, but I'm not sure on how to do this...
    Is there someone who can point me in the right direction ?
    thanks in advance !
    kr,
    Björn

    Hi
    U follow BDC method ..Its very easy to upload the data with out any problem according to ur flat file.
    In BDC u use recording with call transaction method.
    Regards:
    Prabu

  • Sale order item text through BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    We are creating a sale order through a 'Zprogram'. Uploading the required details from a excel sheet and  passing to a BAPI_SALESORDER_CREATEFROMDAT2.
    We are using the 'order_text' parameter to create the item text. If there are multiple lines in the same item text likes this
    (we are passing it in a single line)
    Order type ORDER_ID   PO number u2026u2026 Item Note - Zi01
    STD                   2                   10                Currency - RS
                                                                       Test order -1
                                                                       Test item - 2                                                                               
    It is creating the sale order with the item text  and the item text when viewed normally its appears one below one. But if we click the 'detail' button and view it through the editor mode it is appearing in the same line with # characters in between.
    TAX_CURRENCY = Rupees #TAX_UNIT_PRICE =0.0000# Test order = 1
    It is replacing the enter statement with '#.' We can split the text where # appears and pass it as a separate line .but this will create a problem when the data itself contains a  # character.
    Please advise how we can avoid this and can create the sale order item text correctly.
    Regards,
    Charumathi Balachandran

    As you said, How are creating single line text from the multi line text.
    I hope you are using a CONTACTENATE statemetn to do so. Please the SEPARATOR being used for this.
    I hope you have copied texts from excel sheet to SE38 editor. Please copy text from Excel to Notepad, then Notepad to SE38.
    Edited by: Priyanka Chowdry on Dec 20, 2010 11:21 AM

  • Problem in uploading Bom through Bapi

    Hi
    i am uploading Bom data useing CSAP_MAT_BOM_CREATE bapi.
    the header data through bapi is going fine but
    i am not able to upload 2 line item...
    i  think i need to pass OBJECT_ID  & IDENTIFIER though CSDEP_DAT ,CSDEP_DESC,CSDEP_SORC Structure.
    can any body tell me from where i can get OBJECT_ID  & IDENTIFIER  ..as there no such fields in my file.
    Regards
    ABG.

    Just a little word about "Bapi" : this FM is not a BAPI (it's a special kind of API, only BAPI* FMs are/can be BAPIs). CSAP_MAT_BOM_CREATE is just an API (SAP says you can use this FM).
    Did you read the 100 threads about this FM, here are some of the threads for example:
    1) did you read the example in the function module documentation? YOUR QUESTION IS ANSWERED IN THAT DOC
    2) why don't you use BAPI_MATERIAL_BOM_GROUP_CREATE?
    3) read other threads

  • To change the Purchase order header and line item text

    Hi everybody,
    I need to upload the PO Header and item text for the combinaion of PO and a material.
    Please help???

    Hi,
    Try this beloe code
          Length of the PO item text
          If the length > 132 Chars
      BAPI Function module for changing PO item Text
      commiting the bapi change
    SORT t_bapi BY ebeln ebelp.
      LOOP AT t_ebeln INTO wa_ebeln.
        LOOP AT t_bapi INTO wa_bapi WHERE ebeln = wa_ebeln-ebeln.
          REFRESH t_return.
          READ TABLE t_input INTO wa_input
            WITH KEY ref_num = wa_bapi-ref_num
                     item = wa_bapi-ebelp.
          IF sy-subrc EQ 0.
            APPEND wa_input TO t_output.
            w_len = STRLEN( wa_input-text ).
            wa_potextitem-po_number = wa_bapi-ebeln.
            wa_potextitem-po_item = wa_bapi-ebelp.
            wa_potextitem-text_id = 'F01'.
            wa_potextitem-text_form = '*'.
            wa_potextitem-text_line = wa_input-text+0(132).
            APPEND wa_potextitem TO t_potextitem.
            IF w_len > 132.
              wa_potextitem-po_number = wa_bapi-ebeln.
              wa_potextitem-po_item = wa_bapi-ebelp.
              wa_potextitem-text_id = 'F01'.
              wa_potextitem-text_form = '='.
              wa_potextitem-text_line = wa_input-text+132(123).
              APPEND wa_potextitem TO t_potextitem.
            ENDIF.
          ENDIF.
        ENDLOOP.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_bapi-ebeln
          TABLES
            return        = t_return
            potextitem    = t_potextitem.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   = ' '
          IMPORTING
            return = wa_bapiret2.
    Regards
    Krishna

  • Problem in Uploading sales order text data using LSMW

    Hi All,
    I am facing Problem in uploading open sales order data from legacy to SAP using LSMW.
    We are trying to upload sales order data using LSMW Standard Batch/Direct input using program name RVINVB10 and program type D. We are not able to upload item text but have no problem in uploading remaining data.
    the details we are passing to BTEXHKOM structure are......
    BTEXHKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXHKOM-LAISO = 'EN'.
    BTEXHKOM-TDID = 'Z009'.
    and the for structure BTEXLKOM
    BTEXLKOM-OLDNR = IHEADER-OLDORD_NO.
    BTEXLKOM-TXPARGRAPH = '/'.
    CONCATENATE LITEM-DEPTID LITEM-DEPTNAME
    INTO BTEXLKOM-TXLINE SEPARATED BY ' '.
    we have three input source structures.
    IHEADER Header structure
    LITEM Line item structure ( Material data )
    IPARTN Partners structure
    The structure relationships are
    BTEXHKOM <<< IHEADER.
    BTEXLKOM <<< IHEADER.
    Please let me know if I am doing some thing wrong or some thing else need to be done.
    Thanks,
    Chindam.

    you can pass below values also
    OLDNR         :  order number and item nuber
    TXPARGRAPH  : VBBK
    TXLINE        : your text.....

  • How to upload Purchase oder text through BDC. or BAPI

    Hi...
       I wish to know how to upload purchase oder text wich is in MM01 t-code and has a screen number 4040 and program name SAPLMGMM, i want to migrate a material master data to another client by this fields, Basic, Purchasing, Purchase oder text ( long text), general plant date/storage1 and accounting. for that i am suspicious about uploading a purchase oder text with bdc...if i am true how i can have this by bapi or another means...please help me
    ...thaking you....

    Hi,
    Use FM - BAPI_PO_CREATE1
    It will fetch both HEADER and ITEM text.
    This module is used to create a PO and as u r involved in a data migration, I can suggest to use this one.
    Hope It'll help.
    Thanks & Regards,
    Ankur

  • URGENT HELP *** Need to load BOM Header TEXT

    Hello Experts,
    How can i load BOM Header text using LSMW
    Thanks
    S

    Two ways to upload:
    1. Via FM: SAVE_TEXT
    2. Create a recording to add text for BOM Header and Use accordingly.
    Regards
    Eswar

Maybe you are looking for