Issue in BAPI_PS_PRECOMMIT in mass creation of WBS Elements

Hi,
I am facing a issue with BAPI_PS_PRECOMMIT.
we have the following WBS Hierarchy:
S - Proj, (level1)
S-XXX WBS Element (level2)
S-XXX-001 WBS Element (level3)
I have created a program for mass creation of WBS elements creation
which uses the following BAPI's
BAPI_PS_INITIALIZATION
BAPI_BUS2054_CREATE_MULTI
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT
The proj: 'S' and the level2 WBS element: 'S-XXX' already exist in the system.
When I run the program for delta load, so as to create the following level3 WBS elements:
S-XXX-001
S-XXX-002
S-XXX-003
The system is throwing the following errors at the BAPI_PS_PRECOMMIT:
1. Final Check of the project definition and WBS elements: Error
2. Validation unsuccessful
Pls help me on this.
Thanks,
Deepak

Check the WBS elements doesn't exist already in your system.
Here is what I coded some days back for deletion of Network Activities, most of the things are same.
You are doing for WBS element.
* Call to initialization BAPI Before Delete
      CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
* Call to Network Activity Deletion BAPI
      CALL FUNCTION 'BAPI_BUS2002_ACT_DELETE_MULTI'
        EXPORTING
          i_number           = t_bapi_activity-network
        TABLES
          it_delete_activity = l_t_del_vornr
          et_return = l_t_bapiret2.
      DELETE l_t_bapiret2 WHERE type <> 'E'.
      READ TABLE l_t_bapiret2 INDEX 1.
      IF sy-subrc EQ 0.                                      "If error in Deletion
        MOVE: f_idoc_contrl-docnum TO t_idoc_status-docnum,
              l_t_bapiret2-type TO t_idoc_status-msgty,
              'CNIF_PI' TO t_idoc_status-msgid,
              l_t_bapiret2-number TO t_idoc_status-msgno,
              l_t_bapiret2-message TO t_idoc_status-msgv1.
              MOVE c_idoc_status_error TO t_idoc_status-status.
              APPEND t_idoc_status.
              ROLLBACK WORK.
              EXIT.
      ELSE.                                                  "If Delete is successful COMMIT
* Call to PreCOMMIT BAPI
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
         TABLES
           ET_RETURN       = l_t_bapiret3.
* Call COMMIT BAPI
*        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      ENDIF.
The other solution is use BAPI_PROJECT_MAINTAIN.

Similar Messages

  • BAPI for Production order creation against wbs element

    dear all,
    I am using BAPI (BAPI_PRODORD_CREATE) for Production order creation against wbs element.I am putting following input paramters in this
    material no,
    order type
    plant
    qty
    basic start dt & end dt
    wbs
    But during GRN it is not taking the account assignment as project stock i.e. its picking movement type 101 but it should be 101Q.
    For this what changes are required.
    regards
    ravi arora

    Hi,
    2 options i can think of:
    1. Create a BDC program by recording co10
    2. Create a planned order with order type PR using BAPI_PLANNEDORDER_CREATE, specify the WBS element & other details. Now use BAPI_PRODORD_CREATE_FROM_PLORD to create a production order with reference to the planned order created earlier.
    I believe option 2 should meet your need. Check & revert.
    Regards,
    Vivek

  • Mass change in WBS element

    Hi friends,
    I want to use Mass change in WBS element for the Partner field in the Partner tab page. But when I am into the mass change screen, there is no option for this Partner field. What can be done for this? Please suggest.
    regards
    Pratap

    Hi,
    The Partner tab in project is visible only after assigning the Partner Schemas to the project profile in PartnDet.Proc field.
    I think Mass change can be done only to the fields that are already maintained by default.
    Thanks,
    Muzamil

  • Issue in Program for mass creation of customer plans.

    Hello all,
    I am working on a program which helps mass creation of customer plans. My code works well, when no planning account is assigned,  but when I pass the planning account value into the Function module, it gives me an error saying ' Account cannot be displayed, please check your authorizations'. I donot have this problem, when I manually createthe customer plan in the CRM_UI.
    Please let me know the possible cause for this kind of message.
    Thanks,
    Disha.

    Hi Dishaa,
    I'm afraid that I don't have any other clues. Most often it is a difference in user. If you are absolutely sure that you are using the same user at the exact moment the authorization is checked it cannot be that.
    Kinda curious now what the solution to your problem is....
    Best regards,
    Guus
    Edited by: Guus Jansen on Feb 14, 2011 1:32 PM

  • During creation of WBS element How to pass ACCount Assignment field as blnk

    Hi Experts,
    I am  creating of WBS element by using BAPI   ''BAPI_BUS2054_CREATE_MULTI'' .
    during creation, passed the ACCount Assignment field  as blank.
    but when i check that WBS in CJ20n that ACCount Assignment field in coming as checked.    Please suggest me how to pass this field as blank.
    Thanks
    Susant
    Edited by: Susanta22 on May 9, 2011 6:08 PM

    I have same issue. how you resolved it.

  • Creation of WBS Element Hierarchy

    Hi Friends,
    I have input file like the below(1 Project definition and n WBS elements)
    Project Definition     WBS Element
    HE-000200     
                         HE-000200.01
                         HE-000200.01.00001
                         HE-000200.01.00002
                         HE-000200.02
                         HE-000200.02.00001
                         HE-000200.02.00002
                         HE-000200.03
                         HE-000200.03.00001
                         HE-000200.03.00002
                         HE-000200.04
                         HE-000200.04.00001
                         HE-000200.04.00002
    I created Project Definition HE-000200 by using BAPI_BUS2001_create.
    Now I want to create above WBS elements hierarchy for the above project.
    I am using the BAPI_BUS2054_create_multi.
    is it possitble to create wbs elemnents like the baove hierarchy by using BAPI_BUS2054_create_multi? if yes send me the code , it will help to me.
    !!!!! IT is very urgent.
    Waiting for your inputs
    Regards,

    Hi Raju,
    See this .,.,this might help u.,.,
    *& Include ZBAPIWBS
    *& Report Z_BAPI_CJ20N
    REPORT Z_BAPI_CJ20N.
    INCLUDE ZBAPICJ20NTOP.
    INCLUDE ZBAPICJ20NFILEUP.
    INCLUDE ZBAPICJ20NLOGIC.
    *& Include ZBAPICJ20NTOP
    DATA: BEGIN OF ITMAIN OCCURS 0,
    PROJECT_DEFINITION TYPE PS_PSPID,
    DESCRIPTION TYPE PS_POST1,
    PROJECT_PROFILE TYPE PROFIDPROJ,
    BUS_AREA TYPE GSBER,
    WBS_ELEMENT TYPE PS_POSID,
    WBS_DESCRIPTION TYPE PS_POST1,
    END OF ITMAIN,WA_MAIN LIKE LINE OF ITMAIN,ITWBS LIKE STANDARD
    TABLE OF ITMAIN WITH HEADER LINE, ITMAIN2 LIKE STANDARD TABLE OF
    ITMAIN.
    DATA: ITPRJDEF TYPE STANDARD TABLE OF BAPI_PROJECT_DEFINITION WITH
    HEADER LINE,WA_PRJDEF LIKE LINE OF ITPRJDEF.
    DATA: ITPRJDEFUP TYPE STANDARD TABLE OF BAPI_PROJECT_DEFINITION_UP WITH
    HEADER LINE, WA_PRJDEFUP LIKE LINE OF ITPRJDEFUP.
    DATA: ITMETPRJ TYPE STANDARD TABLE OF BAPI_METHOD_PROJECT,
    WA_METPRJ LIKE LINE OF ITMETPRJ.
    DATA: RETURN TYPE BAPIRETURN1,MSG TYPE STANDARD TABLE OF
    BAPI_METH_MESSAGE WITH HEADER LINE.
    DATA: LINES TYPE I,REFNO TYPE I VALUE 0.
    DESCRIBE TABLE ITMAIN LINES LINES.
    DATA: METTYPE TYPE STRING VALUE 'Create'.
    DATA: WA_DUPLI LIKE LINE OF ITMAIN.
    WA_DUPLI-PROJECT_DEFINITION = 'JB'.
    DATA: SPLIT1(50) TYPE C.
    DATA: PREVWBS TYPE PS_POSID VALUE ' ',
    LEFTWBS TYPE PS_POSID VALUE ' '.
    DATA: POS TYPE I VALUE 1.
    DATA: OFF TYPE I VALUE 0,MODE TYPE I,INDEX1 TYPE I VALUE 0,
    INDEX2 TYPE I VALUE 0,INDEX3 TYPE I VALUE 0,
    INDEX4 TYPE I VALUE 0,INDEX5 TYPE I VALUE 0,
    POS2 TYPE I VALUE 0,FLAG TYPE I VALUE 0.
    DATA: ITBUS TYPE STANDARD TABLE OF BAPI_BUS2054_NEW,
    WA_BUS LIKE LINE OF ITBUS, RET TYPE STANDARD TABLE OF BAPIRET2,
    WA_RET LIKE LINE OF RET, ITBUS2 LIKE STANDARD TABLE OF BAPI_BUS2054_NEW,
    WA_BUS2 LIKE LINE OF ITBUS, WA_BUS3 LIKE LINE OF ITBUS.
    DATA: BAPIRET TYPE BAPIRETURN1,
    PROJEX TYPE BAPI_PROJECT_DEFINITION_EX.
    *& Include ZBAPICJ20NFILEUP
    CALL FUNCTION 'UPLOAD'
    EXPORTING
    FILENAME = ' '
    FILETYPE = 'DAT'
    TABLES
    DATA_TAB = ITMAIN .
    *& Include ZBAPICJ20NLOGIC
    SORT ITMAIN BY PROJECT_DEFINITION WBS_ELEMENT.
    LOOP AT ITMAIN INTO WA_MAIN.
    IF WA_DUPLI-PROJECT_DEFINITION <> WA_MAIN-PROJECT_DEFINITION.
    WA_PRJDEF-PROJECT_DEFINITION = WA_MAIN-PROJECT_DEFINITION.
    WA_PRJDEF-DESCRIPTION = WA_MAIN-DESCRIPTION.
    WA_PRJDEF-PROJECT_PROFILE = WA_MAIN-PROJECT_PROFILE.
    WA_PRJDEF-BUS_AREA = WA_MAIN-BUS_AREA.
    WA_PRJDEFUP-PROJECT_DEFINITION = 'X'.
    WA_PRJDEFUP-DESCRIPTION = 'X'.
    WA_PRJDEFUP-PROJECT_PROFILE = 'X'.
    WA_PRJDEFUP-BUS_AREA = 'X'.
    WA_METPRJ-REFNUMBER = REFNO + 1 .
    WA_METPRJ-OBJECTTYPE = 'ProjectDefinition'.
    WA_METPRJ-METHOD = METTYPE.
    WA_METPRJ-OBJECTKEY = WA_MAIN-PROJECT_DEFINITION.
    APPEND WA_METPRJ TO ITMETPRJ.
    WA_METPRJ-REFNUMBER = ''.
    WA_METPRJ-OBJECTTYPE = ''.
    WA_METPRJ-METHOD = 'Save'.
    WA_METPRJ-OBJECTKEY = ''.
    APPEND WA_METPRJ TO ITMETPRJ.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
    EXPORTING
    I_PROJECT_DEFINITION = WA_PRJDEF
    I_PROJECT_DEFINITION_UPD = WA_PRJDEFUP
    IMPORTING
    RETURN = RETURN
    TABLES
    I_METHOD_PROJECT = ITMETPRJ
    E_MESSAGE_TABLE = MSG.
    IF SY-SUBRC = 0.
    FLAG = 1.
    ENDIF.
    WA_DUPLI-PROJECT_DEFINITION = WA_MAIN-PROJECT_DEFINITION.
    COMMIT WORK.
    DELETE ITMETPRJ FROM 1 TO 2.
    INCLUDE ZBAPIWBS_ALL.
    ENDIF.
    ENDLOOP.
    *& Include ZBAPIWBS_ALL
    LOOP AT ITMAIN INTO WA_MAIN WHERE PROJECT_DEFINITION = WA_DUPLI-PROJECT_DEFINITION.
    APPEND WA_MAIN TO ITWBS.
    ENDLOOP.
    *Sort the table
    LOOP AT ITWBS INTO WA_MAIN.
    SPLIT1 = WA_MAIN-WBS_ELEMENT.
    POS = 0.
    LOOP AT ITWBS WHERE WBS_ELEMENT <> SPLIT1.
    IF STRLEN( ITWBS-WBS_ELEMENT ) = STRLEN( SPLIT1 ).
    IF POS = 0.
    APPEND WA_MAIN TO ITMAIN2.
    ENDIF.
    APPEND ITWBS TO ITMAIN2.
    DELETE ITWBS WHERE WBS_ELEMENT EQ ITWBS-WBS_ELEMENT.
    POS = 1.
    ELSE.
    IF POS = 0.
    APPEND WA_MAIN TO ITMAIN2.
    DELETE ITWBS WHERE WBS_ELEMENT EQ WA_MAIN.
    ENDIF.
    POS = 1.
    ENDIF.
    ENDLOOP.
    INDEX1 = INDEX1 + 1.
    ENDLOOP.
    *Define UP element
    LOOP AT ITMAIN2 INTO WA_MAIN.
    WA_BUS-WBS_ELEMENT = WA_MAIN-WBS_ELEMENT.
    WA_BUS-DESCRIPTION = WA_MAIN-WBS_DESCRIPTION.
    WA_BUS-WBS_UP = ''.
    WA_BUS-WBS_LEFT = ''.
    SPLIT1 = WA_MAIN-WBS_ELEMENT.
    LOOP AT ITMAIN2 INTO WA_MAIN WHERE WBS_ELEMENT <> SPLIT1.
    IF STRLEN( WA_MAIN-WBS_ELEMENT ) < STRLEN( SPLIT1 ) .
    FIND WA_MAIN-WBS_ELEMENT IN SPLIT1.
    IF SY-SUBRC = 0.
    WA_BUS-WBS_UP = WA_MAIN-WBS_ELEMENT.
    PREVWBS = WA_MAIN-WBS_ELEMENT.
    ENDIF.
    ENDIF.
    ENDLOOP.
    APPEND WA_BUS TO ITBUS.
    INDEX2 = INDEX2 + 1.
    ENDLOOP.
    PREVWBS = ''.
    LEFTWBS = ''.
    Define LEFT ELEMENT.
    LOOP AT ITMAIN2 INTO WA_MAIN.
    POS = 0.
    SPLIT1 = WA_MAIN-WBS_ELEMENT.
    READ TABLE ITBUS INTO WA_BUS2 WITH KEY WBS_ELEMENT = WA_MAIN-WBS_ELEMENT.
    WA_BUS-WBS_ELEMENT = SPLIT1.
    WA_BUS-DESCRIPTION = WA_MAIN-WBS_DESCRIPTION.
    WA_BUS-WBS_UP = WA_BUS2-WBS_UP.
    OFF = SY-TABIX.
    LOOP AT ITMAIN2 INTO WA_MAIN WHERE WBS_ELEMENT <> SPLIT1.
    READ TABLE ITBUS INTO WA_BUS3 WITH KEY WBS_ELEMENT = WA_MAIN-WBS_ELEMENT.
    IF STRLEN( WA_BUS2-WBS_ELEMENT ) = STRLEN( WA_BUS3-WBS_ELEMENT ) AND
    WA_BUS2-WBS_UP = WA_BUS3-WBS_UP AND POS = 0.
    IF STRLEN( LEFTWBS ) <> STRLEN( SPLIT1 ).
    LEFTWBS = ''.
    ENDIF.
    IF STRLEN( LEFTWBS ) = STRLEN( SPLIT1 ).
    FIND WA_BUS2-WBS_UP IN LEFTWBS.
    IF SY-SUBRC <> 0.
    LEFTWBS = ''.
    ENDIF.
    ENDIF.
    WA_BUS-WBS_LEFT = LEFTWBS.
    LEFTWBS = SPLIT1.
    POS = 1.
    MODIFY ITBUS INDEX OFF FROM WA_BUS.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    WA_BUS-WBS_ELEMENT = ''.
    APPEND WA_BUS TO ITBUS.
    Store WBS ELEMENTS.
    LOOP AT ITBUS INTO WA_BUS.
    SPLIT1 = WA_BUS-WBS_ELEMENT.
    APPEND WA_BUS TO ITBUS2.
    INDEX3 = 1.
    POS = 0.
    LOOP AT ITBUS INTO WA_BUS WHERE WBS_ELEMENT <> SPLIT1.
    IF STRLEN( WA_BUS-WBS_ELEMENT ) <> STRLEN( SPLIT1 ) AND POS = 0.
    POS = 1.
    INDEX4 = INDEX3.
    CALL FUNCTION 'BAPI_PS_INITIALIZATION' .
    CALL FUNCTION 'BAPI_BUS2054_CREATE_MULTI'
    EXPORTING
    I_PROJECT_DEFINITION = WA_DUPLI-PROJECT_DEFINITION
    TABLES
    IT_WBS_ELEMENT = ITBUS2
    ET_RETURN = RET .
    CALL FUNCTION 'BAPI_PS_PRECOMMIT'
    TABLES
    ET_RETURN = RET.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = WA_RET.
    ENDIF.
    APPEND WA_BUS TO ITBUS2.
    INDEX3 = INDEX3 + 1.
    ENDLOOP.
    DELETE ITBUS2 FROM 1 TO INDEX3.
    DELETE ITBUS FROM 1 TO INDEX4.
    ENDLOOP.
    DELETE ITWBS FROM 1 TO INDEX1.
    CLEAR ITWBS.
    DELETE ITMAIN2 FROM 1 TO INDEX2.
    *At the end of all projects' processing
    IF FLAG = 1.
    CALL FUNCTION 'POPUP_FOR_INTERACTION'
    EXPORTING
    HEADLINE = 'PS Project & WBS Creation'
    TEXT1 = 'All the Projects have been created.Please check......'
    TICON = 'I'
    BUTTON_1 = 'OK'.
    ELSE.
    CALL FUNCTION 'POPUP_FOR_INTERACTION'
    EXPORTING
    HEADLINE = 'Deb Program'
    TEXT1 = 'No Projects were created...'
    TICON = 'I'
    BUTTON_1 = 'CANCEL'
    ENDIF.
    Regards
    Deb

  • Automatically PO creation from WBS element in a project

    Hi,
    Is it possible to create Purchase Order automatically from the project that has only WBS element (no network)?
    My project has only WBS element and my client want to trigger PO creation automatically for prorements to projects.
    I appreciate your replies.
    Regards,
    Ja

    Hi Ja,
    Sorry, but you cannot create a PO automatically for a project that has only WBS elements and no network or acitivites. Since materials can only be attached to activities in a project it is mandatory to have an activity to trigger a PO automatically from the project.
    You may have to create a PO manually and then assign the WBS as account assignment.
    Regards,
    Gokul

  • Creation of WBS Element in level 2 for transation CJ01.

    Hello All,
    I am able to create WBS element for only one level for the transaction Cj01 through BAPI "BAPI_BUS2054_CREATE_MULTI"
    Can anybody tell me how to create the WBS element in the level 2 below the first WBS element.
    Thanks,

    Hi
    Check the link:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417800)ID0451304650DB10061726740868935361End?blog=/pub/wlg/9659
    Regards,
    Sreeram

  • PR creation with WBS element

    Hi,
    I have a requirement in which I assign WBS element to sales order and later on when I run MRP for this materials it does not generate requirement for WBS element BUT generate requirement for general stock. could any body please suggest how to integrate the same. What are the setting need to be done in projects also to get this.
    regards
    Raj

    Hi,
    Are you looking for the option like, when you are running the MRP for stock items, PR should generate wrt to Project WBS Element not for plant stock.
    Regards
    N.Raju

  • While creation of wbs element system show ticks on Acc Asgn & Planning elem

    Dear All,
    In CJ20N Tcode i am creating Project Defn. & WBS Elements.
    I needed such functionality like when i enter TCode CJ20N & creating WBS Elements then, system should show the Ticks on Planning Element & Account Assignment Element which must appear on selecting the main screen of the WBS.
    Presently we have done it thru substitution. Thru this we are getting the result, but it is only after saving the WBS.

    Only way I can see the Planning element checked before saving is going to Edit - Validation/Substitution - Substituion...in CJ20N and the check box gets ticked before saving. Again its using the functionality of Substituion only but you can see the check box ticked before saving.
    Hope it helps.
    Arya

  • Sales Order creation with WBS Element

    Hi Friends,
       I tried to create a sales order with each line item being associated with a WBS Element based on the material. But when i try to save the document its throwing an error saying that 'WBS element <elt_name> is not a billing element'. What does this mean?
    Prompt replies would be rewarded.
    Thanks in advance.
    Tamilarasan.

    Hi Tamilarasan,
    You must select the checkbox of "Billing element" in the frame "Operative indicators". If you don't see this check box, you must display it from SPRO PS customizing => Define field selection for WBS structures.
    Regards

  • Internal order creation for wbs element

    hi
    I want to settle internal order for wbs element ,but while creating internal order in KO01,required Order type type not appearing mean in my company wbs element required for order type PS01,Category -20(network),so for this 20 cat. where should i create internal order.please advise me
    thanks
    chandu

    Hi,
    you can't use the order type related to category is 20, because it will use full only PS. you can create the internal order with category 10 and maintain the settlement rule said that to be settled at WBS element.
    Thanks and Regards
    Nagaraju SSV

  • Issue in settlement of sub orders to WBS Element

    Hi Team,
    Request your help in getting the below issue resolved:
    Our client would like to have the sub order cost details to be settled to the superior order settlement reciever (In our case it is WBS). So we have changed the configuration in the Distribution rule in SPRO to "DIstribution Rule from Main Order". With this change the WBS Settlement receiver is getting populated automatically during release of the sub order. But when we are trying to do the settlement in KO88 we get a message that "Either the order is settled or there is nothing to settle". Please let us know incase of any setting being missed out.
    Thanks for your help in advance
    Regards.
    Priya

    by moving thread to  forum http://scn.sap.com/community/erp/project-systems or http://scn.sap.com/community/eam may generate favourable replies.
    Thanks
    Ritesh

  • Mass creation of Cost elements

    Hello SAPians,
    I am having a issue related to cost elements.
    please find the detials below.
    I need to add new cost elements(may be something like 100 accounts) in cost element groups(KAH2)
    I tried with LSMW session but there is no use of it.
    can anyone please let me know if there is any other way in changing the cost element group for adding these new cost elements.
    I appreciate oyur quick response.
    Thanks in advance
    Regards

    Hello All,
    @ Eli:Can you please let me know how can we proceed further in SE16N,I am confused with that screen.
    please let me know the fields like table and the fields which need to be taken care.Thanks for your support
    @ Divraj:Accounts are not in a particular order and they are very huge in number like few 100's-800's
    @Sangram:can you please let me know if it is accepted in SAP terms for updating using the Program for these 800 accounts or so.
    please let me know if there is any other option in doing.
    Thanks for your valuable time.
    Regards

  • Multiple milestone creation issue for WBS element  'BAPI_PROJECT_MAINTAIN'?

    Hi all,
    I am using 'BAPI_PROJECT_MAINTAIN' to  create Project definition,WBS element & milestone for WBS at once.
    The program is working fine if one wbs element have one milestone.
    But If any of the WBS elements have more than one milestone, the milestones are not creating properly.
    The bottom level WBS milestones are creating for some higher level  WBS. some milestones are not at all
    creating. I am not getting any error message.
    Code for mile stone section is :
    **fill milsestone data for WBS in BAPI structures
            lv_mlstno = lv_mlstno + 1.
            it_wbsmilestone-milestone_number = lv_mlstno.
            it_wbsmilestone-wbs_element  = it_wbsdata-ID.
            it_wbsmilestone-milestone_usage = it_wbsdata-mlstn.
            concatenate it_wbsdata-edatu+6(4) it_wbsdata-edatu+3(2) it_wbsdata-edatu(2) into it_wbsmilestone-FIXED_MILESTONE_DATE_BASIC.
            it_wbsmilestone-SALES_DOC_DATE_INIDICATOR = it_wbsdata-faktp.
            it_wbsmilestone-INVOICE_PERCENTAGE   = it_wbsdata-fproz.
            append it_wbsmilestone.
            clear it_wbsmilestone.
    **fill milsestone data for WBS in BAPI update structures
            it_wbsmilestoneupd-milestone_number = cs_x.
            it_wbsmilestoneupd-wbs_element  = cs_x.
            it_wbsmilestoneupd-wbs_element  = cs_x.
            it_wbsmilestoneupd-milestone_usage = cs_x.
            it_wbsmilestoneUPD-FIXED_MILESTONE_DATE_BASIC = cs_x.
            it_wbsmilestoneupd-SALES_DOC_DATE_INIDICATOR = cs_x.
            it_wbsmilestoneupd-INVOICE_PERCENTAGE   = cs_x.
            append it_wbsmilestoneUPD.
            clear it_wbsmilestoneUPD.
    **Fill bapi table method project1 for the creation of WBS milestone
    **milestone will be created only after the creation of WBS elements first
    **lv_refnum is  the link to wbs element, which is already appened to it_methodproject
              it_methodproject-refnumber   = lv_refnum.
              it_methodproject-objecttype  = 'WBS Milestone'.
              it_methodproject-method      = 'Create'.
              append it_methodproject.
              clear it_methodproject.
          endif.
    How to resolve the issue?
    Please help.
    Thanks,
    vamshi

    Hi Ravi,
    Thanks for your continuous reply.
    The problem is solved.
    I  have passed the, reference number of WBS element  creation to milestone creation  in the 'Method' table.
    Thatswhy it is picking wrongly.
    I have corrected this by passing different reference numbers to WBS and milestone creations
    based on their tables.
    Thanks,
    Vamshi

Maybe you are looking for

  • Problem with Flash in a Hide/Show Div Tag

    What is the best way to handle Flash files on an HTML page within a <div> tag you hide and show (via javascript). It seems to reload when you hide and then show the <div> tag when using display: block. Positioning instead (move offscreen)? Visibility

  • My iPod mini is not appearing in iTunes or windows explorer.

    My iPod is not appearing in iTunes or explorer. Only when I go to hardware manager windows admits that there is something that is not installed properly. But when I start the hardware manager and put in the CD, as required by the hardware assistant i

  • TipTab.exe file access error

    I have been filling out IRS forms using their online pdf files, running in Adobe Reader XI in laptop mode on my Dell XPS 12 laptop. Each time I use the mouse or touch pad to move to a new line I get the following file access error (no error if I tab

  • Photo Files Everywhere

    Why are some of my photo files in Modified, others in Original and yet more in Data folders of iPhoto? They appear to be all over the place. On top of that I have thumbnails that are viewable but the picture is missing. This is happening on about 10%

  • Report Queue Managers Admin Password

    Hi ! In Report queue Manager, what is the username & password for Admin ?. I want to delete a particular job in queue manager need help ... regards