cancel
Showing results for 
Search instead for 
Did you mean: 

how to send PR from backend to SRM ?

former_member186143
Active Contributor
0 Kudos

In the backend I have customized that I want to transfer certain purchase requisitons to the srm system for the approval process. so I set up the t160ex table and t160PR table with the relevant data.

I have checked the used rfc connections but no shoppincarts appear in the srm system when saving a PR in the backend.

do I miss certain steps in this scenario ?

I have found this thread and on the srm side also implemented the badi BBP_DOC_CHANGE_BADI

and had set the filter to BUS2121

kind regards

arthur

Edited by: A. de Smidt on Nov 8, 2010 2:33 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183819
Active Contributor
0 Kudos

Hi Arthur

till SRM 550

after approving the Purchase request.

you must get PR entry in EPRTRANS table in ECC

when you run BBP_EXTREQ_TRANSFER job it must be wiped out in the table EPRTRANS and this PR data goes to SRM system via Queues and create a Shopping cart for transfered PR items.

so now where you have issues.

check points SLG1, SMQ1 ,SMQ2.

MUTHU

former_member186143
Active Contributor
0 Kudos

>

> Hi Arthur

> till SRM 550

>

> after approving the Purchase request.

>

> you must get PR entry in EPRTRANS table in ECC

>

> when you run BBP_EXTREQ_TRANSFER job it must be wiped out in the table EPRTRANS and this PR data goes to SRM system via Queues and create a Shopping cart for transfered PR items.

>

>

> so now where you have issues.

>

> check points SLG1, SMQ1 ,SMQ2.

>

>

> MUTHU

we are using srm550 and the purchase request is not having release strategy so it is released when saved.

I can't find the table EPRTRANS or the job BBP_EXTREQ_TRANSFER or function or programm ?

kiind regards

arthur

Edited by: A. de Smidt on Nov 8, 2010 2:46 PM

Edited by: A. de Smidt on Nov 8, 2010 2:47 PM

former_member183819
Active Contributor
0 Kudos

can you check EBAN table for EPROFILE field.Is profile set or not

only one PR not transfering or all PRs not transfering

Muthu

former_member186143
Active Contributor
0 Kudos

>

> can you check EBAN table for EPROFILE field.Is profile set or not

>

> only one PR not transfering or all PRs not transfering

>

> Muthu

fieldvalue for EPROFILE is 01 conform the profile I have set up.

and none PRs are transfering

arthur

Former Member
0 Kudos

Hi

Please check your configurations in SRM and ECC

1 Create an Entry Channel in SRM Organization Structure

2 Create a User in SRM and integrate that user in the org structure in the Entry Channel Created Above. This user has to be an RFC user and need to be defined in RFC Connection definition for communication from ERP to SRM

3 Configurations in ERP

3.1 Create RFC Connection from ERP to SRM with RFC User as the user created and integrated in entry channel org unit in SRM

3.2 Create profile for SRM system in table V_T160PR in ERP

3.3 Assign Material Group and Purchase Group to the profile table V_T160EX in ERP

If you have these configurations set properly in ECC, then the EPRTRANS table will have an entry immediately when you save a PR in ERP system. This entry will get removed from this table after BBP_EXTREQ_TRANSFER report processes this PR and pushes it to SRM.

If this also works fine, then check your Outbound Queue in ERP and INbound QUeue in SRM

Regards

Virender Singh

former_member183819
Active Contributor
0 Kudos

The EPROFILE set and PR has been Approved /Released.

now you must have entry in the EPRTANS table.

How the PRs are Originated manual , APO , PM, PS ??

former_member186143
Active Contributor
0 Kudos

>

> Hi

> Please check your configurations in SRM and ECC

>

> 1 Create an Entry Channel in SRM Organization Structure

> 2 Create a User in SRM and integrate that user in the org structure in the Entry Channel Created Above. This user has to be an RFC user and need to be defined in RFC Connection definition for communication from ERP to SRM

>

> 3 Configurations in ERP

> 3.1 Create RFC Connection from ERP to SRM with RFC User as the user created and integrated in entry channel org unit in SRM

> 3.2 Create profile for SRM system in table V_T160PR in ERP

> 3.3 Assign Material Group and Purchase Group to the profile table V_T160EX in ERP

>

>

> If you have these configurations set properly in ECC, then the EPRTRANS table will have an entry immediately when you save a PR in ERP system. This entry will get removed from this table after BBP_EXTREQ_TRANSFER report processes this PR and pushes it to SRM.

>

> If this also works fine, then check your Outbound Queue in ERP and INbound QUeue in SRM

>

> Regards

> Virender Singh

ok the rfc user is set in org structure srm

and I found the table EPRTRANS in the backend (I was looking in srm first) but there are no entries in it when I save PR's

and I ccreated the PR manual with me51n

the status of the PR is active

kind regards

arthur

Edited by: A. de Smidt on Nov 8, 2010 4:03 PM

Edited by: A. de Smidt on Nov 8, 2010 4:11 PM

former_member183819
Active Contributor
0 Kudos

are you running any program for assign source of supply to purchase request?

check eprofile set or any source of supply assigned for this PR?

in your business . no approval is required for the PR?

what type of request it was? free text or material with account assignment?

former_member186143
Active Contributor
0 Kudos

>

> are you running any program for assign source of supply to purchase request?

> check eprofile set or any source of supply assigned for this PR?

>

> in your business . no approval is required for the PR?

>

> what type of request it was? free text or material with account assignment?

at the current moment the process for approval is still on paper, so the purchase order is printed and all the relevant signatures are gathered.

in order to make 3 till 4 steps in this procedure automatic we are looking for a process that can do this the best way

It are free text purchase orders that are created now which are quite complex to implement in SRM (a lot of additional fields have to be filled in for generating the serviceorder which is then used in the account assignment)

so If I can generate a PR from a serviceorder which triggers the flow in srm then it would be great.

I have also found which seems to help a bit more

http://help.sap.com/saphelp_srm50/helpdata/en/18/db183d30805c59e10000000a114084/frameset.htm

kind regards

arthur

former_member183819
Active Contributor
0 Kudos

now your aim is to find out why EPRTRANS table dont get entry though you PR does not require any approval via ME54n and as well as EPROFILE was set.

PR approved and EPROFILE set but no entry in EPRTRANS table

Can you check why your PR did not get entry in EPRTRANS table.

V_T160PR has SRM logical system entry?

former_member186143
Active Contributor
0 Kudos

>

> now your aim is to find out why EPRTRANS table dont get entry though you PR does not require any approval via ME54n and as well as EPROFILE was set.

>

> PR approved and EPROFILE set but no entry in EPRTRANS table

>

> Can you check why your PR did not get entry in EPRTRANS table.

>

> V_T160PR has SRM logical system entry?

yep first aim is to find out why the eprtrans table was not updated. I found that out now thanks to note 428116

7. In order to be able to enter the external purchase requisitions into the transfer table, a BTE (Business Transaction Event) is to be introduced to function module BBP_EPRTRANS_MAINTAIN. For this, you have to include or change an entry in table TBE11.

      Note: You have to make the entries manually even if the note has already been implemented with a Support Package.

           Application indicator  Active   Text

           PM                    X        Maintenance

    * Afterwards, you have to add an entry with the following fields in table TBE31 for event 01000710:

           Business trans.  Event  Ctr  Appl.ind.  Function module

           01000710        PM                    BBP_EPRTRANS_MAINTAIN

      8. In order to set the purchasing profile determination, you have to maintain both view V_T160PR and view V_T160EX according to your requirements using Transaction SM30.


In addition, the mechanism of the 'Business Transaction Events' must be activated for the 'New Dimension Integration' (NDI). To do this, carry out Transaction BF11. Then activate entry 'NDI' by selecting the checkbox. Save the change.

so now I can continue with the srm side

thanks for all the valuable input so far

arthur

former_member186143
Active Contributor
0 Kudos

hmmm the eprtrans table is cleared but in the backend I get an error in smq1

but in the srm system I get no logging in slg1 ?

Function : BBP_BC_EXTREQ_INB

F-Number : 00000001

RFC-Type : qRFC with Send Queue (OUT-Queue)

Return Data:

IF-Function:

Status : ANORETRY

TYPE : A

ID : BBP_EXTREQ

NUMBER : 013

MESSAGE : Ext. requirement cannot be created, see application log f

LOG_NO :

LOG_MSG_NO: 000000

MESSAGE_V1:

MESSAGE_V2: BBP_EXTREQ

Edited by: A. de Smidt on Nov 10, 2010 3:25 PM

former_member183819
Active Contributor
0 Kudos

You must error in SRM box SLG1 clue.

open the queue see which PR has failed / might be bad data in the PR.

delete that failed queue ..

Answers (1)

Answers (1)

pedro_santos6
Contributor
0 Kudos

Hi,

The better way is follow the steps on the guide:

https://websmp202.sap-ag.de/srm-inst

But, you need to do that:

1. Conexion RFC BT ECC and SRM

2. Create a Organization Structure in SRM with Entry Channel

3. Define Soucing Determination in SRM

4. Define Product Category for Backend in SRM

5. Imput the datas in the tables V_T160PR and V_T160EX in ECC

6. Check if the table TBE31 has the events 01000710-PM BBP_EPRTRANS_MAINTAIN and 01000710-NDI CRM_SRV_PR_UPDATE_TRIGGER

7. Report BBP_EXTREQ_TRANSFER in ECC

8. Check the table EPRTRANS in ECC

Rgs,

Pedro Marques