Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FM SD_SALESDOCUMENT_CREATE SEPA

tecsap_tec
Explorer
0 Likes
813

Hi,

We have a program that creates sales orders through FM SD_SALESDOCUMENT_CREATE.

After configuring SEPA in our environnement, we need from now on to indicate the mandate reference in sales orders header.

A New field "SEPA_MANDATE_ID" appears in the function module SD_SALESDOCUMENT_CREATE  both in header and items  but it does not seem to work.

  bapi_head-sepa_mandate_id = mandate_ref.
  bapi_headx-sepa_mandate_id = 'X'.

Any ideas of what I am missing?

I tried to indicate the mandate reference in the items and it worked, but this is not the requirement, I need it in the header.

Thank you.

Hi,

We have a program that creates sales orders through FM SD_SALESDOCUMENT_CREATE.

After configuring SEPA in our environnement, we need from now on to indicate the mandate reference in sales orders header.

A New field "SEPA_MANDATE_ID" appears in the function module SD_SALESDOCUMENT_CREATE  both in header and items  but it does not seem to work.

  bapi_head-sepa_mandate_id = mandate_ref.
  bapi_headx-sepa_mandate_id = 'X'.

Any ideas of what I am missing?

I tried to indicate the mandate reference in the items and it worked, but this is not the requirement, I need it in the header.

Thank you.

6 REPLIES 6
Read only

Former Member
0 Likes
755

There are other fields for passing reference,

example:- REF_DOC_L - Reference Document Number

               REF_1 - Customer's or vendor's internal reference

Read only

0 Likes
755

I need to populate "mandate reference" field through FM SD_SALESDOCUMENT_CREATE in a sales order header. The FM offers sepa_mandate_id parameters but I think that I am missing something.

The sales order is correctly created but the mandate reference is empty.

Any help?

Read only

0 Likes
755

Maybe the mandate first has to exist on the partner master data, is that the case ?

A partner can have several mandates. In the sales order create you give (one of) the mandate(s) to place on the SO.

I am not sure but could it be that if the mandate does not exist on the partner data yet it will not update the sales order ?

Read only

0 Likes
755

Thank you for your reply.

Actually I checked, and the mandate exists on the partner master data.

I can update manually the sales order with the mandate number, but I can't do it on "creation mode" through FM SD_SALESDOCUMENT_CREATE, which is weird.

Read only

0 Likes
755

I agree that it is weird, but Klaus has a good point. There are tons of notes related to SEPA. Honestly I have never seen that many notes for any SAP functionality released out often and so many.

So check the if you can  find a note for this problem. If not contact SAP, because there are still a lot of flaws in the SEPA functionality. Maybe you just discovered bug number 32564876453890924539 regarding SEPA.   

Read only

Former Member
0 Likes
755

Hi,

for SAP is changing SEPA notes very often and is creating new SEPA notes each day, please check for additional notes or contact SAP.

I was implementing tons of SEPA notes in the last two weeks, and the issues were changing daily.

Regards,

Klaus