GR extraction for Service POs

Hello all,
I am trying to create a custom datasource for extracting GR data for service purchase orders.
I need information such as -
PO number , Service entry sheet number, Service/activity number, acceptance indicator, accept/reject qty, material document number, movement type etc.
I am considering tables -
EKPO, ESLH, ESLL, ESSR and EKBE.
Has anyone worked on such extractor? Could you please share your learnings with me?
What is the best way to achieve this - a join or a function module?
Is delta possible? On what field?
Any clues / information / advice is highly appreciated.
Many thanks in advance!
Regards
Sanjyot

I am posting some sample data. The ESLH packno does not match with ESSR packno.
In below example there are 2 services, out of which only one, 3000000003,  is accepted with ACT_WERT = 10.
EKPO                              
EBELN     EBELP     PACKNO                    
4300000000     10     289271                    
ESLH                              
PACKNO     FPACKNO     HPACKNO     EBELN             EBELP          
289271     289271     289271     4300000000     10          
289272     289271     289271     4300000000     10          
ESLL                              
PACKNO     INTROW     EXTROW     SRVPO          PACKAGE     SUB-PACKNO     ACT_WERT
289271     1     0                    X     289272                       0
289272     2     10     3000000003          0                      10
289272     3     20     3000000002          0                       0
ESSR                              
LBLNI                   PACKNO     EBELN               EBELP          
1000052342          289279     4300000000               10          
EKBE                              
EBELN           EBELP     VGABE     BELNR             BEWTP     LFBNR     
4300000000     10     9     1000052342     D     1000052342     
4300000000     10     1     50000451255     E     1000052342     
WHAT I NEED                               
EBELN              EBELP     LBLNI               SRVPO       ACT_WERT     BELNR     
4300000000     10     1000052342     3000000003     10     50000451255     

Similar Messages

  • Enter Invoice before Service Entry for Service POs?

    Hi,
    I have a question that I am hoping someone can answer.
    As per standard process, in order to enter an invoice for a service PO, the service entry should be posted and accepted.  This is the standard service procurement process, i.e. a 3 way match process for service POs (PO - Service Entry - Invoice).
    We have a request to be able to enter an invoice for a service PO (that will go on block) before entering the service entry sheet; once the service entry sheet is entered and accepted, the invoice should be unblocked and paid.
    Currently, based on our testing in ECC 5.00, the system does NOT allow the user to enter an invoice for a service PO unless:
    1.  the service entry has been posted and accepted in the system (when using GR-IV checked, GR checked); or
    2.  the service PO is created such that the GR is non-valuated (where GR-IV is unchecked):
         a.  GR-IV unchecked
         b.  SR-IV unchecked
         c.  GR checked
         d.  GR non-valuated checked
    In option 2 above, since it is GR non-valuated, as soon as the invoice is posted, the consumption account is hit, and offset by the vendor account (the GR/IR account is not impacted in this scenario).  When the service entry is created and accepted, no accounting postings are made as it is GR non-valuated.  Therefore, it looks very similar to a 2 way match process.
    We also read in SAP Note 1166693 that says an invoice cannot be entered before service entry unless you activate Enterprise Public Sector, however, this conflicts with option 2 mentioned above.
    Has anyone come across a similar requirement, implemented Public sector, option 2 above, or have any other solutions?  Does anyone see any negative impacts with implementing option 2 above?
    Cheers,

    Hi,
    I think you can use this functionality using LIV tolarance key DW ,please explore Spro>MM>LIV>Invoice block>set tolerence limits
    By creating PO IV based you can block invoice till GR is posted, check it
    Thanks
    Diwakar

  • Pricing procedure for service pos

    Hi guys,
    WE have defined two pricing procedures i.e. for domestic and for import.  When we create a service PO, domestic pricing procedure is being populated.  Is this the standard functionality or do we need to use a separate pricing procedure for service POs?  If that is the case, how to do it?
    We are using the same document type and same purchase organisation for purchase order for services and materials
    thanks in advance

    Normaly the std domestic price will work for the service but you have service pricing also,
    for the std service pricing
    SPRO-MM-External service management-Maintain conditon for services
    here you will find the service schema and which will defualt in the service PO
    If want to see the service condtion
    go to PO service tab and click on condition icon at the bottom of the screen and it will show you the service conditon with schema

  • GR for Service POS

    HI i would like to know the GR process for Services pos (standard )
    thank you
    ash

    HI  Ashok,
    During Vendor code creation in T-code XK01 of Purchasing  Data Screen under Control Data TAB the following option to be tick marked are as follows.
    GR - Based Inv.Verif.      to be tick marked
    Srv.Based Inv.Ver           to be tick marked
    then the purchase order creating for that vendor and the PO - Item Detail menu Invoice TAB the following option automatically ticked marked based on the above vendor creation option ticked are as follows.
    GR-Bsd IV
    S.Based IV
    After that PO released, if supply PO - GRN made using T-code MIGO and if service PO - Service Entry Sheet (SES) made using T-code ML81N. Based on the above option tick marked GR process internally made for service PO's.
    Hope, it is very useful for you.  
    Regards,
    K.Rajendran

  • GR Based IV Tick for SERVICE POs

    Hi Friends,
    How can we avoid GR Based IV Tick tht is defaulted by system for SERVICE POs with item category D.
    When i tried to remove this Tick, system given error message, ": Combination of GR/IR Control not allowed for valuated GR"
    I want to remove this GR Based IV Tick for service PO to enable successful automatic removal of invoice blocking for such POs when GR is posted for required balance qty in system after 1st invoice is blocked by system for Price variance.
    in short, how can we have SERVICE PO without GR Based IV Tick ?

    1 ) when we remove GR Tick& GR Based IV Tick,
    If you dont want to post GR and GR Based IV Tick, is required for post the invoice.Practically this combination is not possible.
    2 ) When we tick Non valuated GR & Remove GR Based IV Tick
    .if you want to post GR and you dont want to any accounting document for perticular GR.Remove GR Based IV Tick will help you PO based invoice verfication.

  • Purchase Order data extraction for Service PO

    Hi Experts,
    I am facing problem for extraction of Service Po data .For extractor 2LIS-02_ITM which will give the item details for PO. for the same  I am not geting service Number .
    In ITEM data its show only its service type PO . but not giving service number.
    How to do this ??? plz send reply
    Thanks
    sharad

    Hi Sharad,
    You can enhance the extract structure for 2LIS_02_ITM by adding a new field.
    To populate this field, please try the below logic in user exit code. I am not sure which field you need from ESLL. I am assuming the activity number which is SRVPOS.
    1. Select ESSR-PACKNO into temp where ESSR-EBELN = Pur Doc no in extract
                                                           and  ESSR-EBELP = Pur Doc item in extract.
    2. Select ESLL-SRVPOS where ESLL-PACKNO = temp(retrieved from above step).
    I was not able to find any direct link between Purchase doc number and ESLL, that is why used table ESSR to get the packno.
    Hope this helps.
    Thanks,
    Archana

  • PO item overview with item details for service POs

    Hi experts,
    Is there any standard report to see the PO Item overview short description data with Item-services details in case of service POs.
    We raise the service pos with service short description in  Item overview and against that short description we maintain service nos in item-services.
    we want to see the PO wise item overview short description with item services in one report.
    we have already seen ME2S,MSRV1 to 6,ME80FN, but its not serve our purpose.

    hi
    go to me80fn
    here press shift F4
    then u will get fields to add here at item level select the item cat and acct assignment
    now give item cat 9 and acct assignment as k
    then execute
    now u will get the report ,choose po histry mode here u will get what u want
    similarly u can try it with me2n
    regards
    kunal

  • Multiple Account Assignment issue with BAPI_PO_CREATE1 for service POs

    Whle creating service PO through BAPI_PO_CREATE1, The account assignments at the service line items were not being added correctly at the item level, instead they are getting split further wrt tax jurisdiction. This is occuring when an item have multiple service line items with mutltiple account assignments.
    The sample code is below, and the all the internal tables and structure were related to BAPI_PO_CREATE1. Tried with BADI ME_TAX_FROM_ADDRESS and User Exit enhancement SAPL2012, which were not helpful for this particular scenario.
    Item Details
    W_BAPI_ITEM-PO_ITEM = 1.
    W_BAPI_ITEMX-PO_ITEM = 1.
    W_BAPI_ITEM-ITEM_CAT = D.
    W_BAPI_ITEMX-ITEM_CAT = 'X'.
    W_BAPI_ITEM-ACCTASSCAT = K.
    W_BAPI_ITEMX-ACCTASSCAT = 'X'.
    W_BAPI_ITEM-PLANT = USMP. Tax Jurisdiction code 3604931001
    W_BAPI_ITEMX-PLANT = 'X'.
    W_BAPI_ITEM-MATL_GROUP = IT37.
    W_BAPI_ITEMX-MATL_GROUP = 'X'.
    W_BAPI_ITEM-QUANTITY = 1.
    W_BAPI_ITEMX-QUANTITY = 'X'.
    W_BAPI_ITEM-PRICE_UNIT = 1.
    W_BAPI_ITEMX-PRICE_UNIT = 'X'.
    W_BAPI_ITEM-PO_UNIT = LE.
    W_BAPI_ITEMX-PO_UNIT = 'X'.
    W_BAPI_ITEM-NET_PRICE = 100.
    W_BAPI_ITEMX-NET_PRICE = 'X'.
    W_BAPI_ITEM-PCKG_NO = 3456.
    W_BAPI_ITEMX-PCKG_NO = 'X'.
    W_BAPI_ITEM-PREQ_NAME = RTPTS02.
    W_BAPI_ITEMX-PREQ_NAME = 'X'.
    APPEND W_BAPI_ITEM TO IT_BAPI_ITEM.
    APPEND W_BAPI_ITEMX TO IT_BAPI_ITEMX.
    Delivery address details - Tax Jurisdiction 3305923401
    W_BAPI_ADDRDEL-PO_ITEM = 1.
    W_BAPI_ADDRDEL-NAME = COR.
    W_BAPI_ADDRDEL-NAME_2 = Chairman.
    W_BAPI_ADDRDEL-BUILD_LONG = 1001R
    W_BAPI_ADDRDEL-CITY = plainview.
    W_BAPI_ADDRDEL-STREET = old country road.
    W_BAPI_ADDRDEL-POSTL_COD1 = 11803.
    W_BAPI_ADDRDEL-COUNTRY = US.
    W_BAPI_ADDRDEL-REGION = NY.
    APPEND W_BAPI_ADDRDEL TO IT_BAPI_ADDRDEL.
    First Account Assignment - 3310300441
    W_BAPI_POACNT-SERIAL_NO = 1.
    W_BAPI_POACNTX-SERIAL_NO = 1.
    W_BAPI_POACNTX-SERIAL_NOX = 'X'.
    W_BAPI_POACNT-CREAT_DATE  = 11/03/2010.
    W_BAPI_POACNTX-CREAT_DATE  = 'X'.
    W_BAPI_POACNT-QUANTITY = 0.75.
    W_BAPI_POACNTX-QUANTITY  = 'X'.
    W_BAPI_POACNT-DISTR_PERC = 75.
    W_BAPI_POACNTX-DISTR_PERC  = 'X'.
    W_BAPI_POACNT-NET_VALUE = 75 .
    W_BAPI_POACNTX-NET_VALUE  = 'X'.
    W_BAPI_POACNT-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEMX = 'X'.
    W_BAPI_POACNT-GL_ACCOUNT = 641099.
    W_BAPI_POACNTX-GL_ACCOUNT  = 'X'.
    W_BAPI_POACNT-COSTCENTER =  10010394.
    W_BAPI_POACNTX-COSTCENTER = 'X'.
    W_BAPI_POACNT-CO_AREA = 1234.
    W_BAPI_POACNTX-CO_AREA = 'X'.
    APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
    APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
    Second Account Assignment
    W_BAPI_POACNT-SERIAL_NO = 2.
    W_BAPI_POACNTX-SERIAL_NO = 2.
    W_BAPI_POACNTX-SERIAL_NOX = 'X'.
    W_BAPI_POACNT-CREAT_DATE  = 11/03/2010.
    W_BAPI_POACNTX-CREAT_DATE  = 'X'.
    W_BAPI_POACNT-QUANTITY = 0.25.
    W_BAPI_POACNTX-QUANTITY  = 'X'.
    W_BAPI_POACNT-DISTR_PERC = 25.
    W_BAPI_POACNTX-DISTR_PERC  = 'X'.
    W_BAPI_POACNT-NET_VALUE = 25 .
    W_BAPI_POACNTX-NET_VALUE  = 'X'.
    W_BAPI_POACNT-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEM = 1.
    W_BAPI_POACNTX-PO_ITEMX = 'X'.
    W_BAPI_POACNT-GL_ACCOUNT = 641099.
    W_BAPI_POACNTX-GL_ACCOUNT  = 'X'.
    W_BAPI_POACNT-COSTCENTER =  10010393.
    W_BAPI_POACNTX-COSTCENTER = 'X'.
    W_BAPI_POACNT-CO_AREA = 1234.
    W_BAPI_POACNTX-CO_AREA = 'X'.
    APPEND W_BAPI_POACNT TO IT_BAPI_POACNT.
    APPEND W_BAPI_POACNTX TO IT_BAPI_POACNTX.
    Service Item detials
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-SUBPCKG_NO =  3457.
    W_BAPI_SERVICE-LINE_NO = 1.
    W_BAPI_SERVICE-PCKG_NO = 3456.
    W_BAPI_SERVICE-EXT_LINE = 0000000000.
    W_BAPI_SERVICE-QUANTITY = 0.
    W_BAPI_SERVICE-BASE_UOM = 0.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 0.
    W_BAPI_SERVICE-SHORT_TEXT = 0.
    W_BAPI_SERVICE-MATL_GROUP = 0.
    W_BAPI_SERVICE-DISTRIB = 0.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-LINE_NO = 2.
    W_BAPI_SERVICE-PCKG_NO = 3457.
    W_BAPI_SERVICE-EXT_LINE = 0000000010.
    W_BAPI_SERVICE-QUANTITY = 10.
    W_BAPI_SERVICE-BASE_UOM = STD.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 5.
    W_BAPI_SERVICE-SHORT_TEXT = Cabling Services1.
    W_BAPI_SERVICE-MATL_GROUP = IT37.
    W_BAPI_SERVICE-DISTRIB = 2.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    W_BAPI_SERVICE-OUTL_IND = 'X'.
    W_BAPI_SERVICE-LINE_NO = 3.
    W_BAPI_SERVICE-PCKG_NO = 3457.
    W_BAPI_SERVICE-EXT_LINE = 0000000020.
    W_BAPI_SERVICE-QUANTITY = 10.
    W_BAPI_SERVICE-BASE_UOM = STD.
    W_BAPI_SERVICE-PRICE_UNIT = 0.
    W_BAPI_SERVICE-GR_PRICE = 5.
    W_BAPI_SERVICE-SHORT_TEXT = Cabling Services2.
    W_BAPI_SERVICE-MATL_GROUP = IT37.
    W_BAPI_SERVICE-DISTRIB = 2.
    APPEND W_BAPI_SERVICE TO IT_BAPI_SERVICE.
    Service Account assignment details
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 2.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 1.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 100 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 3.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 1.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 50 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    W_ACC_SERVICE-PCKG_NO = 3457.
    W_ACC_SERVICE-LINE_NO = 3.
    W_ACC_SERVICE-SERNO_LINE = 1.
    W_ACC_SERVICE-SERIAL_NO = 2.   "Account Assignment Link
    W_ACC_SERVICE-NET_VALUE = .
    W_ACC_SERVICE-QUANTITY = 50 .
    W_ACC_SERVICE-PERCENTAGE = 50 .
    APPEND W_ACC_SERVICE TO IT_ACC_SERVICE.
    EKKN table entries:
    When created thru ME21N with the same set of data,which is expected
    ZEKKN            MENGE            NETWR  SAKTO        KOSTL
    01               0.750            75.00  0000641099   0010010394
    02               0.250            25.00  0000641099   0010010393
    But through BAPI_PO_CREATE1, the below split is being done with respect to Tax Jurisdiction code.
    01               0.500            50.00  0000641099   0010010394
    02               0.250            25.00  0000641099   0010010394
    03               0.250            25.00  0000641099   0010010393
    Please advice the solution.
    PS: there were different tax jurisdiction codes were being determined.
    Plant, Cost Center and Delivery Address.

    Hi,
    To commit BAPI or to run it properly , you need to fulfill all required data for BAPI.
    You can go to BAPI documentation to check for mandetory parameters and also check with Function consultant for more data and confifuration/
    Reward if useful!

  • Automatic tax code determination for service POs

    Hi
    Can anyone tell  about the possibilities of automatic tax code determination for the service purchase orders.
    Thanks in advance
    Durai

    The tax indicator is used in the automatic determination of the tax code 
    in Purchasing.                                                                               
    The tax code can be determined automatically within the framework of tax 
    determination (via the conditions).                                      
    Tax indicators, which can come from the service master record,           
    Customizing, or the purchasing document, are used in this process. The   
    system determines the tax code on the basis of the combination of these  
    tax indicators.                                                                               
    Automatic determination of the tax code is useful, for example, if       
    different tax rates apply to different groups of services.

  • POs for service and account assignment

    Hi,
    I'm crearting a purchase order for services with item category P and account category K.
    Actually the system doesn't assign automatically the G/L account in the field Account assignment of POs.
    I set in T030, in transaction GBB, valuation modification 0001, general modification ZCO, valuation class (S001) and the G/L account.
    Best regards

    Hi,
    While creating the PO, enter the material group and assign the valuation class to this material group in the folowing node, (Material Management --> Purchasing -->Material Master --> Entry aid for items without material master).
    Once you assign the valuation class to material group, it will pick the G/L code from GBB in the OBYC setting (Table T030).
    Hope it answers your problem.
    Regards

  • Exit/badi for Material group validation on service POs

    Hi Gurus,
    The requirement is to put validation on 'MATERIAL GROUP' at item level as well as service sub line item level.I have used EXIT_SAPMM06E_017 for line level validation.
    For service sub line level 'MATERIAL GROUP' i tried using EXIT_SAPLMLSP_030 but validation is not working properly as
    EXIT_SAPLMLSP_030 is triggered before EXIT_SAPMM06E_017.
    Kindly suggest any alternatives.
    Thanks in advance
    Deepika

    Hi,
    I had finally used BADI ME_PROCESS_PO_CUST method CHECK and PROCESS_ITEM for enjoy transactions i.e ME21N ME22N ME23N and written code in EXIT EXIT_SAPLMLSP_030 for service item validations.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
        DATA: wa_zmm_mat_grp TYPE zmm_mat_grp.
        EXPORT header_data-aedat FROM header_data-aedat TO MEMORY ID 'ZDAT24933'.
        EXPORT header_data-bsart FROM header_data-bsart TO MEMORY ID 'ZBRT24933'.
        IF header_data-aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( header_data-bsart = 'SRV' OR header_data-bsart = 'SRVF' OR header_data-bsart = 'SRVI') AND ( header_data-bsart NE ' ')  AND
             ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl AND
                                                                         bsart = header_data-bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF header_data-bsart IS NOT INITIAL.
            IF ( header_data-bsart NE 'SRV') AND ( header_data-bsart NE 'SRVF') AND ( header_data-bsart NE 'SRVI') AND
               ( re_data-loekz EQ 'S' OR re_data-loekz EQ ' ' ).
              SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = re_data-matkl.
              IF sy-subrc EQ 0.
                MESSAGE e006(ze1).
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    For service subline item following code:
    DATA: wa_zmm_mat_grp TYPE zmm_mat_grp,
          v_bsart TYPE ekko-bsart,
          v_packno TYPE esll-packno,
          v_ebeln TYPE ekpo-ebeln,
          v_aedat TYPE ekko-aedat.
    IF sy-tcode = 'ME21N' OR sy-tcode = 'ME22N' OR sy-tcode = 'ME23N' OR sy-tcode = 'MASS' OR sy-tcode = 'ME29N'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT header_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT header_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IMPORT re_data-bsart TO v_bsart FROM MEMORY ID 'ZBRT24933'.
        IMPORT re_data-aedat TO v_aedat FROM MEMORY ID 'ZDAT24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ELSEIF sy-tcode = 'ME21' OR sy-tcode = 'ME22' OR sy-tcode = 'ME23'.
      IF srv_esll-matkl IS NOT INITIAL.
        IMPORT i_ekko-bsart TO v_bsart FROM MEMORY ID 'ZPOT24933'.
        IMPORT i_ekko-aedat TO v_aedat FROM MEMORY ID 'ZDTA24933'.
        IF v_bsart IS INITIAL OR v_aedat IS INITIAL.
          SELECT SINGLE packno FROM esll INTO v_packno WHERE sub_packno = srv_esll-packno.
          IF sy-subrc EQ 0.
            SELECT SINGLE ebeln FROM ekpo INTO v_ebeln WHERE packno = v_packno.
            IF sy-subrc EQ 0.
              SELECT SINGLE bsart aedat FROM ekko INTO (v_bsart, v_aedat) WHERE ebeln = v_ebeln.
            ENDIF.
          ENDIF.
        ENDIF.
        IF v_aedat GE '20090810'.         " Material group mandatory appplicable date.
          IF ( v_bsart EQ 'SRV' ) OR ( v_bsart EQ 'SRVI' ) OR ( v_bsart EQ 'SRVF' ) AND ( v_bsart NE ' ' )
          AND srv_esll-del = ' '.
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl AND
                                                                         bsart = v_bsart.
            IF sy-subrc NE 0.
              MESSAGE e005(ze1).
            ENDIF.
          ENDIF.
          IF ( v_bsart NE 'SRV' ) AND ( v_bsart NE 'SRVI' ) AND ( v_bsart NE 'SRVF' ) AND ( v_bsart NE ' ' )
          AND ( srv_esll-del = ' ').
            SELECT SINGLE  *  FROM zmm_mat_grp INTO wa_zmm_mat_grp WHERE matkl = srv_esll-matkl .
            IF sy-subrc EQ 0.
              MESSAGE e006(ze1).
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
    hope this will help u.

  • Creation of Service POs using BAPI_PO_CREATE1

    Hi Friends,
    I am trying to create service POs through BAPI (BAPI_PO_CREATE1). I am facing different errors like Please maintain service or limits eve though I am providing the details in POSERVICES. Can any one suggest me the fields which we have to provide for creating the service POs.
    I am using this BAPI in LSMW.
    Thanks,
    Gagan Chodhry

    Check this it may help u.
    DATA: BEGIN OF po_header OCCURS 0.
    INCLUDE STRUCTURE BAPIEKKOC.
    DATA: END OF po_header.
    DATA: BEGIN OF po_iteam OCCURS 10.
    INCLUDE STRUCTURE BAPIEKPOC.
    DATA: END OF po-items.
    DATA: BEGIN OF PO_ITEM_SCHEDULES OCCURS 0.
    INCLUDE STRUCTURE BAPIEKET.
    DATA: END OF PO_ITEM_SCHEDULES.
    DATA: BEGIN OF I_BAPIRETURN OCCURS 0.
    INCLUDE STRUCTURE BAPIRETURN.
    DATA: END OF I_BAPIRETURN.
    CALL FUNCTION 'BAPI_PO_CREATE'
    EXPORTING
    PO_HEADER = PO_HEADER
    SKIP_ITEMS_WITH_ERROR = 'X'
    TABLES
    PO_ITEMS = PO_ITEMS
    PO_ITEM_SCHEDULES = PO_ITEM_SCHEDULES
    RETURN = I_BAPIRETURN
    EXCEPTIONS
    OTHERS = 1.
    Regards

  • Agent Determination for Service Entry (BO-BUS2091)

    HI,
    I am new to workflow and facing below issue.
    I have created a workflow for Service entry sheet approval (BO- BUS2901) and I am having an issue with the agent determination. I am using my own Ztable to determine the possible agents.
    I am using the following code in the FM of the rule I created for determining the agent:
    FUNCTION ZME_SRV_REL_GET_RESPONSIBLE.
    *"*"Local Interface:
    *"  TABLES
    *"      ACTOR_TAB STRUCTURE  SWHACTOR
    *"      AC_CONTAINER STRUCTURE  SWCONT
    *"  EXCEPTIONS
    *"      NOBODY_FOUND
    INCLUDE <cntain>.
    TABLES: essr_rel, essr,zmm_service_mail.
    DATA: object TYPE swc_object.
    DATA: BEGIN OF essrkey,
    lblni LIKE essr-lblni,
    END OF essrkey.
    DATA: verak_user TYPE csks-verak_user.
    REFRESH actor_tab.
    CLEAR actor_tab.
    swc_get_element ac_container 'service' object.
    if sy-subrc eq space.
    essrkey-lblni = object-objkey(10).
    select single * from essr where lblni = essrkey-lblni.
    select single * from zmm_service_mail
    where frggr = essr-frggr
    and frgsx = essr-frgsx.
    if essr-frgzu eq ' '.
    verak_user = zmm_service_mail-pernr1.
    elseif essr-frgzu eq 'x'.
    verak_user = zmm_service_mail-pernr2.
    endif.
    actor_tab-otype = 'us'.
    actor_tab-objid = verak_user.
    append actor_tab.
    endif.
    ENDFUNCTION.
    When I debug, sy-subrc = 8 at swc_get_element ac_container 'service' object.
    What could be the problem?
    Note- I have gone thru below thread but still I am unable to find the error.
    http://scn.sap.com/thread/2017416

    Hi,
    You should re-read the thread that you quoted above. The mighty Sue Keohan suggested a solution.
    Instead of trying to pass a service *object*, and then extracting the key, you can just pass the key itself.  It has type EESSR-LBLN1.
    swc_get_element ac_container 'service_key' lv_service_key.
    if sy-subrc eq 0.
      essrkey-lblni = lv_service_key.
    (etc)
    cheers
    Paul

  • Reg:Delivery complete indicator for service PO

    Dear all,
    I have configured delivery completed incator for the specific field selection group for the particular plant for service PO's also i have activated in inventory management the same indicator for that plant but for service PO document type i dont get that indicator . Is there any specific settings to be done plz guide
    regards
    VKK

    Hi,
    Have you checked the field settings for the below field selction keys, because the field status follows the link rule and priority is assigned based on that.
    Field selection keys:
    - Transaction: E.g ME21N, ME32, ME33 etc.
    - Activity Category: Create AKTH, Change AKTV, Display AKTA & Extend PO AKTE
    - Document type: UBF for UB, NBF for NB
    - Item category: is determined in combination with the document category.
    First two characters consist of letters PT, third item category and fourth document category:
    A for RFQs, B for PRs, F for POs, K for contracts, L for SAs. e.g PT3F for a SC item in a PO.

  • Tax calculation in Service POs

    Dear All,
    While creating a service PO I am maintaining Tax code at invoice Tab. But while clicking on Taxes button to see the tax calculation it is not apperaing. Also at condition tab total taxes condition type showing no amount.
    For the same tax code if i create a Material PO then system is showing tax calculation after clciking on Taxes button also i can see the same amonunt at condition tab against condition type.
    is it stnadard that we can not see tax calculation in service POs, only while doing SES we can see the tax calculations.
    If not what could be the reason that i couldnt see tax calculations in service POs.
    Please guide
    Regards,
    Rakesh

    Hi,,
    Check you are doing service PO  and this require Account assignmnet cat-K  and Itemcat-D
    and mandatory is -Material Group.
    If you are using TAXINN  -Then you need to maintain Service tax -conditions like,-Example -JSRT,JEC3,JSE3-
    Service tax  ,Ecess on service tax,SHECess on service tax  has to maitain for
    Plant and material Group Access sequence . in FV11.
    Then only you can get.
    where as for the material you are already conditions are maitained so you are getting the tax details.
    If you are using TAXINJ- For blank  you maintain chaper ID with Plant in J1ID  then you will get the taxdetais.
    i think you are clear what i mean to say
    with regrads
    Shrinivas Gangoor

Maybe you are looking for

  • Need help accessing the router web page.  I have been tol...

    Need help accessing the router web page.  I have been told my router is acting like a switch and the IP address is not in the proper range.  I have tried reseting the router (hold for 30 sec and unplug for 5 mins).  Didn't work. thanks

  • OSB XSLT testing issue

    I am using the ALSB XQuery/XPath/XSLT Expression Testing functionality of the service bus console. However when I click execute I just get "Error executing the transformation: java.lang.NullPointerException" and no details. I looked at the log files

  • What are the system requirements for iTunes on Windows?

    Hi everyone, I am using a very capable workstation to run iTunes.  It is a Dell T5600 workstation with a Xeon E5-2667, 16GB of RAM, and a GeForce 560 Ti, W7 Pro x64, and my system drive is an SSD.  This is a very expensive ($4K+), powerful workstatio

  • Int to string to string array

    Sorry, if my question is too wordy. First, the problem -- I am reading integers into my application and converting the those into strings using valueOf(). I then need to use those strings in a switch statment. The only way I could figure how to do th

  • Adobe Flash Player 10 ActiveX -- Error 2753. The File 'InstallAX.exe' is not marked for installation

    Adobe Flash GPO Deploy error "InstallAx.exe" Flash won't uninstall correctly from a GPO deployment Error message from EventViewer: Product: Adobe Flash Player 10 ActiveX -- Error 2753.The File 'InstallAX.exe' is not marked for installation. I am runn