cancel
Showing results for 
Search instead for 
Did you mean: 

Partner function issues while creating SA using LSMW

former_member221541
Contributor
0 Kudos

Hi,

I am opening a new thread (though similar question has been put by Vihaan in below thread)

We are creating SAs via LSMW IDOC method (Message Type - PURSAG_CREATE and Basic Type - PURSAG_CREATE01), all our SAs being created w r to Contract and Contract has multiple OA and PI partner functions. So while creating SA we are passing unique OA and PI value (from list of valid OA/PI avaialble in contract) in LSMW structures - E1BPMEOUTPARTNER and E1BPMEOUTPARTNERX.

Values passed are mentioned below:

E1BPMEOUTPARTNER Partner Information for Outline Agreement

Fields

PARTN_ROLE Partner Function

Rule : Constant

Code: E1BPMEOUTPARTNER-PARTN_ROLE = 'BA'.

PLANT Plant

SUBRANGE_TX Description of Vendor Subrange

LANGU Language Key

LANGU_ISO Language according to ISO 639

PARTNR Reference to other vendor

Rule : Constant

Code: E1BPMEOUTPARTNER-PARTNR = '1XXXXXXXX9'.

DEF_PARTNR Default Partner

Rule : Constant

Code: E1BPMEOUTPARTNER-DEF_PARTNR = 'X'.

DELETE_IND Deletion Indicator in Purchasing Document

E1BPMEOUTPARTNERX Change Parameter Partner Data (Outline Agreement)

Fields

PARTN_ROLE Partner Function

Rule : Constant

Code: E1BPMEOUTPARTNERX-PARTN_ROLE = 'BA'.

PLANT Plant

SUBRANGE_TX Description of Vendor Subrange

LANGU Updated information in related user data field

LANGU_ISO Updated information in related user data field

PARTNR Updated information in related user data field

Rule : Constant

Code: E1BPMEOUTPARTNERX-PARTNR = 'X'.

DEF_PARTNR Updated information in related user data field

Rule : Constant

Code: E1BPMEOUTPARTNERX-DEF_PARTNR = 'X'.

DELETE_IND Updated information in related user data field

Now issue is SAP is not recognizing above mentioned partner value and throwing error as Following mandatory roles missing in partner maintenance: OA

If the reffered contract has single OA and PI LSMW is running fine and creating SA successfully but issue is coming only when we have multiple OA/PI.

Has anybody faced similar issue or aware if any OSS note which resolves this issue, please advise.

Thanks,

Yogesh

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member221541
Contributor
0 Kudos

Hi Vihaan and Jurgen,

UPDATE -

This issue has been resolved after applying OSS note 1610959.

Vihaan, I will update your thread also that OSS note 1610959 is the solution.

Jurgen, thanks for your inputs.

Thanks,

Yogesh

JL23
Active Contributor
0 Kudos

Thank you for the update.

I had seen this note before, but I did not mention it to you, as it is logical to me to have all potential partners in the vendor master before creating documents.

former_member221541
Contributor
0 Kudos

Hi All,

Just an update- we have faced similar kind of issue in Purchase order i.e. when creating purchase order via LSMW and if purchase order is referring to a contract which has multiple OA/PI partner function, you get message - "Mandatory OA/PI missing" or "Enter partner role".

For this case key is to pass value in "language key" also under segment - E1BPEKKOP

PARTNERDESC - Your Partner role (OA or PI / BA or RS)

LANGU - EN or DE

BUSPARTNO - Vendor id of partner

As you can see above:

if you are passing OA and PI as partner role value - maintain LANGU = EN

if you are passing BS and RS as partner role value - maintain LANGU = DE

Just wanted to update so that if somebody faces similar issue in PO LSMW they can follow above rule.

Thanks,

Yogesh

JL23
Active Contributor
0 Kudos

PLANT Plant

does this mean that you have a plant number in this field?

if yes, do you really have partner defined at plant level in your vendor master?

check table WYT3, which is the partner table of vendor master if you find any partner that has a plan.

do the same check in table EKPA, which is the partner table for a purchasing document.

Have you seen OSS note: Note 1610959 - BAPI: Partners not used in new scheduling agreement

former_member221541
Contributor
0 Kudos

Hi Jurgen,

I have copied (above) all the fields under partner structure but we are passing values against three fields only:

Partner role = BA

Partner number = vendor Id of OA

Default partner = X

Expectation was it shud work with these settings as manually with ME31L it works fine (after selecting OA from pop up box).

I will raise a customer message to SAP to get confirmation which modificiation needs to be applied (in case it is needed).

Thanks,

Yogesh

JL23
Active Contributor
0 Kudos

Hope you will update the thread once you have an answer.

I hope you submitted all your partner roles and partners in this structure, and not just this one order address partner.

former_member221541
Contributor
0 Kudos

Hi Jurgen,

Yeah, once we get response from SAP will update the thread.

Regarding passing all partner functions: I am only passing OA (BA) in structure as other partnr function PI (RS) should be picked automatically by system as there is only one PI in my contract against which SA is being created.

Thanks,

Yogesh

JL23
Active Contributor
0 Kudos

some years ago I had to change customer masters, had to add a certain partner role. I used LSMW with IDOC method.

The program did not succeed, because SAP deletes all existing partner roles and inserts then the new roles, finally I received the message that I missed mandatory roles. and the IDOC failed posting.

Thats the background to my question. I have never loaded schedule agreements, but if the programs work similar, then you should try it with having all partner roles in the idoc.

former_member221541
Contributor
0 Kudos

Hi Jurgen,

I have created a separate source structure for passing partner function and now have below source structure:

Source Structures

HEADER_SA Header Structure

PARTNER_SA PARTNER STRUCTURE (Lower level to Header)

ITEM_SA Item Structure (Lower level to Header but at the same level as Partner)

Then created a separate file for partner having both OA and PI value as shown below (ID is common field between all three structures Header, item and Partner):

ID PARVW LIFN2 DEFPA

1 BA 1XXXXXXX9 X

1 RS 1XXXXXXX7 X

Now after convert data step it considers above values for partner role but still LSMW fails with same error "Mandatory PF missing, OA, PI"

Also, one more info wanted to share- if in my contract I put a tick mark against one of the partner OA/PI in DEFAULT BOX, it works fine but that does not make any sense as the whole pupose of having multiple OA/PI is to give option to business of selecting one of the avaialble OA/PI.

FYI - I have opened a customer message to SAP, let see what they suggest.

Thanks,

Yogesh

JL23
Active Contributor
0 Kudos

Just curious because of the error message content.

Have you tried the same scenario using partner role OA instead of BA, and PI instead of RS?

former_member221541
Contributor
0 Kudos

Hi Jurgen,

I have tried with OA and PI also as partner role values but it gives same error.

Thanks,

Yogesh