We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] Extracting data of VL10A in Internal Table

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Reply from arbis82 on Dec 1 at 7:42 AM
If I understand correctly, you want to get the ALV output of a program that you 'SUBMIT'ed from your custom program. And this you need as an internal table.

1. Check this blog, has some useful info: http://scn.sap.com/community/abap/blog/2011/07/07/ gain-programmatic-access-to-data-of-sapgui-alv-reports

It gives a comprehensive object-oriented way of accessing ALV output in runtime.

2. Alternatively, you can use EXPORTING LIST TO MEMORY AND RETURN after your SUBMIT VL10A ..... statement. Then you need to call two more function modules as follows:

CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = it_listobject1.

CALL FUNCTION 'LIST_TO_ASCI'
TABLES
listasci = it_ascii1
listobject = it_listobject1.
This will fetch the ALV output of VL10A into an internal table in your program

Refer the following SCN thread for the second approach :
http://scn.sap.com/thread/1602192

I would also recommend John Louk's suggestion. It does seem that what you are trying to do is a bit roundabout. Getting better clarity on functional requirements can give more elegant solutions. Submitting a program like VL10A directly in a custom report may have adverse impact on overall performance of the Z-report.

---------------Original Message---------------
From: Pamela79 Pilch
Sent: Wednesday, November 28, 2012 2:22 PM
Subject: Extracting data of VL10A in Internal Table

Hello,

We need to extract data from VL10A. It shows list of open sales order. The report output is ALV and one of the field is sales order number . One solution is , we can create a Z selection screen and pass that information in background to VL10 selection screen and run the report in background and then in the output we have the sales order no in ALV report output of VL10A

we then need to pass one of the fields of the above ALV report to an internal table. I need to know how can we achieve this. we need this since we can loop the internal table and fetch data from other tables.

regards
Pamela

 
Reply to this email to post your response.
 
__.____._
Manage Settings | Unsubscribe | Create FAQ | Send Feedback
  
Copyright © 2012 Ziff Davis, Inc. and message author.
Ziff Davis, Inc. 28 E 28th Street New York, NY 10016
arbis82  

achievements
 
Mark as helpful
View this online
Ask a new question
 
In the Spotlight
Toolbox.com for iPhone & Android: Ask Questions & Get Answers Anywhere. Download the Free App

_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language