Error while creating WBS through BAPI

I am using BAPI_PROJECT_MAINTAIN to create WBS L2 & L3.
There is only 1 WBS at both levels.
For some cases it is running fine, but I am getting the following error in some cases:
"WBS element 3UTWB_BSRHT_001 can no longer be shifted"
What could be the reason?

As you told you are creating WBS vai BAPI. This may not be  exact relevant Normally you cannot  change  hierarchy of WBS Elements after you have done some sort of execution / planning on it. If you are getting error than please share details of error message with no.
With Regards
Nitin P.

Similar Messages

  • Getting error message while creating Contract through BAPI

    Hi
    I am getting a 'Specify either address number or address handle' message while creating contract from BAPI BAPI_CONTRACT_CREATEFROMDATA. Can someone please tell me what can be the cause.

    Hello Bharati,
             you need to give the value of the constant by selecting from the source parameter.Hope this answer helps you.
    Assigning Points = Thanks in SDN
    Thanks & Regards
       Jai

  • Error while creating WBS element.. regarding source structure

    I am creating a project and then a WBS element. Its a investment project. While creating WBS element XXX, it gives me error that "WBS element XXX: SOurce assignments for source structure A1 missing in Investment Profile ZZZZZ."
    What shall I check? what could be the reason?
    Thanks,
    A

    hi,
    In this IMG activity, you define the source structures used when settling and costing joint products.
    A source structure contains several source assignments, each of which contains the individual cost elements or cost element intervals to be settled using the same distribution rules
    Just consult with your CO Consultant...
    Venkatesh

  • Error while creating project through import.wdl

    Hi
    We are having issues creating project using the import.wdl.
    We are able to create content administration and merchandising projects though.
    We are getting the following error while creating a programatic import project through import.wdl
    [12/8/13 23:26:27:259 CST] 00000021 SystemErr     R atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine.
    [12/8/13 23:26:27:260 CST] 00000021 SystemErr     R  at atg.epub.project.ProcessHomeMethods.initializeProcess(ProcessHomeMethods.java:450)
    [12/8/13 23:26:27:260 CST] 00000021 SystemErr     R  at atg.epub.project._ProcessHome_Impl.initializeProcess(_ProcessHome_Impl.java:53)
    [12/8/13 23:26:27:260 CST] 00000021 SystemErr     R  at atg.epub.project._ProcessHome_ReposImpl.initializeProcess(_ProcessHome_ReposImpl.java:3)
    [12/8/13 23:26:27:260 CST] 00000021 SystemErr     R  at atg.epub.servlet.CreateProcessFormHandler.handleCreateProcess(CreateProcessFormHandler.java:380)
    We have checked all the workflow manager settings. The workflowProcessManager.xml is properly pointing to the system name and drp port.
    We had delete entries from
    epub_wf_server_id
    epub_coll_workflow
    epub_workflow_info
    dss_server_id
    dsi_server_id
    upon enabling the logdebugs of WorkFlowProcesManager, we are seeing the following debugs.
    [12/8/13 23:31:08:101 CST] 00000020 SystemOut     O /atg/epub/workflow/process/WorkflowProcessManager received message on port IndividualEvents message: ObjectMessage()
    [12/8/13 23:31:08:101 CST] 00000020 SystemOut     O /atg/epub/workflow/process/WorkflowProcessManager [message]: received an individual event message StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null] of type atg.workflow.StartWorkflow
    [12/8/13 23:31:08:101 CST] 00000020 SystemOut     O /atg/epub/workflow/process/WorkflowProcessManager [message]: created individual execution context ProcessExecutionContextImpl[individual,subject=process:prc272003,messageType=atg.workflow.StartWorkflow,message=StartWorkflowMessage[messageId=96000003subjectId=prc272003,subjectType=process,processName=/Commerce/import.wdl,segmentName=main,user=user : admin null],sessionId=Tw-Yr5CQqqkADS3q8MadASz,parentSessionId=Tw-Yr5CQqqkADS3q8MadASz,request=atg.servlet.DynamoHttpServletRequest@1009990707,response=atg.servlet.DynamoHttpServletResponse@3c9e3c9e]
    [12/8/13 23:31:08:103 CST] 00000020 SystemOut     O /atg/epub/workflow/process/WorkflowProcessManager [message]: 0 individual instances found for subject process:prc272003
    [12/8/13 23:31:08:103 CST] 00000020 SystemOut     O /atg/epub/workflow/process/WorkflowProcessManager [message]: going through process segments registered for type atg.workflow.StartWorkflow for subject process:prc272003

    If you have a support contract with Orcale you can find out hoe to fix this error by checking out Knowledge Article 1038072.1 How to troubleshoot "atg.workflow.WorkflowException: The inner project was not created. Check that your project workflow has been initialized by the workflow engine."
    The article says you should:
    1.
    delete from epub_wf_server_id
    delete from epub_coll_workflow
    delete from epub_workflow_info
    restart server and retest
    2. If problem exists check that you have configured the Workflow Process Editor Server correctly.
    The problem is that probably the workflow has not been not been initialized correctly by the Workflow Editor Server.

  • Getting Error while creating Project through API:PA_PROJECT_PUB.CREATE_PROJ

    Hi Gurus,
    I'm getting an error while creating a New project.
    My code looks like this:
    APPS.PA_PROJECT_PUB.CREATE_PROJECT
    (p_api_version_number => l_object_version_number --IN Parameter
    ,p_commit => l_commit --IN Parameter
    ,p_init_msg_list => l_init_msg_list --IN Parameter
    ,p_msg_count => l_msg_count --OUT Parameter
    ,p_msg_data => l_msg_data --OUT Parameter
    ,p_return_status => l_return_status --OUT Parameter
    ,p_workflow_started => l_workflow_started --OUT Parameter
    ,p_pm_product_code => g_pm_product_code --IN Parameter
    ,p_op_validate_flag => l_op_validate_flag --IN Parameter
    ,p_project_in => g_project_in --IN Parameter
    ,p_project_out => g_project_out --OUT Parameter
    ,p_tasks_in => g_task_in --IN Parameter
    ,p_tasks_out => g_task_out --OUT Parameter
    The out put params are: p_msg_count => 1
    p_return_status => E
    p_workflow_started => N
    g_project_out.pa_project_id => 170000000000000000000
    g_project_out.pa_project_number => ^
    g_task_out_rec.pa_task_id => 170000000000000000000
    End process record p_proj_insert => 1
    Resetting the task count variable
    when I checked the API code I found this:
    PA_INTERFACE_UTILS_PUB.G_PROJECt_ID := null; --bug 2471668 ( not in the project context )
    PA_PM_FUNCTION_SECURITY_PUB.check_function_security
    (p_api_version_number => p_api_version_number,
    p_responsibility_id => l_resp_id,
    p_function_name => 'PA_PM_CREATE_PROJECT',
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => l_return_status,
    p_function_allowed => l_function_allowed
    . I think I am getting the error because of this.
    Now, question.
    Do I need to run the Create Project from a specific Responsibility?
    because when I ran the underlined query, I fpound the final status as 'N'.
    I'm a HR guy and PA is a new world for me. Any help will be appreciated.
    Thanks!!
    Viky

    You need to find any responsibility and userid that lets you create a project using the screen.
    And then in your code, you need to set your context to that resp/userid.
    Hope this helps
    Sandeep Gandhi

  • Error while Creating WBS element using BAPI 'BAPI_BUS2054_CREATE_MULTI'

    Hi Expert,
    I've a requirement to create WBS elements using BAPI. And I am using BAPIs in the following manner.
    CALL FUNCTION 'BAPI_PS_INITIALIZATION'
      CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
        EXPORTING
          i_project_definition = g_pdwbs
      TABLES
        it_wbs_element             = it_wbs_element
       et_return                  = it_return
      EXTENSIONIN                =
      EXTENSIONOUT               =
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    When I do so I am getting the below errors. Please suggest.
    "Individual check for creating the object WBS Element C-497082 required ".
    "Individual check for creating the object WBS Element C-497082-0001 required".
    Please suggest how to correct this error. 
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 18, 2008 5:25 PM

    I am getting the same error, but I cannot figure it out how to detect it and fix it.  Will you please share your solution?
    Thanks,

  • ERROR WHILE CREATING XD01 THROUGH WORKFLOE IN BACKGROUND

    HI,
    I am facing problem while creating xd01 in background.
    actually i have created method in workflow in mehhod i am using Z function module
    with following  xd01 recoding code with workflow method is foreground it is working fine
    if workflow method (Task set background) is giving error like
    MSGTYP 00.  MSGID 255    Fieldname          kna1-lifnr            in  BDCMSGCOll
    please reply me as soon as possible
    perform bdc_dynpro      using 'SAPMF02D' '0100'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'USE_ZAV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'RF02D-BUKRS'
                                   it_customer-bukrs.                    ""'1000'.
    perform bdc_field       using 'RF02D-VKORG'
                                   it_customer-vkorg.                      ""'1000'.
    perform bdc_field       using 'RF02D-VTWEG'
                                   it_customer-VTWEG .                     ""'20'.
    perform bdc_field       using 'RF02D-SPART'
                                   it_customer-spart .                      ""'30'.
    perform bdc_field       using 'RF02D-KTOKD'
                                  it_customer-KTOKD.                       ""'ZD01'.
    perform bdc_field       using 'USE_ZAV'
                                 it_customer-check . ""'X'.
                                    'X'.
    perform bdc_dynpro      using 'SAPMF02D' '0111'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'SZA1_D0100-SMTP_ADDR'.
    perform bdc_field       using 'SZA1_D0100-TITLE_MEDI'
                                   it_customer-ANRED.                    ""'Company'.
    perform bdc_field       using 'ADDR1_DATA-NAME1'
                                  it_customer-name1 .                         ""'NAME 1'.
    perform bdc_field       using 'ADDR1_DATA-NAME2'
                                    it_customer-name2.                                         ""NAME 2'.
    perform bdc_field       using 'ADDR1_DATA-SORT1'
                                   it_customer-SORT1.
                                                                      "" 'TEST DATA'.
    perform bdc_field       using 'ADDR1_DATA-STR_SUPPL1'
                                   it_customer-STR_SUPPL1.           ""'STREET 2'.
    perform bdc_field       using 'ADDR1_DATA-STR_SUPPL2'
                                  it_customer-STR_SUPPL2 .          "" STREET 3'.
    perform bdc_field       using 'ADDR1_DATA-STREET'
                                  it_customer-STREET.                  "'STREET 1'.
    *perform bdc_field       using 'ADDR1_DATA-STR_SUPPL3'
                                  it_customer-STR_SUPPL3.                 ""'STREET 4'.
    perform bdc_field       using 'ADDR1_DATA-POST_CODE1'
                                    it_customer-POST_CODE1.                        ""'400055'.
    perform bdc_field       using 'ADDR1_DATA-CITY1'
                                    it_customer-CITY1.                              ""'mumbai'.
    perform bdc_field       using 'ADDR1_DATA-COUNTRY'
                                   it_customer-country.  ""'IN'.
    perform bdc_field       using 'ADDR1_DATA-REGION'
                                    it_customer-region.                                      ""'13'.
    *perform bdc_field       using 'ADDR1_DATA-TIME_ZONE'
                                  it_customer-TIME_ZONE.                                      ""'INDIA'.
    perform bdc_field       using 'ADDR1_DATA-TRANSPZONE'
                                   it_customer-TRANSPZONE.        ""'201300'.
    perform bdc_field       using 'ADDR1_DATA-LANGU'
                                  it_customer-langu.                   "   'EN'.
    perform bdc_field       using 'SZA1_D0100-TEL_NUMBER'
                                   it_customer-TEL_NUMBER.            "'022-677623420'.
    perform bdc_field       using 'SZA1_D0100-MOB_NUMBER'
                                  it_customer-MOB_NUMBER.                                    ""'9867936636'.
    perform bdc_field       using 'SZA1_D0100-FAX_NUMBER'
                                   it_customer-FAX_NUMBER.                                   ""'022-67768877'.
    perform bdc_field       using 'SZA1_D0100-SMTP_ADDR'
                                   it_customer-SMTP_ADDR.                                         
    perform bdc_dynpro      using 'SAPMF02D' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNA1-LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=OPFI'.
    perform bdc_dynpro      using 'SAPLJ1I_MASTER' '0200'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CIN_CUSTOMER_FC2'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'J_1IMOCUST-J_1IEXCICU'.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXCD'
                                  it_customer-J_1IEXCD. ""'AAACW6074DXD001'.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXRN'
                                   it_customer-J_1IEXrn.                          "" 'AAACW6074DXD001'.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXRG'
                                  ""'KALYAN'.
                                   it_customer-j_1iexrg.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXDI'
                                   it_customer-j_1iexdi.
                                                             ""'IV'.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXCO'
                                    it_customer-J_1IEXCO.                       "" 'ADDJCK'.
    perform bdc_field       using 'J_1IMOCUST-J_1IEXCICU'
                                   it_customer-J_1IEXCICU.  ""'1'.
    perform bdc_dynpro      using 'SAPLJ1I_MASTER' '0200'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=CIN_CUSTOMER_FC3'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'J_1IMOCUST-J_1ISERN'.
    perform bdc_field       using 'J_1IMOCUST-J_1ICSTNO'
                                  it_customer-J_1ICSTNO.   "" 'CSTV123983E4B'.
    perform bdc_field       using 'J_1IMOCUST-J_1ILSTNO'
                                    it_customer-J_1IlSTNO. ""'LST93U4R983FC'.
    perform bdc_field       using 'J_1IMOCUST-J_1ISERN'
                                  it_customer-J_1ISERN.     ""'AADDK388494M'.
    perform bdc_dynpro      using 'SAPLJ1I_MASTER' '0200'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=BACK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'J_1IMOCUST-J_1IPANNO'.
    perform bdc_field       using 'J_1IMOCUST-J_1IPANNO'
                                   it_customer-J_1IPANNO.
                                  ""'PAND883322M'.
    perform bdc_dynpro      using 'SAPMF02D' '0120'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNA1-LIFNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KNA1-LIFNR'
                                   it_customer-lifnr. ""'100000'.
    perform bdc_dynpro      using 'SAPMF02D' '0125'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNA1-KUKLA'.
    perform bdc_field       using 'BDC_OKCODE'
                                    '=ENTR' .          "" '/00'.
    perform bdc_field       using 'KNA1-KUKLA'
                                   it_customer-KUKLA. ""'02'.
    perform bdc_dynpro      using 'SAPMF02D' '0130'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNBK-BANKS(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02D' '0340'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02D' '0370'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_field       using 'KNA1-CIVVE'
                                 it_customer-CIVVE.""'X'.
                                     'X'.
    perform bdc_dynpro      using 'SAPMF02D' '0360'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVK-NAMEV(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    IF ( it_customer-KTOKD <> 'ZD02' ) .
    perform bdc_dynpro      using 'SAPMF02D' '0210'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNB1-FDGRV'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KNB1-AKONT'
                                 it_customer-akont."" '213002'.
    perform bdc_field       using 'KNB1-ZUAWA'
                                  it_customer-ZUAWA.""'001'.
    perform bdc_field       using 'KNB1-FDGRV'
                                  it_customer-FDGRV. ""'E2'.
    perform bdc_dynpro      using 'SAPMF02D' '0215'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNB1-ZWELS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KNB1-ZTERM'
                                 it_customer-ZTERM.""'0001'.
    perform bdc_field       using 'KNB1-ZWELS'
                                   it_customer-ZWELS. ""'C'.
    perform bdc_dynpro      using 'SAPMF02D' '0220'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNB5-MAHNA'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02D' '0230'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNB1-VRSNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPMF02D' '0610'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-KUNNR'.
    ENDIF.
    perform bdc_dynpro      using 'SAPMF02D' '0310'.
    perform bdc_field       using 'BDC_CURSOR'
                                   'KNVV-VERSG'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    *perform bdc_field       using 'KNVV-AWAHR'
                                 it_customer-awahr.  ""'100'.
    perform bdc_field       using 'KNVV-VKBUR'
                                   it_customer-vkbur.  ""'1000'.
    perform bdc_field       using 'KNVV-WAERS'
                                   it_customer-WAERS.                   ""'INR'.
    perform bdc_field       using 'KNVV-KALKS'
                                  it_customer-KALKS.  "'1'.
    perform bdc_field       using 'KNVV-VERSG'
                                  it_customer-VERSG.
                                                            ""'1'.
    perform bdc_dynpro      using 'SAPMF02D' '0315'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVV-VSBED'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'KNVV-LPRIO'
                                 it_customer-LPRIO.  "'1'.
    perform bdc_field       using 'KNVV-KZAZU'
                                  it_customer-KZAZU.""'X'.
                                    'X'.
    perform bdc_field       using 'KNVV-VSBED'
                                  it_customer-VSBED.""'20'.
    perform bdc_field       using 'KNVV-ANTLF'
                                 it_customer-ANTLF. ""'9'.
                                   '9'.
    if ( it_customer-ktoKd <> 'ZD02' and it_customer-ktoKd <> 'ZD01' ).
    perform bdc_dynpro      using 'SAPMF02D' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVV-INCO2'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTS'.
    perform bdc_field       using 'KNVV-INCO1'
                                 it_customer-INCO1." 'CIF'.
    perform bdc_field       using 'KNVV-INCO2'
                                  it_customer-INCO2. "" 'mumbai'.
    perform bdc_field       using 'KNVV-ZTERM'
                                  it_customer-ZTERM. ""'0001'.
    perform bdc_field       using 'KNVV-KKBER'
                                  it_customer-kkber.""'1000'.
    ENDIF.
    if it_customer-ktokd <> 'ZD04'.
      perform bdc_dynpro      using 'SAPMF02D' '0320'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVV-INCO2'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTS'.
    perform bdc_field       using 'KNVV-INCO1'
                                 it_customer-INCO1." 'CIF'.
    perform bdc_field       using 'KNVV-INCO2'
                                  it_customer-INCO2. "" 'mumbai'.
    perform bdc_field       using 'KNVV-ZTERM'
                                  it_customer-ZTERM. ""'0001'.
    perform bdc_field       using 'KNVV-KKBER'
                                  it_customer-kkber.""'1000'.
    perform bdc_dynpro      using 'SAPMF02D' '1350'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVI-TAXKD(03)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
      DATA : FNAM(20) TYPE C,
           IDX(2)      TYPE C.
      MOVE 1 TO IDX.
    loop at gt_tax where kunnr = it_customer-kunnr.
    CONCATENATE 'KNVI-TAXKD(' '0' IDX ')' INTO FNAM.
    perform bdc_field       using FNAM
                           GT_TAX-TAXKD.
    idx = idx + 1.
    ENDLOOP.
    ENDIF.
    perform bdc_dynpro      using 'SAPMF02D' '1350'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'RF02D-KUNNR'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    perform bdc_dynpro      using 'SAPMF02D' '0324'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'KNVP-PARVW(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTR'.
    CALL TRANSACTION C_XD01 USING IT_BDCDATA
         OPTIONS FROM x_options
                             mode  C_MODE
                          update  C_UPDATE
                         MESSAGES INTO IT_BDCMSGCOLL.
    regards,
    K.satyanarayana

    Hi
    We are in 11.5.10.2 and I already checked notes which you sent before and setups are fine as the relationship type' Ship to' having 'contacts' enabled in the setup.
    I am also seeing a differernt issue as once I update existing item instnace with the status 'Return for Credit' through API, system is not allowing me to update the extended attributes through front end application manually and I am seeing a note at the end of the screen as 'Note: This item instance cannot be updated. ' and this is only happening when I update the item instance status to 'Returned for Credit' not when I create new item instances with status as 'Created'. Is this intended functionality to restrict update on extended attributes if I change the status of item instnace to 'Return for Credit' ?
    Thanks

  • 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

  • Error while creating hierarchy through " Create Hierarchy field" option

    Hi All,
    while trying to create hierarchy through Create Hierarchy field option i am facing the following error
    I am giving the following inputs
    Hierarchy field name : XYZ
    Parent field                : Level1
    Child Field                  : Level2
    Node name field        : Level3
    Cannot find the parent ID value "abc" in Field ID Level2 of Table " Hierarchy"
    FYI
    The source hierarchy is in Columns format with Level1(Parent)---->Lever2(Child of Level1) and Level3(Child of level2)
    Kindly guide me where i am going wrong
    Thanks in Advance
    Regards
    Sharma

    Hi Sharma,
    Your input file should have 3 columns for hierarchy one which will store level 1 information,2nd will have corresponding level 2 information and 3rd will have corresponding level 3 info.
    Now in Import Manager go to Partition,select 1st ,2nd and 3rd column.Donot combine the fields. Now map the partition fields with the target hierarchy field.Perform the value mapping and import.
    Or
    YOu can have one column in the excel file.with values L1>L2>L3(split by some delimiter).
    In import manager go to source hierechy pany select the Column and from context menu select option split into hierechy as per the delimiter.
    Now map the parttion field and target field ,do value mapping and import.
    Regards,
    Neethu Joy

  • BAPI_BUS2054_CREATE_MULTI error while creating WBS Element

    Hi Gurus,
    I am trying to create WBS element by using    BAPI_BUS2054_CREATE_MULTI
    but bapi raise an error that I can not understand.
    in return table I got the following error with the error code CJ - 021
    " XXXX-YYYY-ZZZZ WBS Element does not exist "
    But I try to create already? What does 'Does not exist' mean?
    By the way I am using
    CALL FUNCTION 'BAPI_PS_INITIALIZATION'. before using  BAPI_BUS2054_CREATE_MULTI
    thanks in advance, it is an very important
    Mehmet Ali

    Hi.
    I have the same problem. Have you solved?
    Thanks.
    Angie

  • Error while creating delivery through VL01N

    Hi
    The material master availability check group for plant 1001 is 02 (field MARC-MTVFP) and delivery plant as 1002 (different plant) .So while creating sales order automatically it picks plant 1002 and populate VBAP-WERKS field.  There is no stock or production order or PO. So availability check is showing 0 qty.  Now while creating outbound delivery via VL01N it is throwing error  "Order cannot be delivered (see long text) Message no. VL461".
    Now when I create a new sales order line item and change the plant to 1001 manually and try to create delivery, it is not giving any error and allowing me to proceed. In this plant too there is no stock or prodcution order or PO (exactly same as in plant 1002, during avalibility check qty is 0). So when a system suggested plant is changed in VA02 why VL01N transaction is not checking for availability and giving any error?
    Pls suggest
    Thanks

    Hi
    Kindly check the belwo points
    1. check the  item category  for the line item.
    2.  When you change the plant kindly cloick on availabilty and deliver the order
    3. Check the availablity check  field mainatined in  both the plants in the material master sales org/plant data
    4. Check the schedule line data for both the plants in the sales order
    Regards
    Damu

  • Error while creating asset through AS91

    Hi All,
    When i am trying to create asset through AS91 for a new company i am getting error AY 252 " Current fiscal year 2007 has to be after transfer daet 31.12.2007. In this company the Asset accounting has been recently customised but when i am trying for the upload of asset master data i am getting the above given error.
    Please tell what should be done to remove this error.
    Thanks & regards,
    Prachi

    Check the transfer date for asst data transfer...make sure the current fiscal yr is after the transfer date
    Asset accounting>Asset data transfer>Parameters for data transfer>date specifications>Specify transfer date/last closed fiscal yr.

  • Wbs element can no longer be shifted error while creating wbs

    i am trying to create wbs with bapi_project_maintain, i am facing an error with message no 418 WBS element 1899-CAP-10-100-001-1507 can no longer be shifted

    - You tried to change the hierarchy of the project, despite the fact that some budget has already been assigned. Try to add the WBS to another node or place in the project hierarchy.
    - You could also reset budget using transaction CJ30 and remove the availability control on the project using transaction CJBW.
    Regards,
    Raymond

  • Error while creating Salesorder using BAPI

    hello frnds,
    I m new to abap and tryin to make use of BAPI_SALESORDER_CREATEFROMDAT1 to create Sales Order
    I have used the progrtam below.
    *& Report  ZSALESBAPITRIAL
    REPORT  zsalesbapitrial.
    TABLES : vbak , vbap.
    Parameter Screen.
    Sales Document Type.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    Sales document type.
    PARAMETERS: p_auart TYPE vbak-auart OBLIGATORY.
    Sales Organisation.
    PARAMETERS: p_vkorg TYPE vbak-vkorg OBLIGATORY.
    Distribution channel.
    PARAMETERS: p_vtweg TYPE vbak-vtweg OBLIGATORY.
    Division.
    PARAMETERS: p_spart TYPE vbak-spart OBLIGATORY.
    SKIP 1.
    Sold to.
    PARAMETERS: p_sold TYPE vbak-kunnr OBLIGATORY.
    Ship to.
    PARAMETERS: p_ship TYPE vbak-kunnr OBLIGATORY.
    SKIP 1.
    Material(Article No).
    PARAMETERS: p_matnr TYPE vbap-matnr   OBLIGATORY.
    Quantity (Cummulative quantity of sales Order)
    PARAMETERS: p_menge type vbap-kwmeng obligatory.
    Plant(Site )
    parameters: p_plant type vbap-werks obligatory.
    SELECTION-SCREEN END OF BLOCK b1.
    Data declarations.
    DATA: v_vbeln            LIKE vbak-vbeln.
    DATA: header             LIKE bapisdhead1.
    DATA: headerx            LIKE bapisdhead1x.
    DATA: item               LIKE bapisditem  OCCURS 0 WITH HEADER LINE.
    DATA: itemx              LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
    DATA: partner            LIKE bapipartnr  OCCURS 0 WITH HEADER LINE.
    DATA: return             LIKE bapiret2    OCCURS 0 WITH HEADER LINE.
    DATA: lt_schedules_inx   TYPE STANDARD TABLE OF bapischdlx
                             WITH HEADER LINE.
    DATA: lt_schedules_in    TYPE STANDARD TABLE OF bapischdl
                             WITH HEADER LINE.
    Header data
    Sales document type
      header-doc_type = p_auart.
      headerx-doc_type = 'X'.
    Sales organization
      header-sales_org = p_vkorg.
      headerx-sales_org = 'X'.
    Distribution channel
      header-distr_chan  = p_vtweg.
      headerx-distr_chan = 'X'.
    Division
      header-division = p_spart.
      headerx-division = 'X'.
      headerx-updateflag = 'I'.
    Partner data
    Sold to
      partner-partn_role = 'AG'.
      partner-partn_numb = p_sold.
      APPEND partner.
    Ship to
      partner-partn_role = 'WE'.
      partner-partn_numb = p_ship.
      APPEND partner.
    ITEM DATA
      itemx-updateflag = 'I'.
    Line item number.
      item-itm_number = '000010'.
      itemx-itm_number = 'X'.
    Material
      item-material = p_matnr.
      itemx-material = 'X'.
    Plant
      item-plant    = p_plant.
      itemx-plant   = 'X'.
    Quantity
      item-target_qty = p_menge.
      itemx-target_qty = 'X'.
      APPEND item.
      APPEND itemx.
      Fill schedule lines
      lt_schedules_in-itm_number = '000010'.
      lt_schedules_in-sched_line = '0001'.
      lt_schedules_in-req_qty    = p_menge.
      APPEND lt_schedules_in.
      Fill schedule line flags
      lt_schedules_inx-itm_number  = '000010'.
      lt_schedules_inx-sched_line  = '0001'.
      lt_schedules_inx-updateflag  = 'X'.
      lt_schedules_inx-req_qty     = 'X'.
      APPEND lt_schedules_inx.
    CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
    EXPORTING
    sales_header_in = header
    sales_header_inx = headerx
    IMPORTING
    salesdocument_ex = v_vbeln
    TABLES
    return = return
    sales_items_in = item
    sales_items_inx = itemx
    sales_schedules_in = lt_schedules_in
    sales_schedules_inx = lt_schedules_inx
    sales_partners = partner.
    Check the return table.
    LOOP AT return WHERE type = 'E' OR type = 'A'.
    EXIT.
    ENDLOOP.
    IF sy-subrc = 0.
    WRITE: / 'Error in creating document'.
    ELSE.
    WRITE: / 'Document ', v_vbeln, ' created'.
    ENDIF.
    but its giving 'Error in creating document' I m unable to figure wat i m missing . Is it tht i m gving wrong parameters.
    Please help !!!

    Does tht mean i need to add the following code
    Line item number.
    item-itm_number = '000010'.
    itemx-itm_number = 'X'.
    Material
    item-material = p_matnr.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
    For second item.
    Line item number.
    item-itm_number = '000020'.
    itemx-itm_number = 'X'.
    Material
    item-material = '600020001'.
    itemx-material = 'X'.
    Plant
    item-plant    = p_plant.
    itemx-plant   = 'X'.
    Quantity
    item-target_qty = p_menge.
    itemx-target_qty = 'X'.
    APPEND item.
    APPEND itemx.
      Fill schedule lines
    lt_schedules_in-itm_number = '000010'.
    lt_schedules_in-sched_line = '0001'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule lines
    lt_schedules_in-itm_number = '000020'.
    lt_schedules_in-sched_line = '0002'.
    lt_schedules_in-req_qty    = p_menge.
    APPEND lt_schedules_in.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000010'.
    lt_schedules_inx-sched_line  = '0001'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
      Fill schedule line flags
    lt_schedules_inx-itm_number  = '000020'.
    lt_schedules_inx-sched_line  = '0002'.
    lt_schedules_inx-updateflag  = 'X'.
    lt_schedules_inx-req_qty     = 'X'.
    APPEND lt_schedules_inx.
    But i guess it is overwritting my frst material..
    Also i m gettin a error 
    For object rv_beleg, number  range interval doesnot exist
    Pls suggest

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

Maybe you are looking for

  • Voice Memos - visually low decibel level

    Hi all, I just bought a brand new iPhone 5s (coming with iOS 7.0.2) and I'm overall very happy with it. But when I opened the Voice Memos app and tried to record something I got a little bit worried that my mics might not be working properly or hopef

  • Calling a form in a tab from another form in another tab, same page

    I've created a page with three tabs and a different form for each tab, then I've placed a button in each form to call the following form, using this code: htp.formOpen('PORTALORACLE.wwa_app_module.link? p_arg_names=_moduleid&p_arg_values=1544154288&

  • How to merge files in Quicktime 10

    Merging files in QT 7 was so easy. Move the play head of video 1 to the end and then drag/drop video 2 over the video 1 window and save. Easy. How do you merge files in QT 10?

  • I cannot Install a new repository

    please help me. I cannot install a new repository whith Repository 6i. I got the message : CDR- 21244 This process has been aborted. in the cause : The .msg message file 'c:\oracle\orades\repadm61\cdus.msg' for product "CDRMSG61", utility "CDR" could

  • What is the main purpose of aggregates

    hi friends, I need clarification on Aggregates. => why we create aggregates => What will happend in background after creation of aggregate and  the need of switch on/off option.. cheers mohhan