SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for changing the payment method(PYMET) on document in DFKKOP table

Former Member
0 Kudos

Hi,

I have the requirement of provide the Paymnet method on the document i.e dfkkop-pymet set on the OPBEL.

I have tried with the BAPI - 'BAPI_CTRACDOCUMENT_CHANGE', but this BAPI is giving standard SAP error.

I am not able to get anywhere. Can any one please help me with other FM or BAPI through which I can do the above mentioned details.

Reply on this will be helpful to me.Its urgent requirement.

Thanks & Regards,

RJ.

14 REPLIES 14

william_eastman
Advisor
Advisor
0 Kudos

Ravi:

that is the right bapi.  With an error - there are two likely causes:  you are not calling the bapi correctly or there is a master data/document issue which prevents the change.

regards,

bill.

0 Kudos

I have just directly use the BAPI and its giving error as below :-

Also when doing the syntax check for the BAPI, its giving the error- see below

0 Kudos

Ravi:

You've got some system issues here - not quite related to the bapi.  You need to have the basis team investigate why these issues are occurring.

regards,

bill.

0 Kudos

Hi,

It s a system related issue.

1. As Bill suggested, check with basis

2. Check for any SAP Note available for BAPI.

Regards,

Ravi

0 Kudos

Hi Ravi,

Implement note 1813090. It will solve you issue.

From the Screenshot that you have given, I can make out that you have implemented note 1701837.

However, you would get a syntax error in the function group FKK_BOR_DOC if the customer include in the table DFKKKO is used.

This is what you are getting. However, it has been corrected in SAP note 1813090.

Hope it helps..

Thanks,

Amlan

0 Kudos

Hi Amlan,

Thanks for the reply and provideing the note number . I am very much new to abap, so don't have much idea about the SAP note part.

But still its in progress with the basis team and i hope it will work.

Thanks & regards,

Ravi.

0 Kudos

This message was moderated.

0 Kudos

This message was moderated.

0 Kudos

Hi William:

Is the BAPI_CTRA_DOCUMENT_CHANGE  for both SAP standard fields and customer enhancements on the SAP table?.Even i am not able to figure out how to change the  FINRE and RDSTA standard fields content.

0 Kudos

Read the help for the bapi.  It does not provide the ability to change every field.  If you need to change a field beyond those provided by standard, then you have to do some enhancement.

0 Kudos

Can we achieve the same requirement using FQevents.?...

0 Kudos

I cannot think of how - but even if you could, why would you? The BAPI is the right way and the enhancement option provided is very straightforward

0 Kudos

Yes there are options like BAPI and normal FM to update DFKKOP table, but the requirement is to update the table  using the fqevents

0 Kudos

FQEVENTS is not a tool for creating or changing data - it is just a technique for implementing customer-specific enhancements.  FQEVENTS will be called by BAPI or by standard transactions.  You do not ever call FQEVENTS - so I don't understand what you are trying to do - the BAPI is the right answer.