Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

do me a favor , mates

Hello experts:

Thank you in advance for all your replies.

take a look at the following program, could you please tell me how 12 in SY-TVAR0+12(3) works , it couldn't be better if you can explain it by examples. couldn't thank you more.

Best regards.

Frank

**********************************

REPORT ZPRACTISE.

data: g7(3) type n,

PR TYPE I,

tx_it1(36),

fkimg type p decimals 3.

fkimg = 2480 .

SY-TVAR0 = fkimg.

g7 = SY-TVAR0+12(3).

write : / g7.

Tags:
Former Member
Former Member replied

Hi,

This is an offsetting technique. Offsetting is fit for certain data types.The following sample code will give you some perception regarding the offsetting technique.

Note : use debug mode.

data : date like sy-datum,

var(10).

start-of-selection.

concatenate date6(2) '.' date4(2) '.' date+0(4) into var.

end-of-selection.

write : /1 var.

Reward if useful.

Regards,

Sankar.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question