cancel
Showing results for 
Search instead for 
Did you mean: 

RAP - Sales Order Payment BO

nicmon
Explorer
0 Kudos
138

Hi Experts,

I've an HTTP custom service created in a SAP Public Cloud environment.

Inside the service I'm using standard BO I_SALESORDERTP to create a Sales Order with partners/texts/items using the information I get in the json request of the HTTP service.

The next step I need to do is to register a payment over the same sales order I created before, but I'm not able to find the option inside I_SALESORDERTP. There is no entity to do this and no fields in the Heder to entity to enter payment information.

Is there a way to create a sales order payment via ABAP code? I saw that there is an standard API (CE_SALESORDER) that has some entities related to payments but I'm not sure if I can call it from ABAP code inside the service.

Thanks and regards!

Enda
Product and Topic Expert
Product and Topic Expert
0 Kudos
Adding tag SAP S/4HANA Cloud Public Edition Sales

Accepted Solutions (0)

Answers (1)

Answers (1)

Carlos_H_Rodriguez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Some questions: is the sales order process completed?  have you created an invoice and do you have an open AR line for the invoice?

The payment you indicate should be against the open A/R entry, right? - why are you trying to do it against the sales order?

Can you please indicate what best practice you are executing in this case?

Thanks,

-Carlos