SAP Add new entry into docflow display

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:
 
 
 Step 1  - 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 
 
 
 Press create
 
 
 Give it a name
 
 
 Enter your desired value
 
 
 
 Step 2 -  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.
 
 
 Step 3 -  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.
 
 
 
 





Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!