10-21-2008 8:43 AM
Hi, everybody,
Is there any bapi or function module for t-code: LT0G?
or anyone can show me how to do it using BDC?(we must generate a TO for every item, one item one TO)
10-21-2008 8:58 AM
10-21-2008 9:04 AM
yes, I tried SHDB.
but it displayed a alvlist screen, I can't catch the value of check-box which I choosed
10-21-2008 9:19 AM
hello,
i tried for u r tcode its working fine...
report ZTEST_12334
no standard page heading line-size 255.
include bdcrecx1.
parameters: dataset(132) lower case.
DO NOT CHANGE - the generated data section - DO NOT CHANGE ***
*
If it is nessesary to change the data section use the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
*
Generated data section with specific formatting - DO NOT CHANGE ***
data: begin of record,
data element:
LGNUM_001(003),
data element:
LOW_002(010),
data element:
HIGH_003(010),
data element:
LOW_004(003),
data element:
P_VBELN_005(001),
data element:
P_TAPOS_006(001),
end of record.
End generated data section ***
start-of-selection.
perform open_dataset using dataset.
perform open_group.
do.
read dataset dataset into record.
if sy-subrc <> 0. exit. endif.
perform bdc_dynpro using 'RLLT0G00' '1000'.
perform bdc_field using 'BDC_CURSOR'
'P_TAPOS'.
perform bdc_field using 'BDC_OKCODE'
'=ONLI'.
perform bdc_field using 'LGNUM'
record-LGNUM_001.
perform bdc_field using 'VBELN-LOW'
record-LOW_002.
perform bdc_field using 'VBELN-HIGH'
record-HIGH_003.
perform bdc_field using 'BWLVS-LOW'
record-LOW_004.
perform bdc_field using 'P_VBELN'
record-P_VBELN_005.
perform bdc_field using 'P_TAPOS'
record-P_TAPOS_006.
perform bdc_transaction using 'LT0G'.
enddo.
perform close_group.
thank u,
santhosh