Updating WBS element in a sales order

There is application in Project System (PS) module where I am creating the Project using bapi BAPI_PROJECT_MANTAIN and then uploading the budget for the same using bapi KBPP_EXTERN_UPDATE_CO. After this when I am trying to update the sales order to update its WBS element using bapi BAPI_SALESORDER_CHANGE it’s going into short dump. Dump description as follows :
Category               ABAP Programming Error
Runtime Errors         MESSAGE_TYPE_X
ABAP Program           SAPLBPFC
Application Component  FI-FM
Date and Time          17.07.2014 15:11:07
Short text of error message:
System error in : LBPFCFE2 Table:   Report:   Routine: DETERMINE_OBJ_ENQ
_MODE
Long text of error message:
Diagnosis
     An internal error has occurred.
System Response
     Processing will be discontinued.
Procedure
     Contact your system manager.
Technical information about the message:
Message class....... "BP"
Number.............. 005
Variable 1.......... "LBPFCFE2"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... "DETERMINE_OBJ_ENQ_MODE"
Whereas when I am running the bapi BAPI_SALESORDER_CHANGE standalone using se37 with same test data its updating sales order properly.
After debugging the standard bapi I have found out that there is a subroutine determine_obj_enq_mode which is setting the variable u_enq_mode.In our case this variable is blank that’s y its going into dump.I tried hardcoding this variable to 2 then it updates the bapi properly.So will you suggest for the enhancement where we can hardcode this variable or is there any other solution you will suggest.
Thank you

There is application in Project System (PS) module where I am creating the Project using bapi BAPI_PROJECT_MANTAIN and then uploading the budget for the same using bapi KBPP_EXTERN_UPDATE_CO. After this when I am trying to update the sales order to update its WBS element using bapi BAPI_SALESORDER_CHANGE it’s going into short dump. Dump description as follows :
Category               ABAP Programming Error
Runtime Errors         MESSAGE_TYPE_X
ABAP Program           SAPLBPFC
Application Component  FI-FM
Date and Time          17.07.2014 15:11:07
Short text of error message:
System error in : LBPFCFE2 Table:   Report:   Routine: DETERMINE_OBJ_ENQ
_MODE
Long text of error message:
Diagnosis
     An internal error has occurred.
System Response
     Processing will be discontinued.
Procedure
     Contact your system manager.
Technical information about the message:
Message class....... "BP"
Number.............. 005
Variable 1.......... "LBPFCFE2"
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... "DETERMINE_OBJ_ENQ_MODE"
Whereas when I am running the bapi BAPI_SALESORDER_CHANGE standalone using se37 with same test data its updating sales order properly.
After debugging the standard bapi I have found out that there is a subroutine determine_obj_enq_mode which is setting the variable u_enq_mode.In our case this variable is blank that’s y its going into dump.I tried hardcoding this variable to 2 then it updates the bapi properly.So will you suggest for the enhancement where we can hardcode this variable or is there any other solution you will suggest.
Thank you

Similar Messages

  • Segment for WBS element in Inbound Sales Order Idoc

    Hi gurus,
    I am trying to create an inbound idoc for sales order ' VA01'. I need to populate WBS element in the item level under Account Assignment Tab. I am using ORDERS05 basic type. Please help to find which segment to use for WBS element. Waiting for your reply. Please help.
    Regards,
    Satyajit

    Hello,
            As far as I know, there is no Segment / Field definition in ORDERS05 for WBS Element as it is not mandatory information to be filled in order for the Sales Order to be Complete. So, you need to create an Extension of the IDoc Type ORDERS05. For your requirement, here is the Approach I have.
    1. Create an extension for IDoc Type ORDERS05 to ZORDER05 with a Custom Segment Z1EDP01 in which you'll have the Custom Field Name VBAP-PS_PSP_PNR which is the WBS Element field in VBAP Table.
    2. Now, use the Customer Exit EXIT_SAPLVEDA_001 in the Enhancement VEDA0001 in which you can actually populate the Field WBS Element that would be already available in the Inbound IDoc to store it in a Work Area. As you are aware, you'll need to create a Project in CMOD for the same.
    3. Export the same to some MEMORY ID 'XXX'.
    4. Come back to the Selection Program for ORDER05 which is IDOC_INPUT_ORDERS in which you'll find the below CASE Statement.
        CASE xaprau.
              WHEN ' '.
                PERFORM call_va01_new_orders USING ok.
              WHEN 'Q'.
    Aufruf Transaktion Auftragerfassung VA01 mit Bezug auf Angebot
    call transaction Order Entry VA01 with refer to quote number.
                PERFORM call_va01_new_orders_angbt USING ok.
              WHEN 'C'.
    Aufruf Transaktion Auftragerfassung VA01 mit Bezug auf Kontrakt
    call transaction Order Entry VA01 with refer to contract number
                PERFORM call_va01_new_orders_contk USING ok.
              WHEN 'L'.
    5. Now, since our Standard Order Type (VBAK-VBTYP) is 'C',
        we'll have to choose the Subroutine for the 'C' Option.
    6. In this Subroutine, there is another Subroutine va01_dynpro_kopf_kaufmann_kde2 which is for populating Custom Dynpro Fields for the Sales Order. So, we need to choose the same Subroutine inside which we have to Create an Enhancement Implementation.
    7. In this Enhancement Implementation (Implicit), we have to IMPORT the value of the WBS Element which was exported in the Customer Exit.
    8. Check if it is initial. If it is not, then Call the Perform as below.
         IF NOT WA_Z1EDP01 IS INITIAL. "Checking if the Segment
                                                           " is Empty
       PERFORM DYNPRO_SETZEN USING 'COBL-PS_POSID' WA_Z1EDP01-ZZWBSELEMENT.
    ENDIF.
    9. Since the Sales Orders are posting using BDC here, by calling the above Subroutine DYNPRO_xxx, we are appending our Custom Segment / Field value to the BDC_DATA table.
    10. In Step 8, I've given the Notation for Work Area. It will also be applicable when there are multiple Line Items. All you have to do is to EXPORT an Internal Table instead of Work Area and use the same here for each Line Item.
    11. I've given you above procedure because I've worked on similar requirement in which I had to populate the Special Processing Indicator instead of WBS Element.
    Hope it would be helpful for you.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • WBS Field Missing in Sales Order

    Hi,
    I am using ECC 6. I created a Sales order with a line item. I click on the line item and go to Account Assignment Tab. But the WBS field is missing.
    But in the Sales order overview screen i can see the column for WBS element which is in uneditable mode.
    So i am not able to assign the WBS element to the sales order.
    Please suggest.
    Thanks & Regards,
    Kabir

    Similar to this question:
    I need to configure the following scenario in SD:PS:
    Example 1
    Material Code = 123
    Title = Training 1
    Delivery Type = Classroom Learning
    Language = English
    Currency = USD
    Price = 1000
    LU = 24
    Example 2
    Material Code = 123
    Title = Training 2
    Delivery Type = On Demand
    Language = French
    Currency = EUR
    Price = 800
    LU = 16
    I used variant configuration:
    I did the following:
    1. Created a configurable material 123 with material type KMAT
    2. Created a class1 with variant class 300
    3. Created characteristics title, delivery type, language and pricing
    4. Assigned values to each characteristic like titleu2026training 1 & 2, delivery typeu2026Classroom & on-demand and languageu2026.. English & French
    5. Pricing I attachedu2026.Table SDCOM, Field Name VKOND
    6. Dependency is:
    $self.LMSPRICING='CLASSROOM LEARNING ENGLISH',
    $self.LMSPRICING='ON DEMAND ENGLISH',
    $self.LMSPRICING='CLASSROOM LEARNING FRENCH',
    $self.LMSPRICING='ON DEMAND FRENCH'.
    7. Created configuration profile and CU50
    8. Attached characteristics in condition type VK00
    I am in a dilemma. If I activate strategy 25 (MRP 3) in my KMAT material..I get my BOM in the sales order but account assignment field WBS vanishes.
    If I remove stragey 25 I get my WBS in the sales order but my BOM vanishes!
    Any way out

  • WBS with billing element but no Sales Order

    Trying to write a SQ01 query to find WBS with billing element but no sales order assigned.  Can anyone help?

    VBRP is the billing item table, OP is asking about the sales documents.
    Queries for something that does not exist might be tricky. Use the tables/fields mentioned above (not VBRP), but make sure to use LEFT JOIN to VBAP. In this case you'll get blank/initial values in the query when no sales record exist. If you do a regular INNER JOIN then you just won't see the WBS that don't have VBAK/VBAP records.

  • WBS with billing element but no sales order assigned

    Trying to write a SQ01 query to find WBS with billing element but no sales order assigned. Can anyone help?

    Such WBS elements can be identified using CN43N report also using proper filtering criteria.
    Fileting criterias:
    Billing element.
    Order accepted status.

  • Need to update WBS element in Additional data tab of an order

    Hi all,
    I have a custom program -> which creates service order against notification. My program uses BAPI_ALM_ORDER_MAINTAIN to create orders.
    When these order are created - i need to update WBS element in Additioal data(CAUFVD-PSPEL) tab of on order. In which paramenter and how should we pass to acheive this.
    Even i could not go for BDC as the order number at this point is not created.
    Please let me know.
    Thanks
    Senthil

    Dear Senthil,
    See the link, How to use the BAPI BAPI_ALM_ORDER_MAINTAIN.
    Maybe your requirement matching.
    Regards,
    Abbas.

  • Update termination error "Enter WBS element" while confirming Tranfer Order

    Hi Gurus,
    I am getting an update termination "Enter WBS element" while confirming Transfer Order. One thing that i noticed is that this issue is occuring with line items that are having special stock indicator "K".
    Please let me know as to what could be root cause and how could this be avoided.
    Do let me know for any clarification.
    Regards,
    Trishul

    Any suggestions?
    Regards,
    Tanuj Parikh

  • WBS Planned Cost on Sales order

    Hi Ajay and Experts,
    We have created WBS element and assiged on Sales order line item in Account assigt tab (Accont *** cat M and Valuation M).
    Is there any way to get the corresponding Planned cost of WBS on Sales order line item when WBS is assigned.
    Thanks,
    Sudha

    Hi Manoj,
    We are in MTO Scenario but Production order we will settle to Mat itself
    WBS assigning on sales order line item.
    WBS we are using to capture any addtion cost towards paint etc.,
    While calculating the Margin in Sales order we could able to get the Material cost through VPRS but towards the WBS planned cost is missing, so that the Margin is not coreect.
    For this purpose we are planning to bring the WBS planned to to sales order to get the correct Margin.
    Thanks,
    sudha

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am getting the same message.
    How to overcome this problem.
    Khan

    Thanks Karthik & Sandeep........
    Issue got fixed. There was an open Sales order Line because of that line the issue was coming. After cancelling that SO Line, Users were able to update the Item field.
    Regards,
    Khan.
    http://moreapps4u.blogspot.com/

  • Update error in  RV_SALES_DOCUMENT_ADD during Sales order creation

    I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD.
    This error does not occuring always, as I am sometimes able to create a Sales order without getting update error. I am getting the error of all types of Sales orders and even contracts.
    Am I missing any configuration parameters?
    Thanks,
    Chitra

    Yes , I can see the error in ST22.
    While exceuting VA01 (Oder type OR, Entering Sold-to-party, Purchase order NO, Material, Qty, Plant),
    - I get run-time error "Run-time error "GETWA_NOT_ASSIGNED" occurred".
        Analysis of error shows:
         Update terminated in "Update module: RV_SALES_DOCUMENT_ADD"
          Fails in the Read table in one of the form
            Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN"
    The main program was "RSM13000 ". In the source code you have the termination point in
    line 147 (READ TABLE FYVBAP WITH KEY VBAP_KEY.)
    of the (Include) program "LV45UF0V".
    The ABAP's say the functional module is trying to do an 'UPDATE' instead of 'INSERT" in the internal table FYVBAP.
    Thanks,
    Csuman

  • FM for Updating Installation date in Contracts + sales orders Item level

    Hi
    Plesae give any FM for Updating Installation date in Contracts + sales orders Item level for contracts tab.
    Thanks and Regards,
    Vishnuvardhan....

    Have used the billing transaction to set a Default Billing date at time of blling.

  • WBS planned cost in Sales order cost estimate

    HI Experts,
    Can you please help me in below:
    Will it be possible to include WBS planned cost in Sales order cost estimate.
    ETO Scenario
    Creating Project and booking planned cost
    Creating Sales order and assigned the WBS at line item level
    WHen i do the sales order cost estimate it calculating cost from Sales order BOM includeing Chars value for KMAT.
    I want to know if there is any way to include the WBS planned cost also in the sale order cost estimate.
    Can anyonce please provide inputs.
    Thanks,
    Sudha

    Hi Sudha
    Are you saying the WBS Planned cost is in addition to the Sales Order cost estimate? Well, as far as I know, there is no such possibility
    you can use Unit Costing feature in Req Class instead of Quantity Structure Based Costing... Then you can enter whatever items you want
    br, Ajay M

  • Updating wbs element relevant data.

    HI abapers,
    Am new to BAPI concept.I searched in sdn and came to know that  BAPI_BUS2054_CHANGE_MULTI can update WBS elements.
    can anybody provide a piece of sample code to update wbs header and details like actual start date,controlling area using this bapi.
    Thank You.

    How did you solve this problem? I am following the given below approach, and I am receiving the same error.
    Error : 1.) Object WBS Element DS-11-1000-0058.01 could not be changed
    2.) No update flags or extensions were set for WBS Element DS-11-1000-0058.01
      gwa_bapi_bus2054_upd-wbs_element = 'X'.
      gwa_bapi_bus2054_upd-description  = 'X'.
      gwa_bapi_bus2054_upd-responsible_no = 'X'.
      gwa_bapi_bus2054_upd-applicant_no = 'X'.
      gwa_bapi_bus2054_upd-company_code = 'X'.
      gwa_bapi_bus2054_upd-business_area  = 'X'.
      gwa_bapi_bus2054_upd-profit_ctr  = 'X'.
      gwa_bapi_bus2054_upd-proj_type = 'X'.
      gwa_bapi_bus2054_upd-wbs_planning_element = 'X'.
      gwa_bapi_bus2054_upd-wbs_account_assignment_element = 'X'.
    (I have marked all fields with 'X')
      APPEND gwa_bapi_bus2054_upd TO git_bapi_bus2054_upd.
      CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
      CALL FUNCTION 'BAPI_BUS2054_CHANGE_MULTI'
        EXPORTING
          i_project_definition  = p_prj
        TABLES
          it_wbs_element        = git_wbs_element_chg (manually populated)
          it_update_wbs_element = git_bapi_bus2054_upd
          et_return             = et_return.
      READ TABLE et_return INTO ev_ret WITH KEY type = 'E'.
      IF sy-subrc NE '0'.
        CALL FUNCTION 'BAPI_PS_PRECOMMIT'
          TABLES
            et_return = et_return2.
        WAIT UP TO 3 SECONDS.
        CLEAR ev_ret.
        READ TABLE et_return2 INTO ev_ret WITH KEY type = 'E'.
        IF sy-subrc NE '0'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
          WAIT UP TO 3 SECONDS.
        ENDIF.
      ENDIF.
    I don't know what I am doing wrong. Please help!

  • WBS Element ( Billing element ) assignment  at sales order header level

    HI,
    There is provision of assign WBS Element at sales order header as well as item level , If Project WBS Element is assigned for each line item delivery  and stock updating is happening from the project, But WBSE will assign at sales order Header  system will not allowing to create project delivery( moment type 601Q), and stock updation ftom project.
    Please let me know how this will happen ,
    Regards,
    Gangi
    Edited by: Gangi Reddy Botchu on Jul 7, 2008 4:50 PM

    SPRO - SD - Billing - Billing Plan - the first 5 config nodes (Define Billing Plan types / Define Date descriptions / Assign Date categories / Maintain Date Proposals / Assign Billing Plan types to Sales Doc types) are applicable to you.
    this is pretty tranparent for a reference.
    What else is required?

Maybe you are looking for

  • Plant wise stock report

    Dear All, I want get a report from Apr to March of a fiscal year. The report should contain plant wise purchase, consumption, opening stock and closing stock values. How can I get the report. Regards, Venkat

  • Why do I have duplicate App Icons on my new iPod Touch?

    Just got the new 5th gen iPod Touch yesterday and already LOVE it--just couldn't be happier, except for one thing: Installed all of my apps last night, and for some reason there are duplicate icons for three of them--GetGlue, Google+, Google Voice, a

  • How do I get rid of non-latin fonts?

    Hi - Using FontBook I've isolated all the non-latin fonts into one collection. I had Photoshop shut down during this. I deactivated the fonts individually and then did the same to that non-latin collection.  But when I launch Photoshop - all those fo

  • Macbook pro - listen to soundcloud songs? plugins???

    Hello Forum, I ve just taken the plunge and converted from pc - macbook pro - Mountain lion. When I go on my soundcloud account, when you click play for any song, nothing happens??? However, if I boot up my clapped out pc laptop, and do the same ever

  • I need pro applications update 2008-02

    I recently updated several FCP stations with the Pro Applications Update 2008-02, but for some reason it only changed FCP from 6.0.1 to 6.0.4 on one of them. So I retried performing the update, but nothing comes up. Then I tryed manually downloading