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: 

Reading a standard text

Former Member
0 Kudos

Hi All,

I am reading a standard text using the function module "READ_TEXT".

The text contains all Plant addresses

as given below

/: CASE &T001W-WERKS&

/: when 'P001'.

  • Adress 1

  • Adress 2

  • Adress 3

/: when 'P002'.

  • Adress 1

  • Adress 2

  • Adress 3

Here I need to read the address based on the given plant in the selection.Is there any possibility to read perticular plant address directly by passing the plant. This I need in report.

Edited by: ravi itekala on Jun 26, 2008 10:58 PM

2 REPLIES 2

Former Member
0 Kudos

No you cannot directly read the address by passing plant value. But there is one indirect way, after reading the std. text with FM READ_TEXT. U can search with plant in the table LINES against 'When' . For example in ur code u have a plant value store in variable say l_plant. Now search with it in table LINES. If record found then fetch the address attached with it by using some custom logic.

Regards,

Joy.

0 Kudos

Hi Jyojit,

Thanks for your explanation. I made totally custom, now it is working fine.

Thanks,

Deepak

Edited by: ravi itekala on Jun 27, 2008 4:06 PM