cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MRBR won't release invoice with manual block when called in a custom program.

walkerist79
Participant
0 Likes
895

I have created a program that releases automatic and manually blocked invoices. However, it is not releasing the invoices with manual block. I'm using BDC data to release it in MRBR.

For automatically blocked invoice the BDC data is:

PA_XAUTO = X

PA_XSPGR = X

For manually blocked the BDC data is:

PA_XMANU = X

PA_ZLSPR = X

 

Since I was not able to release the invoice with manual block in my ZPROGRAM, I tried to release in MRBR 

With the parameters of COmpany code, Fiscal YEar, Supplier, and the parameters below and it was successfully released. 

walkerist_0-1719395163772.png

How do I check why I'm getting sy-subrc = 1001 when releasing the invoice using my zprogram? 

Thanks

 

 

Accepted Solutions (1)

Accepted Solutions (1)

333sandy
Discoverer

Hello,

When you recording a BDC for MRBR transaction, I think you have not selected the invoice line items from displayed list that you wish to unblock from report.

if you selected these line items, you will see additional fields in recording like 

BDC_CURSOR 04/03
BDC_OKCODE =&ALL

BDC_CURSOR 04/03
BDC_OKCODE =FREI

BDC_CURSOR 04/03
BDC_OKCODE =STRG-S

Along with your already inserted fields ; - 

PA_XMANU X
PA_XSPGR
PA_ZLSPR X

- try creating another recording for MRBR ; and when the report shows the list of invoices;

instead of selecting the checkboxes manually;

try selecting all the invoices from Menu bar -> Edit -> Select All -> and Now, you can see all your invoices are selected ; click on Release Icon; these steps will be recorded in your BDC;

TIP - Since you posted all your manual blocked invoices; there will be NO data available; you may create a New one and try with Newly recorded screen.

Hope this will solve your issue.

Best Regards,

Sandeep Kumar

walkerist79
Participant
0 Likes

@333sandy  thanks for this great answer. It somehow helped me. However, sometimes, the Payment Blocking was not lifted on the invoice document of my purchase order.

This is the screen in txn MRBR:

walkerist_0-1719803990063.png

 

While this is the screen of the txn MRBR when called in SHDB, the payment block column is not visible on the screen

walkerist_1-1719803354698.png


The steps I need to do is, SELECT ALL > BLOCKING REASON > RELEASE OR "GREEN FLAG" > SAVE. How do I know the BDC_CODE for that? on the SHDB, I need to scroll to the right and I think the SHDB was capturing that.

 

333sandy
Discoverer
0 Likes
Hello Walkerist,

Answers (0)