Friday, May 18, 2012
Standard Text to Request
After done with the standard text from SO10, Execute the
program RSTXTRAN from SE38.
After selecting the execute it. Then in the next select/ deselect
the request that need to be inserted in the request and press Enter.
These standard texts are transferred to the customizing request which can be used for
transportation
Wednesday, January 11, 2012
Friday, March 11, 2011
to download from sap
http://help.sap.com/printdocu/core/print46c/en/data/index_en.htm
Another site to get all the pdfs
http://www.filestube.com/m/mysapclub+cn
some of fico materials can be found in
http://www.4shared.com/dir/Du6Yy6jM/SAP.html#
Another site to get all the pdfs
http://www.filestube.com/m/mysapclub+cn
some of fico materials can be found in
http://www.4shared.com/dir/Du6Yy6jM/SAP.html#
Sunday, February 27, 2011
Electronic Invoicing to remove the & and $ symbols in idoc message
move t100-text to text+len.
move text to akt_message.
BUFFER = T100-TEXT.
*if first &1/&2/&3/&4 or. $1/$2/$3/$4 replace
IF T100-TEXT CA '$1'.
REPLACE '$1' WITH INT_EDIDS-STAPA1 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$2'.
REPLACE '$2' WITH INT_EDIDS-STAPA2 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$3'.
REPLACE '$3' WITH INT_EDIDS-STAPA3 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$4'.
REPLACE '$4' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&1'.
REPLACE '&1' WITH INT_EDIDS-STAPA1 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&2'.
REPLACE '&2' WITH INT_EDIDS-STAPA2 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&3'.
REPLACE '&3' WITH INT_EDIDS-STAPA3 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&4'.
REPLACE '&4' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$'.
REPLACE '$' WITH INT_EDIDS-STAPA1 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA2 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA3 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&'.
REPLACE '&' WITH INT_EDIDS-STAPA1 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA2 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA3 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
CONDENSE BUFFER.
MOVE buffer to akt_message.
exit.
move text to akt_message.
BUFFER = T100-TEXT.
*if first &1/&2/&3/&4 or. $1/$2/$3/$4 replace
IF T100-TEXT CA '$1'.
REPLACE '$1' WITH INT_EDIDS-STAPA1 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$2'.
REPLACE '$2' WITH INT_EDIDS-STAPA2 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$3'.
REPLACE '$3' WITH INT_EDIDS-STAPA3 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$4'.
REPLACE '$4' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&1'.
REPLACE '&1' WITH INT_EDIDS-STAPA1 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&2'.
REPLACE '&2' WITH INT_EDIDS-STAPA2 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&3'.
REPLACE '&3' WITH INT_EDIDS-STAPA3 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&4'.
REPLACE '&4' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '$'.
REPLACE '$' WITH INT_EDIDS-STAPA1 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA2 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA3 INTO BUFFER.
REPLACE '$' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
IF T100-TEXT CA '&'.
REPLACE '&' WITH INT_EDIDS-STAPA1 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA2 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA3 INTO BUFFER.
REPLACE '&' WITH INT_EDIDS-STAPA4 INTO BUFFER.
ENDIF.
CONDENSE BUFFER.
MOVE buffer to akt_message.
exit.
To calculate the time difference
FORM calculate_time_diff_in_sec USING before_date LIKE sy-datum
before_time LIKE sy-uzeit
now_date LIKE sy-datum
now_time LIKE sy-uzeit
time_diff TYPE i.
DATA: delta_date TYPE i,
delta_time TYPE i.
delta_date = now_date - before_date.
delta_time = now_time - before_time.
IF delta_date < 0. " irregular situation
time_diff = 0.
ELSEIF delta_date > 2000. " avoid overflow
time_diff = 0.
ELSE.
time_diff = delta_date * 86400 + delta_time.
IF time_diff < 0. " irregular situation
time_diff = 0.
ENDIF.
ENDIF.
ENDFORM. " CALCULATE_TIME_DIFF_IN_SEC
before_time LIKE sy-uzeit
now_date LIKE sy-datum
now_time LIKE sy-uzeit
time_diff TYPE i.
DATA: delta_date TYPE i,
delta_time TYPE i.
delta_date = now_date - before_date.
delta_time = now_time - before_time.
IF delta_date < 0. " irregular situation
time_diff = 0.
ELSEIF delta_date > 2000. " avoid overflow
time_diff = 0.
ELSE.
time_diff = delta_date * 86400 + delta_time.
IF time_diff < 0. " irregular situation
time_diff = 0.
ENDIF.
ENDIF.
ENDFORM. " CALCULATE_TIME_DIFF_IN_SEC
Subscribe to:
Posts (Atom)
