04-21-2009 7:35 AM
Hi all,
FORM format_and_insert_txndtl
NOTE: Only 1 zcss_txn_dtl should be created per request
If message_code = u2018030u2019, u2018031u2019. u2018032u2019, u2018033u2019, u2018034u2019, u2018035u2019
Set zcss_txn_dtl-zstatus to u2018Cu2019 otherwise set zcss_txn_dtl-zstatus to u2018Fu2019.
Generate the Transaction ID
Call function u2018NUMBER_GET_NEXT using nr_range_nr = 01 and object = u2018ZCSSu2019 to generate the next transaction id.
Fill up the fields in zcss_txn_dtl table
All fields not included in the data mapping should be spaces.
Insert the zcss_txn_dtl record and commit work.
Please help me.
04-21-2009 7:55 AM
hello,
use the following pointers to help solve your issues.
FORM format_and_insert_txndtl
" NOTE: Only 1 zcss_txn_dtl should be created per request
Here you can set the varaible g_flag = 'X' when one request is created.
If message_code = u2018030u2019, u2018031u2019. u2018032u2019, u2018033u2019, u2018034u2019, u2018035u2019
Set zcss_txn_dtl-zstatus to u2018Cu2019 otherwise set zcss_txn_dtl-zstatus to u2018Fu2019.
case g_msgcode.
when ' u2018030u2019 or u2018031u2019 or u2018032u2019 or u2018033u2019 or u2018034u2019 or u2018035u2019 .
wa_zcss_txn_dtl-zstatus = 'C'
when 'OTHERS'.
wa_zcss_txn_dtl-zstatus = 'F'.
endcase.
Generate the Transaction ID
Call function u2018NUMBER_GET_NEXT using nr_range_nr = 01 and object = u2018ZCSSu2019 to generate the next transaction id.
Fill up the fields in zcss_txn_dtl table
All fields not included in the data mapping should be spaces.
move-corresponding fields from wa to wa_zcss_txn_dtl .
Insert the zcss_txn_dtl record and commit work.
insert wa_zcss_txn_dtl to zcss_txn_dtl.
ENDFORM.
hope this helps
Regards,
Mansi.