Adding fields to the out put list of a standard program
Hi All,
I have a problem , i need to add two fields to the output list which we get by executing the transaction CJ74( actual cost line item). The final table is a field symbol(<gt_pos_data>).
can i implement this way will it works out.
I want to create an internal table with all fields of the final internal table(field symbol) and the new 2 fields.My problem is how can i include the fields of the field symbol to my table.
can anyone do the needful ASAP.
Regards and Thanks in advance,
Priya.
Hi Priya,
Guess my last suggestion didn't work.
I was checking the program and found that just before the ALV function an exit is provided and there are about 6-7 exits however I am not sure if it will solve the purpose for two reasons.
1. these exits either talk about authorization which is of no use to us OR about layout of ALV which can be used to enhance the layout .
however this will only enhance the layout and to add data to the table i am not sure nor could i check because of the second reason.
2.Tried all possible data available in IDES to produce an output of the report however was not sucessful.
if you know any stadard selection screen data which i can provide and produce an output do let me know to help you further.
Otherwise here by checking the code I found some ASSIGN statement assigninng data to out field symbol. And all these assign statements are actually assigning either tables or work area to the FS. So I would suggest to put a break-point on the ALV function being called and check the format in the FS <gt_pos_data> and accordingly assgn the two fields which you need i.e first name last name , in your z program and also update the layout. For standard i am not sure for the reasons above that wether the same can be enhanced.
<b>Always reward points to useful suggestions.</b>
regards,
Vikas
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. -
VA05 transaction to add some other fields in out put list
Hi guys,
i have requirement that i have to add some fields which are in custom table to that output list('List of Sales Orders' screen)
plz help me out regarding this.
thanks.thanks for responce da,
but i want to add my custom table fields in alv out put list,
where i can write query to get the data, and how to insert my fields in that list output.
plz help da. -
ITS URGENT : chek box in out put list
Hi all ,
my requirement is i have provided Reject Button in application tool bar of out put list in report . when pressing reject button, what r the records selected that can be saved as Reject status . (Table zvendors having field status.) Here i am populating check box for each record in the out put list .
PLS SEND ME THE CODE .
HERE I AM USING THE CODE ......
DATA: BEGIN OF I_SUMMARY OCCURS 0,
SELECT(1),
SUB_DATE LIKE ZZKIOSKACT-REQDT,
TYPE LIKE ZZSVENDOR-VTYPE,
APPNO LIKE ZZSVENDOR-APPNO,
NAME1 LIKE ZZSVENDOR-NAME1,
NAME2 LIKE ZZSVENDOR-NAME2,
VENDOR(50),
STATUS LIKE ZZSVENDOR-VMCREAT,
STAT_DATE LIKE ZZKIOSKACT-REQDT,
VENDORID LIKE ZZSVENDOR-VENDOR,
EPROCURENUM LIKE ZZSVENDOR-EPROCURENUM,
CRM_ORDER_NUM LIKE ZZSVENDOR-CRM_ORDER_NUM, " added by nagendra
VENDOR_UPD_DAT(10) , "LIKE ZZKIOSKACT-REQDT,
VENDOR_UPD_TIM(10),
END OF I_SUMMARY.
DATA: BEGIN OF C_POS1,
VLIN_START TYPE I VALUE 1, " vertical line
STPOS_SEL TYPE I VALUE 2, "starting position
LEN_SEL TYPE I VALUE 3, "length of field
VLIN_TYPE TYPE I VALUE 6,
STPOS_TYPE TYPE I VALUE 7,
LEN_TYPE TYPE I VALUE 20,
VLIN_ESV TYPE I VALUE 22,
STPOS_ESV TYPE I VALUE 23,
LEN_ESV TYPE I VALUE 10,
VLIN_APP TYPE I VALUE 42,
STPOS_APP TYPE I VALUE 43,
LEN_APP TYPE I VALUE 16,
VLIN_SUBDATE TYPE I VALUE 59,
STPOS_SUBDATE TYPE I VALUE 60,
LEN_SUBDATE TYPE I VALUE 12,
VLIN_VENDOR TYPE I VALUE 71,
STPOS_VENDOR TYPE I VALUE 72,
LEN_VENDOR TYPE I VALUE 50,
VLIN_STAT TYPE I VALUE 130,
STPOS_STAT TYPE I VALUE 131,
LEN_STAT TYPE I VALUE 20,
VLIN_STATDATE TYPE I VALUE 156,
STPOS_STATDATE TYPE I VALUE 157,
LEN_STATDATE TYPE I VALUE 10,
VLIN_VENUPDAT TYPE I VALUE 169,
STPOS_VENUPDAT TYPE I VALUE 170,
LEN_VENUPDAT TYPE I VALUE 12,
VLIN_VENUPTIM TYPE I VALUE 185,
STPOS_VENUPTIM TYPE I VALUE 186,
LEN_VENUPTIM TYPE I VALUE 12,
VLIN_END TYPE I VALUE 199,
END OF C_POS1,
write statement
LOOP AT I_SUMMARY.
LINECOUNT = SY-TABIX MOD 2.
IF LINECOUNT = 1.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
WRITE AT: /C_POS1-VLIN_START SY-VLINE.
WRITE AT C_POS1-STPOS_SEL SELECT AS CHECKBOX. "I_SUMMARY-SELECT
WRITE AT: C_POS1-VLIN_TYPE SY-VLINE.
WRITE AT C_POS1-STPOS_TYPE(C_POS1-LEN_TYPE) I_SUMMARY-VENDORID
CENTERED.
WRITE AT: C_POS1-VLIN_ESV SY-VLINE.
WRITE AT C_POS1-STPOS_ESV(C_POS1-LEN_ESV) I_SUMMARY-CRM_ORDER_NUM
NO-ZERO CENTERED.
WRITE AT: C_POS1-VLIN_APP SY-VLINE.
WRITE AT C_POS1-STPOS_APP(C_POS1-LEN_APP) I_SUMMARY-APPNO
NO-ZERO USING NO EDIT MASK CENTERED.
WRITE AT: C_POS1-VLIN_SUBDATE SY-VLINE.
WRITE AT C_POS1-STPOS_SUBDATE(C_POS1-LEN_SUBDATE)
I_SUMMARY-SUB_DATE.
WRITE AT: C_POS1-VLIN_VENDOR SY-VLINE.
WRITE AT C_POS1-STPOS_VENDOR(C_POS1-LEN_VENDOR)
I_SUMMARY-VENDOR.
WRITE AT: C_POS1-VLIN_STATDATE SY-VLINE.
WRITE AT C_POS1-STPOS_STATDATE(C_POS1-LEN_STATDATE)
I_SUMMARY-STAT_DATE.
WRITE AT: C_POS1-VLIN_VENUPDAT SY-VLINE.
IF NOT I_SUMMARY-VENDOR_UPD_DAT IS INITIAL.
DATA : V_DATS(10).
CLEAR V_DATS.
CONCATENATE
I_SUMMARY-VENDOR_UPD_DAT+4(2)
I_SUMMARY-VENDOR_UPD_DAT+6(2)
I_SUMMARY-VENDOR_UPD_DAT+0(4)
INTO V_DATS SEPARATED BY '/'.
WRITE AT C_POS1-STPOS_VENUPDAT(C_POS1-LEN_VENUPDAT)
V_DATS .
ELSE.
I_SUMMARY-VENDOR_UPD_DAT = ' '.
WRITE AT C_POS1-STPOS_VENUPDAT(C_POS1-LEN_VENUPDAT)
I_SUMMARY-VENDOR_UPD_DAT USING NO EDIT MASK .
ENDIF.
WRITE AT: C_POS1-VLIN_VENUPTIM SY-VLINE.
WRITE AT C_POS1-STPOS_VENUPTIM(C_POS1-LEN_VENUPTIM)
I_SUMMARY-VENDOR_UPD_TIM.
WRITE AT: C_POS1-VLIN_END SY-VLINE.
ENDLOOP.
Edited by: nagendra k on Feb 24, 2008 5:27 AM
Edited by: nagendra k on Feb 25, 2008 5:13 AMCASE sy-ucomm.
WHEN 'REJECT'.
gv_chk = space.
DO gv_lines TIMES.
READ LINE sy-index FIELD VALUE gv_chk.
IF gv_chk = 'X'.
Statements to Save the Record.
ENDIF.
ENDDO.
ENDCASE.
Here gv_chk is a character variable to hold the status of check box for each line.
gv_lines hold the number of records.
awrd points if useful
Bhupal -
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 -
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 -
Adding field in the standard report
Hi ,
i have added the one field in the standard transaction VL06 , in the outboud deliveries report according to the Note 605460. I have to add the field in LIPOV structure.
after adding that field(include structure), in output i am not getting that added field.
please help me .
regards,
ajay reddy>
Ajay reddy wrote:
> hI,
>
> i got the one more note to display added field in the report . (Note : 128154)
>
> thanks for your tme
>
> regards,
> Ajay reddy
Hi Ajay,
I have the same problem. I have added the field in the field catalog and the field in the final internal table also.
But sometimes its displayed and sometime not.
Looking forward for some help here.
Varun -
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
-
Adding fields to the standard Report
hi ,
could u plz tell me what r the guidelines we have to follow
while adding fields to the standard Report. (Ver ECC 6.0)
in QA32 Tcode, after executing it will generate a report there i hv to add it.
I could find structure of that main final table, i hv appended desired field also,
Now im looking into Enhancement spot for it, is there any method to do it.
Plz hv eye on it.
Regards
VivekHi ,
this is the exact answer for your question.
Go to the inclide RQALVF14 in this there is a perform call_listviewer_f14, in this the output is displaying using REUSE_ALV_GRID_DISPLAY function module . before this do like this ..
modify the output table p_object_tab like this .
the output table is of structure QALS_D02 you can extend this by appending a structure with the custom fields and there is an enhancement ( i have checked it) in this routine call_listviewer_f14 in RQALVF14. Create an enhancement in this routine at the start of the routine and modify the output table using your custom code in it , then you wil get the data as well as fields into fieldcatalog,.
Regards,
Venkat Appikonda. -
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. -
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 -
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
Maybe you are looking for
-
CALL_FUNCTION_CONFLICT_TYPE Standard Data loading
Hi, I am facing a data loading problem using Business content on CPS_DATE infocube (0PS_DAT_MLS datasource). The R/3 extraction processes without any error, but the problem occurs in the update rules while updating the milestone date. Please find her
-
File Content Conversion in Sender File
how to convert a fixed length flat file without end seperator sent to XI to a xml form? Pleasegive me the idea of Sender Adapter configuration details (esp endSeperator)
-
Find/Change Inserting paragraph break
Hello I am trying to insert a paragraph mark between two lines of text using find/change The first line has a heading style and I want to insert an empty line (Paragraph) after it and before the next line (without changing any formatting) I am able t
-
How to create a button that close a window/popup.
Hi, I must create in a view a button that close the window/popup that include the view, the button must be like the OK button of the popup or the X button at the top-right side . It's possible?
-
How to modify (add a new field) existing SOAP data source ?
Dear Friends, I am getting data from Legacy databases (from different Views) mapped to the BW through XI. There is an existing SOAP Data source which is mapped to the non-R/3 source system Views through XI. My question is: Now I wanted to add a new f