Skip to Content

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

ABAP capture the values of C_LGTYn+1 through C_LGT29 into Global Variables

Hi Team ,

Requirement is like as follows :

1. If C_LGTYn = u201C++u201D, then capture the values of C_LGTYn1 through C_LGT29 into Global Variables (for example G_C_LGTYn+1)

C_LGTYn where n = 1 to 9 and C_LGTnn = 10 to 29. u201C++u201D could exist in any of these fields. We only want to capture the values of the fields after the u201C+u201D. For example, if u201C++u201D existed in C_LGTY3, then we want the values of C_LGTY4 through C_LGT29. and store all value into global variable like G_C_LGTY4 , 5, 6, 7, 8, 9.......29.

for example :-->

C_LGTY4 = '+++'.

C_LGTY5 = 'IBB'.

C_LGTY6 = 'PEE'.

C_LGTY7 = '123.

C_LGTY8 = '345'.

C_LGTY9 = .

C_LGT10 = '345'.

C_LGT11 = 'WER'.

output as follows :-->

G_C_LGTY5 = 'IBB'.

G_C_LGTY6 = 'PEE'.

G_C_LGTY7 = '123.

G_C_LGTY8 = '345'.

G_C_LGTY9 = .

G_C_LGT10 = '345'.

G_C_LGT11 = 'WER'.

Could you please suggest me the logic.

Thanks In Advance.

Puneet.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question