Application Development 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: 

Override CardName in DI API

0 Kudos
237
  • SAP Managed Tags:

I'm trying to create an Incoming Payment thru DI API. Here's is a snippet of my code

Set oPayments = sapCompany.GetBusinessObject(oIncomingPayments)
oPayments.CardCode = .Fields("CardCode")

oPayments.CardName = .Fields("CardName")

After adding it, I check on the Incoming Payment document in SAP, CardName is not the one I wanted but the one in the Business Partner.

Is there a way to override this behavior? I know that CardName is automatically filled up depending on the CardCode entered but we want to change it in the Incoming Payment document.

1 REPLY 1

0 Kudos
129
  • SAP Managed Tags:

Anyone out there who can help me? Is this possible?