Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

To Add Rejection Reason in VF11

$
0
0

Our requirement: Generally we don’t get the option to put the rejection reason in vf11.

Solution: Enhancement in Report LV60AU01  in ( ENHANCEMENT-POINT rv_invoice_create_04 SPOTS es_saplv60a)

1.png

Create Z implementation for the above Enhancement

Now for getting a pop up in VF11 use a FM UR_CF_POPUP_TEXT_INPUT

2.png

For updating values in the VF11 Header text use FM SAVE_TEXT

3.png

Values for header will be

HEADER-TDOBJECT = 'VBBK'.
 
HEADER-TDNAME   = 'NRLEVEL' " Value for the current canceled document num,
 
HEADER-TDID     = '0002'. " Value for TDID,
 
HEADER-TDSPRAS  = 'E'.

To get the current document number use below code.

4.png

If you do not have Header text for canceled document you need to maintain it from VOXTN t-code.

After all the changes run VF11.

It will give you pop up like below

5.png
And after saving the document we can check the value in VF03 Header text.

6.png

It will show like this

7.png


Regards,

Bhupesh Chandola


Viewing all articles
Browse latest Browse all 935

Trending Articles