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: 

Need BAPI to update Invoice R-Block(Payment block)

0 Kudos

Hi Experts,

We have a requirement to update invoice and Acc. doc with R-block programmatically.

Also we tried with the below BAPI's and could not succeeded. Please help with the correct bapi. Thanks in advance.

BAPI_ACC_PYMTBLK_UPDATE_POST

BAPI_INCOMINGINVOICE_CHANGE

Regards,

Thulasiram.

5 REPLIES 5

Shubham1
Employee
Employee
0 Kudos

Block invoice document with FM or BAPI | SCN

Hello

I suggest you please go through this thread as it talks about some standard configuration settings.

If your requirement is similar , this can be a good option.

Regards

Shubham

0 Kudos

Thanks much for the quick response.

I need the BAPI to update the R-Block because I would need to set the block in implicit enhancement.

I tried with updating the RBKP table with ZLSRP field. but was not successful as standard checks dependent tables aswell.

Please propose a BAPI to update the R-block.

thanks much in advance.

Regards,

Thulasiram.

0 Kudos

Hi

Try BAPI_INCOMINGINVOICE_SAVE.

Payment block is in import field PMNT_BLOCK in structure HEADERDATA.

Call BAPI_COMMIT afterwards.

Shubham

thanga_prakash
Active Contributor
0 Kudos

Hello Thulasiram,

It is not recommended to use COMMIT in the enhancements. Please don't use them, it may cause a inconsistency to the data and also it may lead to a dump.

Refer to below link.

commit work and enhancements | SCN


Regards,

Thanga

thanga_prakash
Active Contributor
0 Kudos

Where exactly are your doing the enhancements? in which program?

If it is in the invoice receipt creation.

Try with the SMOD enhancement LMR1M001 - Component "EXIT_SAPLMR1M_003".

or

BADI "INVOICE_UPDATE"