cancel
Showing results for 
Search instead for 
Did you mean: 

Why purchase order's services at backend are grouped in one only item?

alonso_valenzue
Participant
0 Kudos

Hi Gurus,

I have extended classic scenario. I have an issue with PO's of services. I will try to explain it:

In SRM I create a PO with 2 items of services:

PO Number 1

Item 001 Service 1

Item 002 Service 2

When the PO is transmitted to the backend system, in ME23N tx. is view the next:

PO Number 1

Item 001 Services

Tab "Services"

10 Service 1

20 Service 2

In others words, the two items in SRM are grouped in one item in backend, and the detail is shown in tab "Services" at ME23N tx.

What can I do to obtain next in backend?:

PO Number 1

Item 001 Service 1

Item 002 Service 2

The objective is that the PO has the same structure that SRM.

I have SRM 4.0 (SRM_SERVER 500 SP 😎 and backend system R3 4.7 (SAP_APPL 470 SP 24).

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi there,

In case of Extended classic scenario (ECS), as per the standard system

design, it is not possible to create two service items in one PO,

when a PO is created manually from transaction "Create purchase order"

(BBP_POC). If you want to have two service items in one PO, this is

possible only by a Shopping cart. In shopping cart, you have to create

two hierarchies with one service item in each hierarchy. This will then

create a PO with two service items. In this way only you can have two

services items in one PO in case ECS and this is the standard

system design.

Ex: You want to create 2 service items in 1 PO:

Create 2 hierarchy items and each of the hierarchy item will contain one

service item. The same applies for limits. If you will create several

plain service items, they will be considered as one package and you will

have one item with several subitems in R/3.

A service PO is embedded in a package and only one service is possible

per package. For more reasons, please refer the note 861889.

Multiple packages concept is introduced in SRM 5.0.

The prerequisite to have multiple service packages in SRM is to have

multiple hierarchy items in one PO. Unfortunately there is nearly no way

to create hierarchy items directly from PO. It is only possible by a

SC or an RFI process. The multiple service package handling was built

exactly for this scenario.

For your requirement the only alternative is to create separate PO's

with one service item in each.

Hope this helps,

Kind Regards,

Matthew

alonso_valenzue
Participant
0 Kudos

Hi Matthew,

I forgot to mention that I create a shopping cart (SC) with 2 services items and indeed I can create a purchase order (PO) with 2 services items in SRM.

But at the time of which the PO is transmitted to backend system (R3), it's created with 1 hierarchy item.

If PO in SRM has 2 items, the correct behavior would have to be that in R3 the PO has 2 items? Or only from SRM 5.0 is allowed?

Edited by: Juan Alonso Valenzuela Rodríguez on May 6, 2010 11:05 PM

robin_janke
Contributor
0 Kudos

Hi Juan,

it is possible, but do you really want it? If it is absolutely necessary you should implement BADI BBP_ECS_PO_OUT_BADI and method BBP_B46B_PO_OUTBOUND.

the way SAP SRM transfers the PO (standard):


PO SRM ------------> PO ECC
                        PO Item 1 (Service outline)
PO Service 1 ------>         PO Service1
PO Service 2 ------>         PO Service2

the way you want to have it:


PO SRM ------------> PO ECC
                        PO Item 1 (Service outline1)
PO Service 1------->            PO Service 1
                        PO Item 2 (Service outline2)
PO Service 2------->            PO Service 2

Notice that the way SAP connects the service to the item is by use of a service outline.

Put a breakpoint in this BADI and see how the fields are filled in the CT_BAPI_POITEM and CT_BAPI_POSERVICES tables. You will have to create a new ITEM line, a new SERVICE OUTLINE (this is a line in CT_BAPI_POSERVICES with the OUTL_IND checked) and you have to adjust the service 2 line to connect with the new service outline you created. The way these tables are connected are through pckg_no and subpckg_no fields (Check these out with the debugger). Look at the other tables such as the CT_BAPI_POACCOUNT it they need additional lines as well!


CT_BAPI_POITEM-PCKG_NO = CT_BAPI_POSERVICES-PCKG_NO (this should be the outline service)
CT_BAPI_POSERVICES-SUBPCKG_NO (from the outline service)= CT_BAPI_POSERVICES-PCKG_NO 
(the service line from your PO)

This should point you in the right direction.

Regards,

Robin

alonso_valenzue
Participant
0 Kudos

Hi Robin,

Thanks for the info.

I implemented the badi BADI BBP_ECS_PO_OUT_BADI and method BBP_B46B_PO_OUTBOUND and it works.

Also I modified the information of the tables CT_BAPI_POADDRDELIVERY and CT_BAPI_POSRVACCESSVALUES.

Answers (0)