Avoid hard coding

You can avoid hard coding in SAP by using transaction stvarv. You can create parameters and use them in the program, suppose you need to maintain a check specific to an company code you can create a parameter using the […]

Continue reading »

Mail Send HTML

FUNCTION ZMM_R_WF_PR_FORWARD. *”———————————————————————- *”*”Local Interface: *” IMPORTING *” REFERENCE(IV_BANFN) TYPE BANFN *” REFERENCE(IV_WIID) TYPE SWW_WIID *” REFERENCE(IV_AGENT) TYPE UNAME *” REFERENCE(IV_FROM_AGENT) TYPE UNAME OPTIONAL *”———————————————————————- TYPES: BEGIN OF LTY_ID, BNAME TYPE XUBNAME, END OF LTY_ID. DATA: LT_OBJ_CONTENT TYPE TABLE OF […]

Continue reading »

Function Module to convert Hexa to Char

sap function module to convert into hexadecimal data : pr type string, op type xstring. DATA: CONVERTER TYPE REF TO CL_ABAP_CONV_OUT_CE. CONVERTER = CL_ABAP_CONV_OUT_CE=>CREATE( ENCODING = ‘UTF-8’ ). CONVERTER->RESET( ). CALL METHOD CONVERTER->WRITE EXPORTING DATA = pr. op = CONVERTER->GET_BUFFER( […]

Continue reading »

Creation of Time Confirmation BAPI

Time Confirmation can be created by using the below code and BAPI. BAPI for IW41 FUNCTION . *”———————————————————————- *”*”Local Interface: *” TABLES *” IT_TIME TYPE ZFCS_TT_IW31_TIME_CONFIRM *”———————————————————————- CHECK it_time[] IS NOT INITIAL. DATA: lt_time1 TYPE TABLE OF bapi_alm_timeconfirmation. DATA: ls_time1 […]

Continue reading »

SAP Database table for Time Confirmation

Table for Time Confirmation is afru stokz is the reversal and stzhl is for the reversal indicator sequence Below BAPI can used to get the data of time confirmation created according to the order IW32 or PM Order CALL FUNCTION ‘BAPI_ALM_GET_PROP’ * EXPORTING […]

Continue reading »

Creating Dynamic ALV Columns

Creating dynamic Columns in ALV REPORT . *TYPE-POOLS : slis. DATA : “ls_app TYPE zmm_pr_wf_app, ls_amt TYPE zmm_pr_approval. DATA : address TYPE bapiaddr3, return1 TYPE TABLE OF bapiret2. FIELD-SYMBOLS: <l_table> TYPE table, <l_table_new> TYPE table, <l_line> TYPE any, <l_field> TYPE […]

Continue reading »

BAPI For IW45 Time Confirmation cancel

Time Confirmation cancel is done by using transaction IW45. SAP has provided standard BAPI for it BAPI_ALM_CONF_CANCEL. You can cancel the time confirmation using the below code. *”———————————————————————- *”*”Local Interface: *” IMPORTING *” VALUE(IV_INPUT) TYPE ZFCS_IW31_TIME_CONFIRM *” EXPORTING *” VALUE(EV_OUTPUT) TYPE […]

Continue reading »

Convert any date format to Internal Format

User can use any date format, but while storing it in SAP system it expect only YYYYMMDD. so this can be done by using the below FM FUNCTION *”———————————————————————- *”*”Local interface: *” IMPORTING *” VALUE(IM_INPUT) TYPE CHAR10 *” EXPORTING *” […]

Continue reading »
1 6 7 8 9 10 19