WBS validation while creation of PO

Hi Experts,
I have a typical scenario.
I am procuring manpower services.
First, I create service master records for all employees available in the HR master records.
In the HR master Data, for each employee there is one WBS element for their Projects. Once project is completed, and new project is assigned, New WBS is assigned.
I am creating the Service POs. I use employee number as the service master number in the PO. While creation of Service PO, I have to enter WBS element.
I want system to validate WBS element entered at the time of PO with WBS element of HR Master record.
Can any body guide me which user exit I have to use here.
Or is there any other solution w/o using exits?
Thank you

Hi,
Check on it:-
Re: check validation of WBS and AGENT at SC level instead of PO creation time.
/thread/1200667 [original link is broken]
Re: Validation in CJ02 while SAVE
pherasath

Similar Messages

  • Error while creation of service entry via BAPI_ENTRYSHEET_CREATE

    Hi All,
    I am struggling while creation of service entry using the BAPI, BAPI_ENTRYSHEET_CREATE. I am getting error ""No account assignment exists for service line 0000000010". I am passing the essr, eskn,eskl, esll structures as-
    Please help sorting out what is the issue in the parameters, I am able to manually create an SER via ML81N though.
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER    = WS_PO
        ITEMS            = 'X'
        SERVICES         = 'X'
      IMPORTING
        PO_HEADER        = WA_PO_HEADER
      TABLES
        PO_ITEMS         = PO_ITEMS
        PO_ITEM_SERVICES = PO_SERVICES
        RETURN           = BAPI_RETURN_PO.
    Entry sheet header
    LOOP AT PO_ITEMS.
      BAPI_ESSR-PO_NUMBER = PO_ITEMS-PO_NUMBER.
      BAPI_ESSR-PO_ITEM   = PO_ITEMS-PO_ITEM.
      BAPI_ESSR-SHORT_TEXT = 'Sample'.
       bapi_essr-acceptance = 'X'.
      BAPI_ESSR-DOC_DATE = SY-DATUM. " wa_po_header-doc_date.
      BAPI_ESSR-POST_DATE = SY-DATUM. "po_items-price_date.
      IF PO_ITEMS-ACCTASSCAT = 'U'.
        BAPI_ESSR-ACCASSCAT = 'K'.
      ELSE.
        BAPI_ESSR-ACCASSCAT = PO_ITEMS-ACCTASSCAT.
      ENDIF.
      BAPI_ESSR-PCKG_NO = PO_ITEMS-PCKG_NO.
      APPEND BAPI_ESSR.
    ENDLOOP.
    LINE_NO = 1.
    SERIAL_NO = 0.
    LOOP AT PO_SERVICES. " WHERE NOT short_text IS INITIAL.
      CLEAR BAPI_ESLL.
      BAPI_ESLL-PCKG_NO = PO_SERVICES-PCKG_NO.
      BAPI_ESLL-LINE_NO = LINE_NO.
      BAPI_ESLL-EXT_LINE = PO_SERVICES-EXT_LINE.
      BAPI_ESLL-OUTL_IND = PO_SERVICES-OUTL_IND.
      BAPI_ESLL-SUBPCKG_NO = PO_SERVICES-SUBPCKG_NO.
      BAPI_ESLL-SERVICE = PO_SERVICES-SERVICE.
      BAPI_ESLL-BASE_UOM = PO_SERVICES-BASE_UOM.
      BAPI_ESLL-UOM_ISO = PO_SERVICES-UOM_ISO.
      BAPI_ESLL-PRICE_UNIT = PO_SERVICES-PRICE_UNIT.
      BAPI_ESLL-FROM_LINE = PO_SERVICES-FROM_LINE.
      BAPI_ESLL-TO_LINE = PO_SERVICES-TO_LINE.
      BAPI_ESLL-SHORT_TEXT = PO_SERVICES-SHORT_TEXT.
      BAPI_ESLL-PLN_PCKG = '2'.
      BAPI_ESLL-PLN_LINE = LINE_NO.
      APPEND BAPI_ESLL.
      LINE_NO = LINE_NO + 1.
    ENDLOOP.
    Now we wanted to create SES based on entered Quantity & NetValue.
    LOOP AT BAPI_ESLL.
      IF BAPI_ESLL-LINE_NO = '2'.
        BAPI_ESLL-QUANTITY = PO_SERVICES-QUANTITY.
        BAPI_ESLL-GR_PRICE = WS_PR. "po_services-gr_price.
        MODIFY BAPI_ESLL INDEX SY-TABIX TRANSPORTING QUANTITY GR_PRICE.
      ENDIF.
    ENDLOOP.
    LOOP AT PO_ITEMS.
      CLEAR BAPI_ESKL.
      BAPI_ESKL-LINE_NO = 2.
      BAPI_ESKL-SERNO_LINE = 1.
      BAPI_ESKL-PERCENTAGE = 100.
      BAPI_ESKL-SERIAL_NO = 1.
      APPEND BAPI_ESKL.
      SERIAL_NO = SERIAL_NO + 1.
      BAPI_ESKN-GL_ACCOUNT = PO_ITEMS-MAT_GRP.
      BAPI_ESKN-PCKG_NO = '2'.
      BAPI_ESKN-SERIAL_NO = SERIAL_NO.
      APPEND BAPI_ESKN.
    ENDLOOP.
    CALL FUNCTION 'BAPI_ENTRYSHEET_CREATE'
      EXPORTING
        ENTRYSHEETHEADER            = BAPI_ESSR
        TESTRUN                     = ''
      IMPORTING
        ENTRYSHEET                  = WS_ENTRYSHEET_NO
      TABLES
        ENTRYSHEETACCOUNTASSIGNMENT = BAPI_ESKN
        ENTRYSHEETSERVICES          = BAPI_ESLL
        ENTRYSHEETSRVACCASSVALUES   = BAPI_ESKL
        RETURN                      = I_RETURN.
    Thanks!!

    The issue resolved now by passing the following parameters-
    EntrySheet header-
    BAPI_ESSR-PO_NUMBER = PO_NUMBER.
    BAPI_ESSR-PO_ITEM   = PO_ITEM.
    BAPI_ESSR-SHORT_TEXT = as entered by user
    BAPI_ESSR-ACCEPTANCE = u2018Xu2019 or space.
    BAPI_ESSR-DOC_DATE = Todayu2019s date.
    BAPI_ESSR-POST_DATE = Todayu2019s date.
    BAPI_ESSR-PCKG_NO = '0000000001'.
    Entry Sheet Account Assignment-
    BAPI_ESKN-COSTCENTER = Cost Center
    BAPI_ESKN-WBS_ELEMENT = WBS element
    BAPI_ESKN-AUFNR = Order
    Entry Sheet Services-
    Unplanned line-
    BAPI_ESLL-PCKG_NO = '0000000001'.
    BAPI_ESLL-LINE_NO = LINE_NO (000001).
    BAPI_ESLL-EXT_LINE = '0000000000'.
    BAPI_ESLL-OUTL_LEVEL = 0.
    BAPI_ESLL-OUTL_IND = 'X'.
    BAPI_ESLL-SUBPCKG_NO = '0000000002'.
    Planned line-
      BAPI_ESLL-LINE_NO = LINE_NO (000002).
      BAPI_ESLL-PCKG_NO = '0000000002'.
      BAPI_ESLL-SUBPCKG_NO = '0000000000'.
      BAPI_ESLL-EXT_LINE =   '0000000010'.
      BAPI_ESLL-SERVICE = '0000000000'.
      BAPI_ESLL-OUTL_LEVEL = 0.
      BAPI_ESLL-OUTL_IND = ' '.
      BAPI_ESLL-QUANTITY = as entered by user
      BAPI_ESLL-BASE_UOM = PO_SERVICES-BASE_UOM.
      BAPI_ESLL-GR_PRICE = as entered by user
      BAPI_ESLL-PLN_PCKG = '0000000000'.
      BAPI_ESLL-PLN_LINE = '0000000001'.
    Entry Sheet Service access values-
    BAPI_ESKL-LINE_NO = '2'.
    BAPI_ESKL-PCKG_NO = '0000000002'.
    BAPI_ESKL-PERCENTAGE = '100'.
    Thankyou!

  • While creation of a equipment and assignment of personnel number

    Hi
    I have activated partner function to the Equipment catagery.
    While creating equipment using T.code IE01,  I am assigning personnel number to the person responsible partnerfunction.
    After that personnel number getting defaulted to operator field as per config setting.
    I can create equipment and assign person responsible succussfully.
    But at the time of assignment of personnel number with partner function person responsible,  I am getting information messege always like
                     " No customer master record exists for customer 10003511"
    I would request you please suggest how  to "delink the above message" while creation of a new equipment and assigning the personnel number.
    Thanks & Regards
    CHSR

    Hello
    Please check the personal Number is active or exists in HR Master with its validity.Use TC for checking PA20 for checking the same.
    Regards,
    Rakesh

  • What are the mandatory fields while creation of material master in differen

    what are the mandatory fields while creation of material master in different views?

    Hi Gopi,
      This is purely depends on the function configuration, which would be done MM consultants.  Kindly check with them.
    thanks & regards
    Kishore Kumar Maram

  • While Creation Of SaleOrder Char Values are not getting saved.(V C)

    Hi SAP gurus,
    One of my client can able to create a saleorder but when we go and see in VA03 Display mode,we found Charactrestic values getting miised out.What could be the probale reasons.
    Note: I Have stimulate the required combination as per my client requirement in CU50,here i can able to indentify the Green Sign,but While Creation Of SaleOrder Char Values are not getting saved.
    Awaiting for your valuable reply.
    Cheers,
    Kumar.S

    Kumar ,
    If you assign values in classification view or configuration profile  they will become default for the product, and it willnot be changed in sales order.
    another thing if the item category is incorrect you will not get the configuration pop up at all .
    problem what i understand from your thred is at the time of sales ordeer creation there is some inconsistances in the configuration , may be some condition is not fullfilling.
    If in CU50 the result shown are error free, same configuration should owrk properly in sales configuration process, please again try to create it in sales order with same value assignment also check all the messages.
    see the result of configuration before saving the sales order , i hoep it will work for you.
    I am assuming all the things from SD are properly configured ie item catageory, varient pricing etc.
    Check and revert back.
    Regards
    Ritesh

  • Sales order need to be blocked for delivery while creation

    Hi experts,
                    My requirement is to block sales orders for delivery, for the selected distribution channels, and for selected countries while creation itself, so for this I came to known that a program MV45AFZZ include, here in this at which form can I write code to block SO for delivery. and is it enough to put a reason in the field LIFSK in VBAK table to block SO for delivery.
    Thanks in advance
    Regards
    SriNivas........

    Hi,
    You can use form routine USEREXIT_SAVE_DOCUMENT_PREAPRE of user exit MV45AFZZ to update the delivery block.
    MOVE '10' to vbak-lifsk.                    "13 is the reason for block in header"
    MOVE '10' to xvbak-lifsk.                  "13 is the reason for block in header"
    Use following code to update delivery block at item level
    MOVE '10' to vbep-lifsp.                      "13 is the reason for block in item schedule line"
    MOVE '10' to xvbep-lifsp.                    "13 is the reason for block in item schedule line"
    Regards
    Vinod

  • Error while creation of web service model in web dynpro

    Hi,
    I am getting following error "no services available or local server not accessible"  while creation of web service model.
    I have already created my web service nad deployed it. It was deployed successfully.
    In the web service model creation wizard I am not able to see neither my web service nor any other standard service.
    Regards,
    Anubha Pandey

    Are you using the deprecated Web Services model or the new adaptive web services model?
    Take a look in this document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7

  • Access is denied  while creation hfm classic application in workspace

    access is denied while creation hfm classic application in workspace. i have given full roles and access to my admin user. still i am facing same issue.
    i am trying to create classic application workspace under
    Access is denied.
    Access is denied.
    Show Details:
    Error Reference Number: {401A779B-3846-4645-852B-D036AF74C7DA}
    Num: 0x80070005;Type: 1;DTime: 9/26/2008 7:10:10 PM;Svr: KOTHRUD;File: CHsxClient.cpp;Line: 1087;Ver: 9.3.1.0.1502;
    Num: 0x80070005;Type: 1;DTime: 9/26/2008 7:10:10 PM;Svr: KOTHRUD;File: CHsxClient.cpp;Line: 768;Ver: 9.3.1.0.1502;
    Num: 0x80070005;Type: 0;DTime: 9/26/2008 7:10:10 PM;Svr: KOTHRUD;File: CHsxClient.cpp;Line: 3430;Ver: 9.3.1.0.1502;
    Num: 0x80070005;Type: 0;DTime: 9/26/2008 7:10:10 PM;Svr: KOTHRUD;File: CHFMwManageApplications.cpp;Line: 2152;Ver: 9.3.1.0.1502;

    Hello,
    Do you have the HFM ADM drivers installed on the workspace server -- I believe if you do not have those installed then you are going to have some issues.
    Regards,
    -John

  • Error as Enter while creation of PO due to this PO is not created in ME21N

    Hi All,
    I have an issue where one of my user cannot able to create a PO with refernce to Network and he is getting error as ENTER while creation of PO in ME21N and there is no long text for this error.Also user cannot able to create a PO whenever he clicked on save button the only option he got is Hold or Edit or cancel.
    I have asked user to provide the same information (inputs while creation of PO in ME21N) to his colleague and check whether he can able to create a PO successfully or not. User confirmed that his colleague can able to create a PO successfully.
    Please let me know what was the root cause behind this.
    Awaiting for your valauble inputs & quicker reply.
    Note: I have crossverified with technical team and they confim all the required roles are in place for my user.
    BR // Kumar.S

    Hi Jurgen,
    Question from you
    Just message ENTER is pretty unusual. Even if there is no long text, the message should at least have a message number, can you tell this number? In general there should be the field name next to the message.
    Answer from me
    As you have said i have cliked on the error ie ENTERand got the message number as below,
    Enter
    Message no. ME083
    Question from you
    Is there any userexit which may cause this error?
    Answer from me
    According to me know because only one user is having a problem other users can able to create a PO sucuessuflly.
    Question from you
    What happens if a different user enters the PO under the user ID of the user who can only hold the PO?
    What happens if the effected user creates the PO under the user ID of a different user (who is usually able to save POs)?
    Answer from me
    not tried will let u know on this later
    Question from you
    Have you customized a new process, and this user is testing it?
    Answer from me
    No
    Please let me know whether the above my inputs help you to identify the issue where exactly it was.
    BR // Kumar.S

  • How to create a pop up window while creation of the delivery note.

    Hello Experts
    How to create a pop up window while creation of the delivery note.
    As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
    For e.g.
    Str. Loc     Qty      UOM
    DE01        100        KG
    DE99          50        KG

    Dear all,
    i m having two document numbers for invoic of same types such as output type print program and smartform.
    biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
    Directly the cursor comes to initial stage of vf03.
    suggest what to do
    Thanks and regarnds
    ravi

  • Credit Check is not working while creation of the delivery

    Hi,
    Credit check is not performing while creation of the delivery.
    As per current settings, there is no credit check at SO level. Ideally, system should show an error message while creation of the delivery if credit limit of the customer is exceeds.
    Below is the current OVA8 setting for Delivery group 02.
    It was working fine till last week, but due to some unknown changes in customization or master data, same is not working now.
    Could you please check below settings and suggest if any setting is wrong?

    You talking about the reaction field D am talking about beside to reaction field that is status/Block(check) .
    Status/Block(tick) is used to block the document.
    Where as you reaction field is used to give the either warning or error message based input you are giving
    A and C gives warning message and allow to save the document.
    B and D gives error message and will not allow to proceed further
    Please check this and try system will block the delivery.
    thanks,
    Srinu.
    Message was edited by: Srinu S

  • Error Message While creation of SC No commitment item entered in item

    Hi,
    I am creating SC while creation following error message is appearing :-
    No commitment item entered in item 1 10 6534
    Where 10   :Comp code
               6534 : CC
    Is there any thing commitment related missing in SRM ?
    Thanks,
    Sachin

    Hi,
    run TA FS01
    ->  G/L Account        <enter your G/L account>
         Company Code    <enter the company code - i think its 6534 in your example>
         -> Tab "Create/bank/interest"
             -> "COMMITMENT ITEM" <======
    I hope that helps!
    Best regards,
    Georg

  • Error while creation of Service PO

    Hi,
    While creation of service PO I am not able to put Material Text as that column is grayed & system asks me to put material text which is input disabled.
    Procedure I follows to create Service PO as below:
    PO type standard (NB).
    Then I put vendor, Org data & payment terms.
    Then Account assigmnment cat. 'K' (Cost Cetner) & Item Cat. D(Service).
    After that when put enter. Sytsem asks me to enter either material number or material text. But material text coulmn is grayed (Input dusabled). So I am not able to put it because of which I am not able to proceed further & not able to create Service PO.
    Awaiting your reply to solve this problem.
    R/-
    Pradip

    Hi V S,
    Please change the screen layout for respective field selection key for Material description as optional, then you can  edit the text in the material description
    Regards,
    Rao

  • Adding prefix 'E' to BP Number of Role 'Employee' while creation

    Hi,
    I have a requirement wherein I have to add prefix 'E' to the BP Number of Employee role while creation. For this I am using a method 'CHANGE_BEFORE_UPDATE' of BADI 'PARTNER_UPDATE'. I am pasting the code below. While debugging, I am checking the value in internal table 'lt_but000_new' and I can see that prefix 'E' is getting added in BP Partner Number. But, the same is not happening when it is getting saved. Can anyone suggest me what should I do to achieve this functionality.
    method IF_EX_PARTNER_UPDATE~CHANGE_BEFORE_UPDATE.
      DATA: lt_but000_old           TYPE STANDARD TABLE OF but000,
            lt_but000_new           TYPE STANDARD TABLE OF but000,
            ls_but000_new           TYPE but000,
            lv_partner_guid         TYPE bu_partner_guid,
            lv_emp(10)              TYPE C,
            lv_role                 TYPE BOOLE_D,
            ls_role                 TYPE bup_bprole,
            lt_role                 TYPE STANDARD TABLE OF BUP_BPROLE initial size 0.
    business partners ************************************************
      CALL FUNCTION 'BUPA_GENERAL_CALLBACK'
        TABLES
          et_but000_old = lt_but000_old
          et_but000_new = lt_but000_new
        EXCEPTIONS
          OTHERS        = 0.
    CALL FUNCTION 'BUP_BUPA_BPROLES_GET'
    IMPORTING
       E_ROLESET       = lv_role
      TABLES
        T_BPROLES       = lt_role
    READ TABLE lt_role into ls_role with key role = 'BUP003'.
    if sy-subrc = 0.
    LOOP AT lt_but000_new into ls_but000_new.
      SHIFT ls_but000_new-partner LEFT DELETING LEADING 0.
      CONCATENATE 'E' ls_but000_new-partner into lv_emp.
      ls_but000_new-partner = lv_emp.
      MODIFY lt_but000_new from ls_but000_new TRANSPORTING partner.
    ENDLOOP.
    endif.
    endmethod.

    Hi,
    You can do this particular scenario in SPRO settings itself.
    Only thing is you need to check in the SPRO settings in number ranges as well as groupings that you define as external. (Tick the check box present there).
    Number assignment: The business partner number range object is BU_PARTNER. Generally, there are three types of number assignment when business partners are created from the R/3 system.
    01 = This is the internal interval of BU_PARTNER.
    02 = External number assignment, the system uses the number from a specific internal interval of the object.
    03 = The number is transferred from HR and a prefix is added. In this case, a specific external interval, which must be defined as XX00000000 (up to XX99999999), is used (where XX denotes any two letters).
    Any one of the three intervals can be set up for HR integration.
    You can use 02, so that when a business partner is created from employee data, the partner number will be identical to the employee. The value of this interval will equal that of the employee number range interval in R/3.
    Also, not all the business partners will be employees from R/3, there would likely to be external partners of various types under various roles other than Employee (for e.g. u2013 Vendor, Bidder, Sold-To, Ship-To etc). These business partners would be present only in the CRM system, and not in the R/3 system. Thus, we require an internal interval as well to create these business partners on the fly.
    And then this is the exact definition for External number grouping.
    It means that this external grouping is used as the standard grouping.
    The BDT selects this standard grouping if a business partner number was assigned to a business partner when the latter was created, but not a grouping.
    Hope your problem is resolved with this.
    - Venkat

  • Rel. strategy is not triggered while creation of PR with cost centr

    Hi Gurus,
    While creation of PR release strategy is not getting triggered with cost centre BCWSV870. But release strategy of PR triggered for cost centre BCWSV852 (In PR changed only cost centre as BCWSV852 instead of BCWSV870). Both cost centres are similar and the both cost centres are exist in characteristics value in CL20N for the same release strategy.
    My question is why for one cost centre triggers release strategy triggers and for other cost centre release strategy is not triggered. Can you please tell how come this and rewarded for answer this.
    With regards,
    C. Sundar Rajan

    Hi,
    In regard to problematic PR with cost center BCWSV870, was your PR maintained with only one line item? or multiple line items?.  In additions, when defining cost center as part of the release strategy structure, did you enter all cost centers with leading zeros?  Tak a further look into OSS Note 365604 for your further investigation.
    Cheers,
    HT

Maybe you are looking for