05-06-2016 12:16 PM
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.
05-06-2016 12:29 PM
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
05-06-2016 12:34 PM
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.
05-06-2016 12:42 PM
Hi
Try BAPI_INCOMINGINVOICE_SAVE.
Payment block is in import field PMNT_BLOCK in structure HEADERDATA.
Call BAPI_COMMIT afterwards.
Shubham
05-06-2016 3:28 PM
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
05-06-2016 3:39 PM
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"