Add new entry into docflow display









Add new entry into docflow display



It is very easy to add a new entry to the doc flow tree structure, or modify the existing entries using the following steps:


<b>Step 1 </b> - Add new document type to doc type data element
Append structure to VBFA-VBTYP
Created new domain value 'Z' for new document type

within SE11 table VBFA data element VBTYP_N domain VBTYP select Goto->Fixed value append
<img src="fixed-value-append.png">

Press create
<img src="fixed-value-append-create.png">

Give it a name
<img src="fixed-value-append-name.png">

Enter your desired value
<img src="fixed-value-append-value.png">


<b>Step 2 - </b> Implement user exit LV05CFZZ
The next step is to implement the SAP User exit LV05CFZZ which will add custom doc flow processing within RV_ORDER_FLOW_INFORMATION to show or update the displayed doc flow.

Example code:
vbfa_tab-vbelv = '4500000001'.
vbfa_tab-posnv = '000010'.
vbfa_tab-vbeln = '4500000002'.
vbfa_tab-posnn = '000000'.
vbfa_tab-vbtyp_n = 'Y'. " new type created
vbfa_tab-vbtyp_v = 'C'.

APPEND vbfa_tab TO vbfa_tab.


<b>Step 3 - </b> Implement Enhancement spot ES_SAPLV06A
The last step is to implement the Enhancement spot ES_SAPLV06A which will add the display document functionality for the new type i.e. what it will do when you click on the entry within the doc flow,for example Call appropriate transaction VA02 .

Example code for ehancement spot, basically just need to extend the case to include a when for your new type i.e. Y
ENHANCEMENT 1 ZSD_ES_SAPLV06A. "active version
CASE VBTYP.
WHEN 'Y'.
SET PARAMETER ID 'AUN' FIELD VBELN.
SET PARAMETER ID 'VPO' FIELD POSNR.
PERFORM AUTHORITY_CHECK USING 'VA03'.
CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
endcase.
ENDENHANCEMENT.

<img src="es_saplv06a.png">