Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Bapi or Func for T-code LT0G

Former Member
0 Kudos

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)

3 REPLIES 3

Former Member
0 Kudos

Hi,

did you try SHDB?

Regards, Dieter

0 Kudos

yes, I tried SHDB.

but it displayed a alvlist screen, I can't catch the value of check-box which I choosed

Former Member
0 Kudos

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