2023 Apr 15 3:05 AM
So, basically I have an custom app, and when I change the document currency ( vbak-waerk ), it also it's changing the transaction currency at item level ( vbap-waerk ). So I have this CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE' and i tryied a lot of try's changing the tables item_in and item_inx, all currency fields etc ( but then on item_inx it doesnt exist currency, idk why ).
I also tryied on conditions_in and conditions_inx change the respective currency etc and didnt change ( on that tables the value its changing but not the currency ).
To conclude, I want to pass the value of vbap-waerk to save it on sales order item level because when I change the document currency it changes the item currency because i'm calling sd_sales_document_change with items table not correct and someway it's picking the document currency ( vbak-waerk ) to populate the item currency.
Any help would be great,
I',m a junior.