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

Similar Messages

  • Creating inbound Sales Orders IDOC within SAP

    Hi,
    I receive a flat file containing sales order information. I would like to create inbound Sales Order IDOCs from this flat file. I know I can use BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders however I would like to retain the benefits of IDOCs e.g. error retention and re-processing.
    There are a number of functions MASTERIDOC_CREATE* to create various IDOCs but I can't seem to find one for message type ORDERS. I know I can create a 'Z' version but would like to avoid that as much as possible as development budget is tight.
    Any help would be greatly appreciated in the form of reward points.
    Thanks and regards,
    Liam

    Hi,
    Can u tell me the steps to create a sales order using idoc, i've created a bapi but thats a temprory use. I wanted to created a sales order automatically when a purchase order is saved.
    Please let me know if u can help me, i wanted to do it using idoc
    Regards
    Sanju

  • No batch input data for screen SAPMSSY3 0131 in Sales order IDOC

    I am processing Sales order IDOCS in status 64 using RBDAPP01 .Some of them error out to status 51 with the message -
    No batch input data for screen SAPMSSY3 0131 .
    I know the standard IDOC inbound process tries to simulate the posting in a BDC like process.
    Now, I went to we19 and the screen hangs up in a pop up in the partners tab with partner type 'WE' and my shipto (which is actually filled in the IDOC), missing..upon repeatedly hitting enter, it goes thru and an idoc is posted in status 53. But still unable to get through the root of this issue.
    Any, insight will help.

    Hi,
    I think the pop-up is generated through and user-exit for which recording is missing. This is why your idoc stays in status 64...
    Handle the screen recording in the user exit IDOC_INPUT_ORDERS
    user exit routine
    PERFORM customer_function_dynpro.
    FORM CUSTOMER_FUNCTION_DYNPRO.
      CALL CUSTOMER-FUNCTION '002'
        EXPORTING DXVBAK   = XVBAK
                  DVTCOMAG = VTCOMAG
                  DLAST_DYNPRO = LAST_DYNPRO
                  DXMESCOD = IDOC_CONTRL-MESCOD
        TABLES    DXBDCDATA = BDCDATA
                  DXVBAP    = XVBAP
                  DXVBEP    = XVBEP
                  DYVBEP    = YVBEP
                  DXVBADR   = XVBADR
                  DYVBADR   = YVBADR
                  DXVBPA    = XVBPA
                  DXVBUV    = XVBUV
                  DIDOC_DATA = IDOC_DATA
                  DXKOMV    = XKOMV
                  DXVEKP    = XVEKP
                  DYVEKP    = YVEKP
        EXCEPTIONS
                  USER_ERROR = 01.
    Regards,
    Krishnakumar

  • Message No.00088 while posting Inbound Sales Order Idoc.

    Hello Experts,
    I am working on Inbound Interface i.e inbound sales order via Biz talk. When BizTalk send one file contains all sales order related data .
    When it comes to SAP, the Net price for PRICE condition type, getting an error message
    Input must be in the format ___,___,__~.__V
    Message no. 00088
    Diagnosis
    Your entry does not match the specified input format.
    System Response
    The entry in this field was rejected.
    I already checked my User settings everything is ok. When I am manually putting it like 122.32 its working but when its came by file thru inbound interface I am getting the above error.
    The Net price field is KOMV-KBETR.
    Please help me out.
    Waiting for your suggestions.
    Thanks in Advance.
    Dev

    Thanks for your reply.
    Already check that thread & settings.
    Still the error is there.
    Manually its working only when data receive tru IDOC sysytem is throwing same error.

  • 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

  • Inbound Sales Order IDoc ORDERS05

    Hi there,
    I'm using the Idoc ORDERS05 Process Code ORDE to create Sales Order, all the process it's working perfectly. I would like to know if I can fill the header text of the order using the Idoc. The FM that I'm using is IDOC_INPUT_ORDERS
    I have included in the idoc the following segments:
    E1EDKT1                     003 EN   0001      0001
        E1EDKT2                     XXXXXXXXXXXXXXXXX
    but the header text in the order created is empty.
    Any idea about this, thanks in advance.
    Alexis Ramirez

    Hello Alexis
    Below you see part of the XSLT mapping (on SAP-XI) for EDI purchase orders which are mapped to ORDERS.ORDERS05 IDocs (-> sales order).
    I assume that in your case the name of TDOBJNAME (here = 'String') is missing.
                             <E1EDKT1 SEGMENT="1">
                                  <TDID>Z091</TDID>
                                  <TSSPRAS>D</TSSPRAS>
                                  <TSSPRAS_ISO>DE</TSSPRAS_ISO>
                                  <TDOBJECT>VBBK</TDOBJECT>
                                  <TDOBNAME>String</TDOBNAME>
                                  <E1EDKT2 SEGMENT="1">
                                       <TDLINE>
                                            <xsl:if test="../S_UNB/C_S002/D_0004='12345'">
                                                 <xsl:value-of select="S_BGM/D_1004"/>
                                                 <xsl:text>/RY</xsl:text>
                                            </xsl:if>
                                            <xsl:value-of select="S_FTX/C_C108/D_4440"/>
                                       </TDLINE>
                                       <TDFORMAT/>
                                  </E1EDKT2>
                             </E1EDKT1>
    Regards
      Uwe

  • 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

  • Sales Order IDOC creation using IDOC_INPUT_ORDERS

    I am trying to create a Sales order IDOC (Inbound) from a flat file using the FM - IDOC_INPUT_ORDERS .
    I am able to create the sales order. But I don't see the idoc getting generated anywhere.
    I see the import parameter - DOCUMENT_NUMBER coming blank. Why is the IDOC not getting generated ?
    Any tips will be useful ?
    Can we create Inbound SAles Order IDOC using 'MASTER_DISTRIBUTE_IDOC'  FM ?
    THanks.

    Hi Shareen Hegde 
    To create Inbound...idoc
    Use the Function Module in you Program : IDOC_INBOUND_WRITE_TO_DB to create the Inbound idoc
    Pass the Control record and Data record in FM.....
    Use Message type : Orders
    IDoc type : Orders01 or 02 or 03 or 04 or 05 ....  which ever suite for your requirement....
    Process Code : ORDE
    When ever your custom program for creating the inbound sales order with  runs .....
    it call the internally FM IDOC_INPUT_ORDERS to create the Sales order...
    or
    If you are getting the inbound idoc from subsystem .....then check you partner profile ,Message type ed and Process code is correct or not....
    I hope this resolves your issuse..
    Ramesh

  • WBS and Profit Segment fileds should be filled at Sales Order item level

    Hi,
    When i create a Sales order I want to save both PA Segment and WBS Element fields in Account Assignment tab at item level.
    By default Profit.Segment is filled beacuse COPA is already activated in this system, when i try to enter WBS element in Account Assignment Tab at line item level Profit.Segment field grayed out.
    Is it possible to input both the fields WBS element (VBAP-PS_PSP_PNR) and COPA Profitability Segment Number (VBAP-PAOBJNR)
    Thanks,
    Fract

    This is SAP system standar behaviour.
    note # 729381 under item 6:

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

  • When idoc failes for inbound sales orders then how to trigger a mail notifi

    Hi All,
    When idoc failes for inbound sales orders in SAP then i would like to send an email notificaiton to particular user id. Could you please let me know the settings for this requirement.
    Thanks in advance..

    Closing thread as there are no replies

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

  • 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

  • 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

  • Creation of settlement rules for WBS element

    Hi,
    Iam having problem when creating the settlement rules for WBS elements. The business goes like this.
    We have XI interface which creates the Idocs and an inbound program(customized) to process the Idocs. When the Inbound program is run the WBS elements are created and settlement rules are created for the WBS elements. The inbound program is run automatically thru batch job.
    First time when the Idocs are processed about 95% of the WBS elements have settlement rules created and for other 5% settlement rules are not created. The Idoc is in status 64. I tried reprocessing the Idoc and then the settlement rules are getting created succussfully. The problem is Iam not able to find why the Inbound program is not processing succusfully when its run first time but works when reprocessed.
    I appreciate if anyone can send their views.
    Best Regards
    SK

    Hi!
    You might set the processing to check not only once the relevant IDocs, but more times...
    Check out these programs, and set them into a batch job periodically...
    RBDMANI2
    RBDAPP01
    Regards
    Tamá

Maybe you are looking for

  • ITunes 7 gives error message when playing songs off ipod

    Whenever I connect my ipod to my computer and use itunes to play songs from it...it gives me the following message whenever a song plays. "iPod is in use and cannot be updated. The required file is in use." Does anyone know why this would be happenin

  • Ip address not changing

    Hi All I am new to iMac's for about a year now.  I had a question about ip addresses not changing.  I have various devices in the house and when I change wireless networks they automatically update their ip address.  Not so so for the iMac running Yo

  • SAP Servers in different Environment

    Hi, I have a DEV system in AIx Machine I am planning to install a QAS system in HP unix. Please tell me the problems which can occur due to this

  • Repainting JCombobox Cells???

    I am working on an app, and I want to be able to use a JComboBox to get a new snapshot from one of a set of cameras. I have a set of JPanels that show the current image from the camera (they have a refreshing loop that repaints themselves). When I ad

  • OID config question

    Experts for OID, need your help with following: OID will be used to store accounts from a local Active Directory. (sync between AD and OID user accounts) Question: When installing OID, need your suggestions for following entries during OID installati