Professional Documents
Culture Documents
Blocking PR
Blocking PR
Purchase Requisition to be blocked by checking the ABGRU(Reason for rejection of quotations and sales
orders) in VBAP and AUGRU(Order reason (reason for the business transaction)) in VBAK tables and then
block the document to be posted .
BADI - ME_REQ_POSTED
Method POSTED
Code:
IF sy-tcode EQ 'ME51N'.
DATA: im_wa_ebkn LIKE LINE OF im_ebkn.
DATA:
** Work area declaration for VBAP table
wa_vbap TYPE ty_vbap,
** Work area declaration for VBAK table
wa_vbak TYPE ty_vbak.
DATA: g_string TYPE string. " String declaration to display error message