Skip to Content
author's profile photo Former Member
Former Member

varibale code

Hi,

I have a fields which has differerent characters in length.

EG

Field 1 = 1 values are like this = 1

Field 2 = 3 value = 123

field 4 = 5 Value = 123100

Field 5 = 8 value = 123100900

Field 6 = 11 va;ue 12310090082

Field 7 = 13 value = 1231009008251

field 8 = 18 value = 123100900825110

I have to create the varible which can accept their respoective code

Eg: field 2 = 23

field 3 = 100

field 4 900

where as in the table it is stored as full code that is field 2 = 123 i need to select last 2 character

i can do that but problme is like this we have different selectionfor the field 4 we cna have 123100,123200 etc combination should be picked up correctly

I need to have the abap code for this

help is urgently needed.

~Thanks

Use meaningful Subject

Edited by: Vijay Babu Dudla on Feb 26, 2009 7:53 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 26, 2009 at 11:04 AM

    Could you be a little more clear here?

    Pushpraj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Pushpraj Singh

      pushpa raj singh give u the correct reply.follow this one .

      it will leave the 1st 3 characters and store the ;last 3 characters .

      field1 = 15487963.

      field1 = field1+2(2).... answer is : '48'.

      field1 = field1+offset(length).

      it will leave the 1st two char and store the 3rd and 4th char .

      Thanks ,

      jowar

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.