Problem while Creating BOM using LSMW Direct Input

Hi  all ,
I am trying to create the BOM Using LSMW Direct Input Method .
I am getting problem at step 9 that is Read Data.
It is able to read the values from header and item files .
but it is not able to write , so the Written is 0 always .
I put the field names first in the flat file and correcponding values below it with tab delimited.
Please let me know where the Problem would be.... I am trying this from long time ..
Regards ,
Raj

hi ,
Yes i am specify files i am attaching 2 files .
ones is header and the other is line item data .
my strucure is :
Hi ,
I am still getting problem while for writing the records after reading the data .....
my header structure :
STYPE
MATNR
WERKS
SELAL
STLAN
DATUV
ZTEXT
my item structure :
STYPE
MATNR
WERKS
SELAL
POSTP
MENGE
my header data :
STYPE     MATNR     WERKS     SELAL     STLAN     DATUV     ZTEXT
1     388     0110     20     1     06.01.2009     SAMPLE ZTEXT     
my item data :
STYPE     MATNR1     WERKS     SELAL     POSTP     MENGE
1     388     0110     20     N     1234
1     382     0110     20     N     12345
Above text files are delimited by tabulator.
Please guide me . The files are reading but unable to write .....
Regards,
Raj

Similar Messages

  • Problem while writing the data (LSMW direct input method for Creating BOM )

    Hi all ,
    I am unable to create a BOM using LSMW standard dirrect input mehtod .
    While i going through the *Read data *  step , it is reading the data but unable to write the data .
    My input text files are correct , Is it a problem with respect to the Logical Path or Logical File ......
    Please let me know the Possibilities of arising this problem .
    Regards,
    Raj

    Hi,
      Check this document:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90d90895-68dd-2a10-f096-bf8cf2e2f65b
    cheers
    Aveek

  • Create Inspection Plan -LSMW -Direct Input -Error with Control Indicators

    Hi,
    I am creating Inspection Plans using LSMW-DIRECT INPUT Method.
    Although MIC's control indicator parameters are correct while creating a plan it is changing the control indicator parameters.
    how can we suppress this?
    I want to use MIC's default parameters.
    Regards
    Praveen

    have Lost Previous File
    what does that mean? did they lose the source that should be used to load the data from?
    without source you cannot load data.
    Had you ever got this source file? how? by mail, then check your old mails and take it from there, ask the sender to he/she checks the SENT folder in his mail system. Maybe someone has a local copy of this fille.

  • Upload sales text for material master using LSMW direct input method

    Hello Experts,
    I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR           LONGTEXT                                                     LINE       
    MATERIAL1    LONGTEXT FOR MATERIAL MATERIAL1       1
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT            Source structure for long text
    Step 3-> Maintain souce file
    Source Fields
    ZLONG_TEXT             Source structure for long text
                           MATNR                         C(018)    MATNR
                           LTEXT                          C(132)    LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations
    /SAPDMC/LTXTH Long Texts: Header                                           <<<< ZLONG_TEXT Source structure for long text
                  Select Target Structure /SAPDMC/LTXTH .
    /SAPDMC/LTXTL Long Texts: Row                                              <<<< ZLONG_TEXT Source structure for long text
                 Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH                  Long Texts: Header
    Fields
       OBJECT                Texts: Application Object
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-OBJECT = 'MVKE'.
       NAME                  Name
                                    Source:  ZLONG_TEXT-MATNR (MATNR)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
       ID                         Text ID
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-ID = '0001'.
       SPRAS                 Language Key
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL                  Long Texts: Row
      Fields
        TEXTFORMAT     Tag column
                                    Rule :   Constant
                                    Code:    /SAPDMC/LTXTL-TEXTFORMAT = '/'.
        TEXTLINE             Text Line
                                    Source:  ZLONG_TEXT-LTEXT (LTEXT)
                                    Rule :   Transfer (MOVE)
                                    Code:    /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file
    Legacy Data          On the PC (Frontend)
                 Data                           D:\Sales_Longtext.txt
    Step7 -> Assign File
    ZLONG_TEXT Source structure for long text
                  Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure             Read      Written        Not Written
    ZLONG_TEXT              1                1              0
    Transactions Read:            1
    Records Read:                   1
    Transactions Written:         1
    Records Written:                 1
    Step 8 -> Display read data
    Field Name                    Field Text Field Value
    MATNR                          MATNR      MATERIA1
    LTEXT                            LTEXT      SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read:          ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written:       ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:                 1
    Records Read:                        1
    Transactions Written:              1
    Records Written:                     2
    Step 10 -> Display converted data
    1 /SAPDMC/LTXTH                   1MVKE      MATERIAL1                                                                   0001E
    2 /SAPDMC/LTXTL                   2/ SALES TEXT FOR Material MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench
    Project:                              ZNRD_PRJ1       ORH
    Subproject:                        ZNRD_SUBPRJ2    Upload long text
    Object:                               ZNRD_LTEXT      Long text tru direct input
    File :                                   ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                 0
    Now when i check the material master sales view -> sales text it is empty.
    Please help me with the same.
    Regards,
    Ranjith N

    Hello Experts, I was trying to upload sales text for a material master using LSMW direct input method.
    I followed the following steps for the same
    Tab dlimited Text file format
    MATNR             LONGTEXT                                              LINE
    MATERIAL1     LONGTEXT FOR MATERIAL MATERIAL1 1 *************************************************************************************************************
    Step1 -> Maintain object attributes
    Object -> 0001
    Method-> 0001
    Program name -> /SAPDMC/SAP_LSMW_IMPORT_TEXTS
    Program type -> D
    Step2 -> Maintain Source Structure
    Source structure -> LONG_TEXT Source structure for long text
    Step 3-> Maintain souce file Source Fields
    ZLONG_TEXT Source structure for long text
    MATNR C(018) MATNR
    LTEXT C(132) LTEXT
    Step 4-> Maintain structure relationship
    Structure Relations 
    /SAPDMC/LTXTH Long Texts:  Header <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure
    /SAPDMC/LTXTH . /SAPDMC/LTXTL Long Texts: Row <<<< ZLONG_TEXT Source structure for long text
    Select Target Structure /SAPDMC/LTXTL .
    Step 5-> Maintain Field mapping and conversion rules
    Here i have assigned constan rules to couple of them like
    /SAPDMC/LTXTH Long Texts: Header
    Fields
    OBJECT            Texts: Application Object
                             Rule : Constant
                              Code: /SAPDMC/LTXTH-OBJECT = 'MVKE'.
    NAME               Name
                             Source: ZLONG_TEXT-MATNR (MATNR)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTH-NAME = ZLONG_TEXT-MATNR.
    ID                     Text ID
                             Rule : Constant
                             Code: /SAPDMC/LTXTH-ID = '0001'.
    SPRAS             Language Key
                             Rule : Constant
                            Code: /SAPDMC/LTXTH-SPRAS = 'E'.
    /SAPDMC/LTXTL Long Texts: Row
    Fields
    TEXTFORMAT  Tag column 
                             Rule : Constant
                             Code: /SAPDMC/LTXTL-TEXTFORMAT = '/'.
    TEXTLINE          Text Line
                             Source: ZLONG_TEXT-LTEXT (LTEXT)
                             Rule : Transfer (MOVE)
                             Code: /SAPDMC/LTXTL-TEXTLINE = ZLONG_TEXT-LTEXT.
    Step6 -> Specify file Legacy
    Data On the PC (Frontend)
                 Data D:\Sales_Longtext.txt
    Step7 -> Assign File ZLONG_TEXT
    Source structure for long text
              Data D:\Sales_Longtext.txt
    Step8 -> Read data
    Output result
    Source Structure            Read                Written                Not Written
    ZLONG_TEXT                  1                       1                            0
    Transactions Read          1
    Records Read:                1
    Transactions Written:      1
    Records Written:             1
    Step 8 -> Display read data
    Field Name             Field Text                      Field Value
    MATNR                    MATNR                         MATERIA1
    LTEXT                     LTEXT                            SALES TEXT FOR Material MATERIAL1
    Step 9 -> Convert data
    File Read: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.read
    File Written: ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Transactions Read:    1
    Records Read:           1
    Transactions Written: 1
    Records Written:         2
    tep 10 -> Display converted data
    1 /SAPDMC/LTXTH     1    MVKE        MATERIAL1 0001   E
    2 /SAPDMC/LTXTL     2/   SALES TEXT FOR Material       MATERIAL1
    Step 11 -> Start direct input program
    Output result for the same
    Legacy System Migration Workbench Project:
    ZNRD_PRJ1  ORH
    Subproject:   ZNRD_SUBPRJ2     Upload long text
    Object:          ZNRD_LTEXT          Long text tru direct input
    File :              ZNRD_PRJ1_ZNRD_SUBPRJ2_ZNRD_LTEXT.lsmw.conv
    Long Texts in Total:                                1
    Successfully Transferred Long Texts:  1
    Non-Transferred Long Texts:                0
    Now when i check the material master sales view -> sales text it is empty. Please help me with the same.
    Regards,
    Ranjith N

  • Error while creating BOM using BAPI 'BAPI_BOM_UPLOAD_SAVE'

    Hi All,
    We are getting an error as 'Data is incomplete' while trying to create BoM using the bapi 'BAPI_BOM_UPLOAD_SAVE', if the item contains Item category as 'T'. But for other item category like 'L' or 'N', the bapi is sucessfull.
    The values that we pass to fill the item category 'T' are operation, item_cat, bom_itm_no, COMPON_QTY, FIXED_QTY as 'X', UNMEAS as 'ST', ITEM_TEXT1 and ITEM_TEXT2.
    Anyone who has faced same problem or has a solution to the problem, kindly provide a solution.
    Regards,
    Vijay

    The error you receive is because of different config for different Item Categories. Find out from the functional team what fields have they kept mandatory for the item category 'T'. You may not be passing one of those fields in the BAPI.
    Try creating a BOM manually for item category 'T' and you may figure our which field you are missing.

  • Problem while creating assets using BAPI

    Use table enhancement BAPI_TE_ANLU
    Diagnosis :The BAPIs for creating and changing assets currently support only those customer enhancements that relate to the user fields created using SAP enhancement AIST0002.
    Can anybody give the appropriate solution why this error is coming while creating assets using BAPI.

    Looks like you are trying to transfer custom fields into the asset master data that were not added following the steps in enhancement AIST0002.
    Using EXTENSIONIN parameter, you can transfer user fields from the asset master record. However, it is not possible to transfer fields that are updated in user-defined tables. Only user fields that were defined using SAP enhancement AIST0002 and are automatically updated in table ANLU can be udpated in this way. This means you have to use table extension BAPI_TE_ANLU.
    Enhancement AIST0002 contains function module EXIT_SAPL1022_001 as a component in which user fields can be implemented.
    The documentation ( BAPIPAREX) of the structure that forms the basis for this parameter contains additional information about using this parameter.
    Please check how table ANLU has been enhanced and also go through the documentation of enhancement AIST0002.
    Regards,
    Shyam

  • Error while creating Routing using LSMW

    Hi Guys ,
    I am trying to create LSMW using Direct Input Method .
    My structures are ::
    RC271_DS   Work center structure for direct input (for datasets)
    RC27M_DS   Material master view DIRECT INPUT routing for datasets
    PLKO_DI_DS Header structure for direct input (for datasets)
    PLPO_DI_DS Routing/item structure for direct input (for datasets.
    I getting correct data from multiple flat files .
    It's converting the data also .
    But while executing start direct input method i am getting the followig error ....
    You cannot edit the task list object with activity type
    Please let me know problem guys .
    Regards,
    Raj

    Hi Naveen,
    It means you have to assign  the task list type to  material type ZPRD. Then it will carry its job:
    The path is:
    Go To-> SPRO-> IMG Activity-> Production-> Basic Data-> Routing-> General Data---> Define Material Type Assignments. T-Code: OP50
    I hope it will work.
    Regards,
    Madhu.G

  • Error while creating BOM using BAPI (urgent)

    Hi all,
    Thanks for ur help. i am getting some error while creting a BOM using that BAPI
    BAPI_MATERIAL_BOM_GROUP_CREATE.
    errors are
    1) Error/warning when checking the structure of the BOM group with ID =
    2)Alternative does not exist for material assignment to material BAPIBOMFG1
    is it mandatory to pass the bom group id to this bapi?
    In bomgroup structure , i am not passing anything to BOM_GROUP field.
    is it mandatory to pass this data? i am giving my coding below.plz suggest , where i am making mistake. it is urgent.
    regards
    pabitra
    report z_bom_create
    line-size 132
    line-count 65
    no standard page heading.
    *-- DATA DECLARATION--
    include <icon> .
    *---Tables
    tables : s076, t100, marc .
    *---Types
    types : begin of t_upload, " Upload file data
    col1(18),
    col2(10),
    col3(30),
    col4(12),
    col5(50),
    end of t_upload,
    begin of t_split,
    location like stpu-ebort,
    end of t_split.
    data:begin of i_return occurs 10.
    include structure bapiret2.
    data:end of i_return.
    types:begin of t_item."occurs 10.
    include structure BAPI1080_ITM_C.
    types:end of t_item.
    types:begin of t_subitem." occurs 10.
    include structure BAPI1080_SUI_C.
    types:end of t_subitem.
    types:begin of t_header." occurs 10.
    include structure BAPI1080_MBM_C.
    types:end of t_header.
    types:begin of t_bomgroup." occurs 10.
    include structure BAPI1080_BGR_C.
    types:end of t_bomgroup.
    types:begin of t_variant." occurs 10.
    include structure BAPI1080_BOM_C.
    types:end of t_variant.
    *--- Tables
    data: i_upload type standard table of t_upload, " to hold data
    i_upload1 type standard table of t_upload,
    i_split type standard table of t_split,
    i_item type standard table of t_item,
    i_subitem type standard table of t_subitem,
    i_header type standard table of t_header,
    i_bomgroup type standard table of t_bomgroup,
    i_variant type standard table of t_variant.
    data: wa_upload type t_upload, " to hold file data,
    wa_upload1 type t_upload, " to hold plan data,
    wa_split type t_split,
    wa_item type t_item,
    wa_subitem type t_subitem,
    wa_header type t_header,
    wa_bomgroup type t_bomgroup,
    wa_variant type t_variant.
    data:v_matnr like mara-matnr,
    v_start like sy-index,
    v_count(3) type c.
    *--Constants
    data: c_dot type c value '.',
    c_x type c value 'X',
    c_comma type c value ','.
    -------Selection Screen Design -
    *Selection screen for input of upload file address
    selection-screen skip 2.
    selection-screen begin of block blk1 with frame.
    parameters : p_file like rlgrap-filename obligatory .
    parameters : p_matnr like mara-matnr obligatory,
    p_werks like marc-werks obligatory memory id wrk,
    p_stlan like afko-stlan obligatory default '1' .
    selection-screen end of block blk1.
    ---AT SELECTION SCREEN -
    at selection-screen on value-request for p_file.
    *--For popup to select file.
    perform f_give_help.
    at selection-screen on p_matnr.
    perform f_check_matnr.
    -----START OF SELECTION -
    *--Data upload using WS_Upload.
    perform f_get_data.
    perform f_get_bom_data.
    perform f_get_bom_data1.
    perform f_call_bapi.
    *& Form f_give_help
    text
    --> p1 text
    <-- p2 text
    FORM f_give_help.
    call function 'WS_FILENAME_GET'
    exporting
    mask = ',.,..'
    mode = 'O'
    importing
    filename = p_file
    exceptions
    inv_winsys = 1
    no_batch = 2
    selection_cancel = 3
    selection_error = 4
    others = 5.
    if sy-subrc <> 0 and not sy-msgty is initial.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    ENDFORM. " f_give_help
    *& Form f_check_matnr
    text
    --> p1 text
    <-- p2 text
    FORM f_check_matnr.
    CALL FUNCTION 'BAPI_MAT_BOM_EXISTENCE_CHECK'
    EXPORTING
    MATERIAL = p_matnr
    PLANT = p_werks
    BOMUSAGE = '1'
    VALID_FROM_DATE =
    VALID_TO_DATE =
    TABLES
    RETURN = i_return.
    ENDFORM. " f_check_matnr
    *& Form f_get_data
    text
    --> p1 text
    <-- p2 text
    FORM f_get_data.
    call function 'WS_UPLOAD'
    exporting
    CODEPAGE = ' '
    filename = p_file
    filetype = 'DAT'
    tables
    data_tab = i_upload
    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. " f_get_data
    *& Form f_get_bom_data
    text
    --> p1 text
    <-- p2 text
    FORM f_get_bom_data.
    delete i_upload where col1 is initial.
    delete i_upload where col1 cs 'ITEM'.
    read table i_upload into wa_upload with key col1 = 'FINISHED GOOD:'.
    if sy-subrc = 0.
    v_matnr = wa_upload-col2.
    if v_matnr <> p_matnr.
    message e001(zl) with p_matnr.
    endif.
    else.
    message e000(zl).
    endif.
    ENDFORM. " f_get_bom_data
    *& Form f_get_bom_data1
    text
    --> p1 text
    <-- p2 text
    FORM f_get_bom_data1.
    loop at i_upload into wa_upload where col1 CS 'FINISHED GOOD'.
    v_start = sy-tabix + 1.
    loop at i_upload into wa_upload1 from v_start .
    if wa_upload1-col1 cs 'FINISHED GOOD'.
    exit.
    else.
    perform f_split_upload_data.
    endif.
    endloop.
    endloop.
    ENDFORM. " f_get_bom_data1
    *& Form f_split_upload_data
    text
    --> p1 text
    <-- p2 text
    FORM f_split_upload_data.
    if not wa_upload1-col5 is initial.
    if wa_upload1-col5 cs c_comma.
    split wa_upload1-col5 at c_comma into table i_split.
    loop at i_split into wa_split.
    v_count = v_count + 1.
    endloop.
    if wa_upload1-col4 <> v_count.
    wa_upload1-col4 = v_count.
    endif.
    clear wa_upload1-col5.
    clear wa_split.
    loop at i_split into wa_split.
    wa_upload1-col5 = wa_split-location.
    append wa_upload1 to i_upload1.
    endloop.
    else.
    append wa_upload1 to i_upload1.
    endif.
    else.
    append wa_upload1 to i_upload1.
    endif.
    ENDFORM. " f_split_upload_data
    *& Form f_call_bapi
    text
    --> p1 text
    <-- p2 text
    FORM f_call_bapi.
    clear wa_upload1.
    wa_header-material = p_matnr.
    wa_header-plant = p_werks.
    wa_header-bom_usage = p_stlan.
    append wa_header to i_header.
    wa_bomgroup-bom_usage = p_stlan.
    wa_bomgroup-created_in_plant = p_werks.
    append wa_bomgroup to i_bomgroup.
    wa_variant-alternative_bom = 1.
    wa_variant-base_qty = 1.
    wa_variant-valid_from_date = sy-datum.
    append wa_variant to i_variant.
    loop at i_upload1 into wa_upload1.
    wa_item-item_no = wa_upload1-col1.
    wa_item-item_cat = wa_upload1-col2.
    wa_item-component = wa_upload1-col3.
    wa_item-comp_qty = wa_upload1-col4.
    append wa_item to i_item.
    wa_subitem-subitem_qty = '1'.
    wa_subitem-installation_point = wa_upload1-col5.
    append wa_subitem to i_subitem.
    endloop.
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
    TESTRUN = ' '
    ALL_ERROR = ' '
    TABLES
    BOMGROUP = i_bomgroup
    VARIANTS = i_variant
    ITEMS = i_item
    SUBITEMS = i_subitem
    MATERIALRELATIONS = i_header
    ITEMASSIGNMENTS =
    SUBITEMASSIGNMENTS =
    TEXTS =
    RETURN = i_return.
    if i_return[] is initial.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    *write: /'BOM created:', stpo-stlnr.
    else.
    *if not i_return[] is initial.
    loop at i_return.
    IF i_return-TYPE = 'E'.
    errmsg-type = i_return-type.
    errmsg-line = i_return-message.
    append errmsg.
    ULINE /1(108).
    write:/ icon_led_RED as icon, i_return-MESSAGE.
    ULINE /1(108).
    ENDIF.
    IF i_return-TYPE = 'W'.
    errmsg-type = i_return-type.
    errmsg-line = i_return-message.
    append errmsg.
    ULINE /1(108).
    write:/ icon_led_YELLOW as icon, i_return-MESSAGE.
    ULINE /1(108).
    ENDIF.
    ENDLOOP.
    *write: / i_return-id, i_return-number, i_return-message(80).
    *endloop.
    *write: /'Error'.
    endif.
    ENDFORM. " f_call_bapi

    Hi shashi,
    Thanks for ur help.i tried after passing the group but it is giving same error.
    i am getting the error
    "Error/warning when checking the structure of the BOM group with ID= test"
    i am gettig the above error when i put bomgroup-bom_group_identification = 'TEST'.
    whatever i am putting in this field, the same error is comming having different value.
    if i put--- bomgroup-bom_group_identification = ' '. then i will get error
    "Error/warning when checking the structure of the BOM group with ID=
    if i omit that field, then also , i am getting same error.
    plz suggest what r the fields i need to pass for BOMGROUP structure for that bapi?
    regards
    pabitra

  • Problem while creating queries using SQVI

    Guys,
    I have many diff versions of sap's. 4.6c, 4.7, 4.7uc, 5.0, 5.0uc and so on......
    I have to few queries in 4.7 in SQVI, i have to make it in sync in all the othr servers.
    I have created all of them in all servers, but while creating in 4.6c, when i am using option "table Join" while creating query in SQVI, the system doesnt take me to next screen.
    What could be the problem. Its going to next screen when i use option "table" but not when i use "table joins".
    Can v transport these queries ( i mean SQVI queries, not those in sq01 ).
    Helppp..................

    used table view

  • Partner function issues while creating SA using LSMW

    Hi,
    I am opening a new thread (though similar question has been put by Vihaan in below thread)
    Tax code in SA - LSMW
    We are creating SAs via LSMW IDOC method (Message Type - PURSAG_CREATE and Basic Type - PURSAG_CREATE01), all our SAs being created w r to Contract and Contract has multiple OA and PI partner functions. So while creating SA we are passing unique OA and PI value (from list of valid OA/PI avaialble in contract) in LSMW structures - E1BPMEOUTPARTNER and E1BPMEOUTPARTNERX.
    Values passed are mentioned below:
    E1BPMEOUTPARTNER               Partner Information for Outline Agreement
        Fields
            PARTN_ROLE                   Partner Function
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-PARTN_ROLE = 'BA'.
            PLANT                        Plant
            SUBRANGE_TX                  Description of Vendor Subrange
            LANGU                        Language Key
            LANGU_ISO                    Language according to ISO 639
            PARTNR                       Reference to other vendor
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-PARTNR = '1XXXXXXXX9'.
            DEF_PARTNR                   Default Partner
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNER-DEF_PARTNR = 'X'.
            DELETE_IND                   Deletion Indicator in Purchasing Document
    E1BPMEOUTPARTNERX              Change Parameter Partner Data (Outline Agreement)
        Fields
            PARTN_ROLE                   Partner Function
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-PARTN_ROLE = 'BA'.
            PLANT                        Plant
            SUBRANGE_TX                  Description of Vendor Subrange
            LANGU                        Updated information in related user data field
            LANGU_ISO                    Updated information in related user data field
            PARTNR                       Updated information in related user data field
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-PARTNR = 'X'.
            DEF_PARTNR                   Updated information in related user data field
                                Rule :   Constant
                                Code:    E1BPMEOUTPARTNERX-DEF_PARTNR = 'X'.
            DELETE_IND                   Updated information in related user data field
    Now issue is SAP is not recognizing above mentioned partner value and throwing error as Following mandatory roles missing in partner maintenance: OA
    If the reffered contract has single OA and PI LSMW is running fine and creating SA successfully but issue is coming only when we have multiple OA/PI.
    Has anybody faced similar issue or aware if any OSS note which resolves this issue, please advise.
    Thanks,
    Yogesh

    Hi Jurgen,
    I have created a separate source structure for passing partner function and now have below source structure:
    Source Structures
           HEADER_SA            Header Structure
               PARTNER_SA          PARTNER STRUCTURE (Lower level to Header)
               ITEM_SA              Item Structure (Lower level to Header but at the same level as Partner)
    Then created a separate file for partner having both OA and PI value as shown below (ID is common field between all three structures Header, item and Partner):
    ID     PARVW     LIFN2     DEFPA
    1     BA     1XXXXXXX9     X
    1     RS     1XXXXXXX7     X
    Now after convert data step it considers above values for partner role but still LSMW fails with same error "Mandatory PF missing, OA, PI"
    Also, one more info wanted to share- if in my contract I put a tick mark against one of the partner OA/PI in DEFAULT BOX, it works fine but that does not make any sense as the whole pupose of having multiple OA/PI is to give option to business of selecting one of the avaialble OA/PI.
    FYI - I have opened a customer message to SAP, let see what they suggest.
    Thanks,
    Yogesh

  • Problem while creating PO using BAPI_PO_CREATE1

    HAI TO ALL
    I AM TRYING TO CREATE PO USING BAPI
    ORDER IS SUCCESFULLY GENERATED, BUT THE CONDITIONS WHATEVER I PASS IS ARE REPEATING ,
    EVEN WE CONFIGURED DEFAULT VALUES MAINTAINED IN TRANSCTION 'OMFI" AND MAINTAINED Default Values for Purchasing FOR PARAMETER IN PARAMETER TAB IN USER PROFILE,
    HELP ME...
    REGARDS,
    SN

    Hi Sid.
    I'm having this same problems on creating PO Service. Did you solve it? How did you do that?
    I'm using a PR and the Category is 'Y', and I cant find where is the problem.
    The tables that I'm passing to the BAPI_PO_CREATE1 are:
    POITEM/ POITEMX
    POACCOUNT/ POACCOUNTX
    POSERVICES
    POSRVACCESSVALUES
    Please, if you have any idea, let me know!
    Tks a lot!
    Renata

  • Conversion of data from legacy into SAP using LSMW(Direct input)

    Hi guys,
         I  need a help from u for the following scenario. The scenario is about  <b>FI & MM Vendor Master Conversion</b>.The brief description of this scenario is as follows:
         <i>Conversion of Accounts Payable Vendor Master Record from Legacy systems into SAP.  The purpose of this document is to define the master data fields that will need to be populated as well as the order in which the different parts of Vendor master should be loaded.</i>
    Transaction Code(s) to be used:     XK01 – Create Vendor Master Centrally   RFBIKR00                                                                                LSMW – Program <b>RFBIBL00</b>.
    Please help me to do this scenario.
    Regards
    Ram.V

    Hi Naveen,
                 Send me the suitable screen shot to my id. Also if u can, send me the same for batch input too.
                 My mail id is "[email protected]".

  • Problem while createing record using plsqlEO

    Hi,
    I called API in insertRow() method of plsqlEO to create record and the primary key person_profile_id is the out parameter of this API and it'll generate by the API.
    But while submitting the page its throwing an error message as
    the attribute person_profile_id is required.
    So I couldn't able to create record. What might be the reason behind this?
    The insertRow method is given below,
    protected void insertRow()
    Diagnostic.println("Inside insertRow!!!!");
    Object obj = null;
    HzPartyV2Pub hzpartyv2pub = new HzPartyV2Pub();
    oracle.apps.ar.hz.v2api.HzPartyV2Pub.PersonRec personrec = new oracle.apps.ar.hz.v2api.HzPartyV2Pub.PersonRec();
    BigDecimal[] x_party_id = new BigDecimal[1];
    String[] x_party_number = new String[1];
    BigDecimal[] x_profile_id = new BigDecimal[1];
    String[] x_return_status = new String[1];
    BigDecimal[] x_msg_count = new BigDecimal[1];
    String[] x_msg_data = new String[1];
    Diagnostic.println("Before calling initializePersonRec");
    initializePersonRec(personrec);
    Diagnostic.println("After calling initializePersonRec");
    try
    OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getOADBTransaction();
    OracleConnection oracleconnection = (OracleConnection)oadbtransactionimpl.getJdbcConnection();
    Diagnostic.println("Before calling createPerson");
    HzPartyV2Pub.createPerson(oracleconnection, "T", personrec, x_party_id, x_party_number,
    x_profile_id, x_return_status, x_msg_count, x_msg_data);
    Diagnostic.println("After API Call Return Status is:" + x_return_status);
    catch(Exception exception)
    Diagnostic.println("Inside Catch Exception: " + exception);
    checkErrors();
    How to solve this issue? please suggest.
    Thanks & Regards,
    Sagarika

    The SQL statement generated by TopLink is as follows -
    UPDATE PR_SUPP SET CNTC_PRSN_NAME = ''
    , REMK = 'Remark 123 !', LAST_CHNG_DTTM = {ts '2002-11-29 10:59:56.0'} WHERE ((S
    UPP_CODE = 'A0001') AND (LAST_CHNG_DTTM = {ts '2002-11-29 10:46:01.0'}))
    The coloumn name in the generated statement conform to the coloumn names in the table. The exception is being thrown for all 'update' queries for all objects in the application.

  • Problem while creating database using dbca

    Hi all,
    I am getting following error when I try to create a database (fresh installation) using dbca on linux ES4, oracle 10.2.0.1 (Rev2). Any help much appreciated.
    ORA-19624: operation failed, retry possible,
    ORA-19870: error reading backup piece /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf
    ORA-19505: failed to identify file /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf
    ORA-27037: unable to obtain file staus.
    Thanks,

    Hi,
    You saw if this file /u01/app/product/10.2.0/db_1/assistants/dbca/templates/Seed_Database_8k.dbf exists ?
    See if this link help you:
    database 10gR2 configuration assistant error
    Cheers

  • Version problem while creating PO using CO

    Hi All,
    I am not able to create a PO. The following is the error
    "Version 0 not defined for fiscal year 2007"
    The follow on trial of resolutions is as follows:
    Message "GF626", Execute function, Control area 1000, General version definition, ACTIVATION OF INDICATOR NOT PERMITTED Message KT 253.
    Please help me with a step by step resolution
    Regards,
    Kumar

    SPRO --- Logistics --- PS --- Costs --- create CO Version
    In this check whether u have done the "setting for each fiscal year" for ur version

Maybe you are looking for