cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the CurSource in OPOR with DI API?

Former Member
0 Kudos

when i try to export my PO data to the SAP B, i found the following error message "5002 invalid currency code ,VendorNum[Line1], RM",

it is possible that i can set the value of "curSource (L/S/C)" at the OPOR when adding data to PO?

Message was edited by:

lew vion

Message was edited by:

lew vion

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185703
Active Contributor
0 Kudos

Hi Lew,

I think you should check the currency settings for the vendor - and then please note that most of the properties that are relevant on Document level start with "Doc" - like "DocCurrency"...

...or use the "Currency" property on line level - whatever is right for you...

I am not aware of a setting for one of the three "special" currencies (L/S/C).

HTH,

Frank

Message was edited by:

Frank Moebius

Former Member
0 Kudos

Hi Frank,

in the OPOR table, got a field name "CurSource" which used to determine the currency of the document (local currency, system currency, bp currency) , i set the defaulf currency of my DI server to bp currency, so that i hope i can gain control on the selection of (local currency (RM), system currency (SGD), bp currency(USD)).

example: if the BP currency is (USD), then i pass the DocCurrency = "RM" then the error will occur, so if possible i want to pass a (local currency, system currency, bp currency) which is more consistent, thanks your reply.

From Lew.