Need to filter the out put of iw38 reprort
hello Experts,
i have requirement like need to filter the out put of iw38 report and after that again i need to filter that output by using department and client code and oreder .ned to show out put with 3 push buttons .
dertails:
selection screen fields:
region
customer code
oreder
date range
from these 4 fields i need to pass two(order and date range) fields to iw38 report and then what ever output i am getting again that should filter by customer code and region which are there in my program
, need to display the out put with 3 push buttons .
plz suggest me with appraoach and sample code .
Note : i am using using submit and return export memory but its directly showing iw38 output and not coming back.
Hi ananta,
The function module LIST_FROM_MEMORY loads the list from the ABAP Memory to an internal table of the row type ABAPLIST.
The function module WRITE_LIST inserts the content of an internal table of the row type ABAPLIST in the current list.
The function module DISPLAY_LIST displays the content of an internal table of the row type ABAPLIST in a separate list screen.
check the below program..
REPORT Z642_TEST2.
DATA list_tab TYPE TABLE OF abaplist.
SUBMIT riaufk20 EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = list_tab
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc = 0.
CALL FUNCTION 'WRITE_LIST'
TABLES
listobject = list_tab.
ENDIF.
write: ' This is calling program', sy-repid.
Edited by: Rammohan Nagam on Apr 8, 2009 4:05 PM
Similar Messages
-
Is it possible to display only dynamically selected fields in the out put?
Is it possible to display only dynamically selected fields in the out put? i need to display set of columns in the selection criteria, but in the output i have display only input given fields. because i need to convert it into .csv file. So i have to display selected fields from internal table. In oracle they are using"execute immediate". is there any equivalent in SAP?
thanks in advance.Hi Remya,
Are you talking about dynamic programming in ABAP ?
If yes, there are concepts like RTTS which facilitates it.
Yes, the select query also supports dynamic selection of fields. ( Please care about ( ) in dynamic sql ).
Do more research on Field Symbols and statements like ASSIGN COMPONENT OF.
Regards,
Philip. -
How to display the out put of the sql query in a text file using forms
I want to display the out put of the sql query in a text file using forms 6.0.Same could be done using spool command in sqlplus but i want it using forms....Fiaz
Have a look at the text_io package:
http://www.oracle.com/webapps/online-help/forms/10g/state?navSetId=_&navId=3&vtTopicFile=f1_help/oraini/c_text_io.html&vtTopicId=
cheers -
How should we get the out put file-name same as in put file-name in file to
Hi frnds,
having hundreds of files in the sender system with different names, how should we get the out put file-name in the receiver system same as the in put file-name in file to file scenario ?
Thanks in advance.
truly,
snrvakiti.Hi,
In Receiver File Adapter you can set under 'Adapter-Specific Message Properties'
check Use Adapter-Specific Message Properties
check Fail on Missing Adapter Message Properties
Check File Name
Have a look at this link, [File_to_File|http://allsapnetweavernotes.blogspot.com/2008/09/how-can-i-access-filename-from-fileftp.html]
Regards,
P.Rajesh -
Run Clear Case command from java and save the out put in to a file.
Can any one help me out ...
I want to execute Clear case command from a java and want to save the out put of this command to a file.
I am naot able to find out how to start..
Message was edited by:
chandra_vermahttp://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
-
While printing, why does PE11 crop the out put?
While printing, why does PE11 crop the out put?
Did you crop the photo to the same aspect ratio as your print size? If not, then the software will crop it for you.
-
Importing the out-put to the exel
Hi all,
iam very new to the unix and sql,
just i want to know how to export the out-put of the query into exel using unix(spool)A lot of people rob banks too.
You can spool an output to a file delimiting columns with commas if you wish. But that is outputting a file not outputting to Excel.
Personally I'd fire anyone in a data center I caught outputting Oracle into a non-secure unauditable form and putting the organization at risk. -
Printing all error messages in the out put report
Hi all,
I have MATNR and WERKS data in final internal table now my requirement is ineed to print all the error messages for all the materials (where sy-subrc ne 0) in the out put report. how can i do it for multiple error records will anybody tell me with coding
The Requirement is like bellow:
Take material number(s) (MARC-MATNR) from selection screen then check to see if any plants have that material setup as QM active (MARC-QMATV). If no, then issue message on report.
Thanks,Hi Mythili,
Hope the attached code helps you...
TABLES marc.
TYPE-POOLS: slis.
TYPES : BEGIN OF g_ty_msg,
type LIKE sy-msgty,
msg(120),
END OF g_ty_msg.
TYPES: BEGIN OF g_ty_marc,
matnr TYPE matnr,
werks TYPE werks_d,
qmatv TYPE qmatv,
END OF g_ty_marc.
DATA: g_t_msg TYPE TABLE OF g_ty_msg,
g_r_msg TYPE g_ty_msg.
DATA: g_t_marc TYPE TABLE OF g_ty_marc.
FIELD-SYMBOLS <fs_marc> TYPE g_ty_marc.
SELECT-OPTIONS: s_matnr FOR marc-matnr,
s_werks FOR marc-werks.
START-OF-SELECTION.
SELECT matnr werks qmatv FROM marc
INTO TABLE g_t_marc
WHERE matnr IN s_matnr AND
werks IN s_werks.
IF g_t_marc IS NOT INITIAL.
LOOP AT g_t_marc ASSIGNING <fs_marc>.
IF <fs_marc>-qmatv IS INITIAL.
g_r_msg-type = 'E'.
CONCATENATE <fs_marc>-matnr <fs_marc>-werks
INTO g_r_msg-msg SEPARATED BY space.
APPEND g_r_msg TO g_t_msg.
CLEAR g_r_msg.
ENDIF.
ENDLOOP.
ENDIF.
END-OF-SELECTION.
PERFORM display_log.
*& Form display_log
To display error log as an ALV Popup
FORM display_log .
CONSTANTS: l_c_type(4) TYPE c VALUE 'TYPE',
l_c_msg(3) TYPE c VALUE 'MSG'.
DATA : l_t_fieldcat TYPE TABLE OF slis_fieldcat_alv,
l_r_fieldcat TYPE slis_fieldcat_alv.
DATA : l_f_line TYPE i.
CLEAR l_r_fieldcat.
l_f_line = l_f_line + 1.
l_r_fieldcat-col_pos = l_f_line.
l_r_fieldcat-fieldname = l_c_type.
l_r_fieldcat-seltext_m = 'Type'.
APPEND l_r_fieldcat TO l_t_fieldcat.
CLEAR l_r_fieldcat.
l_f_line = l_f_line + 1.
l_r_fieldcat-col_pos = l_f_line.
l_r_fieldcat-fieldname = l_c_msg.
l_r_fieldcat-seltext_m = 'Message'.
l_r_fieldcat-outputlen = 120.
APPEND l_r_fieldcat TO l_t_fieldcat.
To display the message log as a Popup in the form of ALV List
CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
EXPORTING
i_title = 'Message Log'
i_tabname = 'G_TY_MSG'
it_fieldcat = l_t_fieldcat[]
TABLES
t_outtab = g_t_msg
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " display_log
Best Regards,
Suresh -
Store the out put of smartform in a directory which is created on app..Serv
Dear All,
I want to store the out put of smartform in a directory which is created on application server.so that the user in future can directly print the output with out again executing the smartform.....
regards,
Sudheer.Ghi Sudheer,
Correct me if I am worng but you cannot issue output without executing smartform.
If you want to just store the output in App server then use the PDF output option in SmartForm attributes. Then use
OPEN DATASET.
READ DATASET.
CLOSE DATASET.
to store the PDF on app servee.
Rgd
Vivek
Reward if helps -
I need to filter the field Compensation Review :iview Compensation Planning
hello
I need to filter the field Compensation Review (iview Compensation Planning), this value come from table : T71ADM08 Compensation Reviews
i have many values, but i need show a range o one set the of values, any ideas ??
I can show only one filtering parameter from the parameter value of the iView, but it only one value, I need a filter a range
please any ideas, ???Hello,
having had this very same issue in the past - the option we went with was to enhance the RFC FM that returned the list of the reviews with some removed depending on the employee type.
(I'm assuming that the list of avaliable reviews is dependent on the employee and that's why you want to filter).
Chris -
Is it possible to export the out put of Crystal report into text file?
Hi All,
Is it possible to export the out put of Crystal report into text file?Hi
Yes, Go to File --> Export --> Export Report --> Under Format select TEXT & select the destination as "Disk file"(defaultly selected)
Give the proper details as per your requirement for "Characters per inch" & "Number of lines per page" & click on 'OK"
In "Choose Export file" window, select the destination folder & provide file name. click on "SAVE"
Regards
Ashwini -
Where we will see the out put of propotional factor
Hi Experts,
I have maintained in mc8v (Proportional factor) after this where is the out put will see for propotional factor . I have maintained in basic proportion is cube ,keyfigure,verion and calculate proportion maintained planning area, keyfiguer in other setting maintained selection profile. Can you tell me output where will see. how it will work. can u elaborate.
Regards,
moonMoon,
The keyfigure that is usually updated is APODPDANT. Find or create a view where this keyfigure is visible (that particular book must have 'manual proportion maintenance' turned on), and you can then review the results of the Prop Factor calculation by opening the planning book using that view.
Proportional factor will do nothing unless you have configured your planning area to use it for disaggregation, or you have included this Proportional Factor KF in one of your macros.
http://help.sap.com/saphelp_scm70/helpdata/EN/66/29fb672fbe11d398240000e8a49608/frameset.htm
Best Regards,
DB49 -
When I run a BAPI , then What is the out put?
When I run a BAPI , then What is the out put format ?
Is there anyone in Chennai regarding this ?the BAPI i am creating will fetch the sales order header data (along with partner details) and item data and put it in the JMS que (JAVA MESSAGE SERVICE) ....
Can we use more than one internal table where i will put the data
i.e
1. for header data
2. for partner (because the partners will be repeated
3. for item data
and the BAPI will fetch the data from SAP tables and put it in these tables....and we can fetch the data by an integrator software and finally put it in the JMS queue..... -
To get the the out put of the procedure..help needed
hi all,
i have a procedure :
CREATE OR REPLACE PROCEDURE EN_GetCategory
StaffID IN VARCHAR2 DEFAULT NULL,
ResultCategory OUT VARCHAR2
AS
v_exec_tx varchar2(2000);
Condition VARCHAR2(1000);
Category VARCHAR2(1);
SQL_ADV VARCHAR2(2000);
Cnt NUMBER(10);
Cnt1 NUMBER(10);
CURSOR curCategory IS
SELECT SMC.Category,SMC.Condition FROM ST_MS_Category SMC ORDER BY OrderRowNo;
BEGIN
EXECUTE IMMEDIATE 'TRUNCATE TABLE TMP';
OPEN curCategory;
FETCH curCategory INTO Category, Condition;
while curCategory%FOUND
LOOP
BEGIN
v_exec_tx:='SELECT COUNT(*) FROM ST_EMPLOYEE WHERE StaffID=''' || EN_GETCATEGORY.STAFFID ||''' AND ' || EN_GETCATEGORY.CONDITION;
EXECUTE IMMEDIATE v_exec_tx into Cnt;
IF Cnt > 0 THEN SELECT COUNT(*) INTO CNT1 FROM tmp ;
IF CNT1> 0 THEN
UPDATE tmp SET CAT = Category ;
ELSE
INSERT INTO tmp VALUES (Category );
END IF;
END IF;
FETCH curCategory INTO Category, Condition;
END;
END LOOP;
CLOSE curCategory;
BEGIN
FOR REC IN ( SELECT CAT FROM tmp
LOOP
EN_GetCategory.ResultCategory := REC.CAT;
END LOOP;
END;
END;
i need to execute this procedure..
i tried EXEC EN_GETCATEGORY('812005','');
but getting error invalid sql statemnt..
i think for this we have to write some more code can u please help to to find the output ofthis procedure..
Thanks In advanceHi,
i tried EXEC EN_GETCATEGORY('812005','');It's execute Procedure_name('Parameters');
Regds.What tosh! "exec" is perfectly ok to use to call a procedure.
The problem is with the OUT parameter. You need to declare a variable into which the OUT value can be put. -
Need to filter the Master Column
Hi Experts,
I need to filter a master column in my wd table. I am not finding an option to get the filter text in VewController. Master column of the filter row is not enabled to enter filter text. Can some one suggest me how can I proceed to make filter enabled for master column?
Thanks in advance.Hi,
If you are using table UI element, you have to do some bit of coding to get the filter row.
1. Define a context node with cardinality 1..1. This node should have the attribute(s) for which a filter is required, and the attribute should be that same data type as that of the column attribute.
2. In the layout tab, for the specific table column for which filter is needed, bind the 'filterValue' property to the corresponding attribute created in step 1.
3. Define and implement an event handler for the 'onFilter' event of the table. This event handler should programatically filter the table.
Now, in the layout itself you should see the 'Filter row' for the table.
Hope this helps,
Regards,
Wenonah
Maybe you are looking for
-
Hi All, Can anybody describe me the functonality of SBO Mailer. How to configure it and how it works? Is it possible to Schedule reports with SBO mailer at a particular time in a day?
-
Business area vs profit center togather
HI, FRIENDS friends i need to know that can we use business area and profit center to gather at a time. eg 1). business area at different region in the country.(different branchs) 2) profit center at product line level.( different products) please h
-
Planning Layout : IE7 memory consumption
Hello, When we try to save 100 lines in planning layout IE7 memory comsumption make computer crash. Nothing is send to the server and IE7 takes more than 10 minutes to send data. We have installed Copy and Paste how to , but even when we retrieve it
-
WLC HA, difference between GLOBAL- and AP- High Availability
hello everyone, I have a question regarding HA and LAP... we have two 5508 (sw ver 6.0.199.4), on each specific AP we have an entry for which is his primary and secondary controller so far so good, when one controller fails, the AP is connecting to t
-
I have lost years worth of music and pictures not all from the same pc how can i get it back
I have lost years worth of music and pictures from my ipod how can i retrieve them ?