When i am executing the driver program i am not getting the output means no signature is coming in invoice report
driverprogram code
*FORM get_signature TABLES in_tab TYPE zitcsy " added by kaustav das
* out_tab TYPE zitcsy.
*
* DATA: frggr like ekko-frggr,
* frgsx like ekko-frgsx,
* frgke like ekko-frgsx,
* frgzu LIKE ekko-frgzu.
*
* DATA v_num like ekko-ebeln.
*
* DATA : v_num1 LIKE cdhdr-objectid,
* v_num2 LIKE cdhdr-username,
* v_num3 LIKE cdhdr-tcode.
*
*DATA : v_num4 LIKE v_usr_name-bname,
* v_num5 LIKE v_usr_name-name_text.
*
*CLEAR : v_num.
*
** SELECT * FROM ekko WHERE ebeln = p_ebeln.
*
*READ TABLE in_tab WITH KEY name = 'ekko-ebeln'.
*
* IF sy-subrc eq 0.
* v_num = in_tab-value.
* ENDIF.
*
* SELECT SINGLE username tcode FROM cdhdr INTO (v_num2,v_num3)
* WHERE objectid = v_num.
*
* IF sy-subrc eq 0.
*
* SELECT SINGLE name_text FROM v_usr_name INTO v_num5
* WHERE bname = v_num2.
* ENDIF.
*
* LOOP AT out_tab.
* IF out_tab-name = 'v_num2'.
* out_tab-value = v_num2.
* ELSEIF out_tab-name = 'v_num3'.
* out_tab-value = v_num3.
* ELSEIF out_tab-name = 'v_num5'.
* out_tab-value = v_num5. .
* ENDIF.
* MODIFY out_tab TRANSPORTING value.
* ENDLOOP.
*
* endform.
SCRIPT LAYOUT
/* | signature Preapred Added by kaustav das | |
/: | DEFINE &V_NUM2& &V_NUM3& &V_NUM5& | |
/: | PERFORM GET_SIGNATURE IN PROGRAM ZMMPURCHASEORDERDRIVER5 | |
/: | USING &EKKO-EBELN& | |
/: | CHANGING &V_NUM2& | |
/: | CHANGING &V_NUM3& | |
/: | CHANGING &V_NUM5& | |
/: | ENDPERFORM | |
/: | IF &V_NUM3& EQ 'ME21N' | |
BS | 'Prepared By.' | |
BS | &V_NUM5& | |
/: | BITMAP 'KAUSTAV_DAS' OBJECT GRAPHICS ID BMAP TYPE BMON DPI 100 | |
/: | ENDIF |
But only prepared by line is print..Sign and name is not Showing