Regarding field description in report
HI,
I had made a report in which i am displaying the changes made to a material in a purticular month.
it is working fine but 1 field i am looking for is d description which is similar to MM04 tcode when we execute there is field called field description and i want to display it my report also.plzz help me out as it is really urgent to me..
here is d code:-
REPORT ZNEW01 no standard page heading LINE-SIZE 310.
TABLES: cdhdr,cdpos.
DATA : BEGIN OF itab OCCURS 0,
objectclas LIKE cdhdr-objectclas,
objectid LIKE cdhdr-objectid,
username LIKE cdhdr-username,
udate LIKE cdhdr-udate,
utime LIKE cdhdr-utime,
tcode LIKE cdhdr-tcode,
change_ind LIKE cdhdr-change_ind,
changenr LIKE cdhdr-changenr,
END OF itab.
DATA: BEGIN OF itab1 OCCURS 0,
OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
objectid LIKE cdpos-objectid,
changenr LIKE cdpos-changenr,
fname LIKE cdpos-fname,
chngind LIKE cdpos-chngind,
value_new LIKE cdpos-value_new,
value_old LIKE cdpos-value_old,
TABKEY LIKE CDPOS-TABKEY,
END OF itab1.
DATA : BEGIN OF it_final OCCURS 0,
objectclas LIKE cdhdr-objectclas,
objectid LIKE cdhdr-objectid,
username LIKE cdhdr-username,
udate LIKE cdhdr-udate,
utime LIKE cdhdr-utime,
tcode LIKE cdhdr-tcode,
change_ind LIKE cdhdr-change_ind,
changenr LIKE cdhdr-changenr,
fname LIKE cdpos-fname,
chngind LIKE cdpos-chngind,
value_new LIKE cdpos-value_new,
value_old LIKE cdpos-value_old,
TABKEY LIKE CDPOS-TABKEY,
end of it_final.
select-options : m_date for cdhdr-udate.
SELECT objectclas objectid username udate utime tcode change_ind changenr
FROM cdhdr
INTO TABLE itab WHERE objectclas = 'MATERIAL' AND
change_ind = 'U' AND
udate IN m_date.
IF NOT itab[] IS INITIAL.
SELECT objectclas objectid changenr fname chngind value_new value_old TABKEY
FROM cdpos
INTO TABLE itab1
FOR ALL ENTRIES IN itab
WHERE changenr = itab-changenr and chngind = itab-change_ind.
ENDIF.
LOOP AT itab1.
READ TABLE itab WITH KEY changenr = itab1-changenr.
it_final-objectid = itab-objectid.
it_final-username = itab-username.
it_final-udate = itab-udate.
it_final-utime = itab-utime.
it_final-tcode = itab-tcode.
it_final-fname = itab1-fname.
it_final-chngind = itab1-chngind.
it_final-value_old = itab1-value_old.
it_final-value_new = itab1-value_new.
it_final-TABKEY = itab1-TABKEY.
APPEND it_final.
CLEAR it_final.
ENDLOOP.
uline.
write: / 'ITEMID C.PERSON C.DATE C.TIME TCODE OLD VALUE NEW VALUE ORG.UNIT'.
uline.
loop at it_final.
write : / it_final-objectid11(11),12 it_final-username,22 it_final-udate,35 it_final-utime,45 it_final-tcode,55 it_final-value_old,94 it_final-value_new,139 it_final-tabkey21(5).
endloop.
Edited by: ric .s on Feb 21, 2008 11:48 AM
Edited by: ric .s on Feb 21, 2008 12:33 PM
Edited by: Alvaro Tejada Galindo on Feb 21, 2008 3:24 PM
CASE ausg-tabname.
WHEN 'DPROW'.
MOVE indtext TO ls_alv_display_position-action.
CLEAR lv_orgunit.
CONCATENATE text-029 space ausg-tabkey(4)
INTO lv_orgunit RESPECTING BLANKS.
MOVE lv_orgunit TO ls_alv_display_position-orgunit.
MOVE text-027 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE priod TO ls_alv_display_position-newvalue.
ELSE.
MOVE priod TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DGESV'.
MOVE indtext TO ls_alv_display_position-action.
CLEAR lv_orgunit.
CONCATENATE text-029 space ausg-tabkey(4)
INTO lv_orgunit RESPECTING BLANKS.
MOVE lv_orgunit TO ls_alv_display_position-orgunit.
MOVE text-030 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE priod TO ls_alv_display_position-newvalue.
ELSE.
MOVE priod TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DUNGV'.
MOVE indtext TO ls_alv_display_position-action.
CLEAR lv_orgunit.
CONCATENATE text-029 space ausg-tabkey(4)
INTO lv_orgunit RESPECTING BLANKS.
MOVE lv_orgunit TO ls_alv_display_position-orgunit.
MOVE text-031 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE priod TO ls_alv_display_position-newvalue.
ELSE.
MOVE priod TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMKAL'.
MOVE indtext TO ls_alv_display_position-action.
CLEAR lv_orgunit.
CONCATENATE text-029 space ausg-tabkey(4) space
text-050 space ausg-tabkey+4(4)
INTO lv_orgunit RESPECTING BLANKS.
MOVE lv_orgunit TO ls_alv_display_position-orgunit.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMAKT'.
MOVE indtext TO ls_alv_display_position-action.
MOVE text-025 TO ls_alv_display_position-description.
MOVE <key> TO ls_alv_display_position-additional_info.
IF indtext NE text-013.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
ENDIF.
WHEN 'DMARM'.
MOVE indtext TO ls_alv_display_position-action.
MOVE text-026 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMEAN'.
MOVE indtext TO ls_alv_display_position-action.
MOVE text-051 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMAEX'.
MOVE indtext TO ls_alv_display_position-action.
MOVE text-068 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMAPE'. "ch zu 30e
MOVE indtext TO ls_alv_display_position-action.
MOVE text-067 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN 'DMLAN'.
MOVE indtext TO ls_alv_display_position-action.
MOVE text-052 TO ls_alv_display_position-description.
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
WHEN OTHERS.
MOVE indtext TO ls_alv_display_position-action.
CASE ausg-tabname.
WHEN 'MARA'.
MOVE text-055 TO
ls_alv_display_position-description.
WHEN 'MARC'.
MOVE text-056 TO
ls_alv_display_position-description.
WHEN 'MARD'.
MOVE text-057 TO
ls_alv_display_position-description.
WHEN 'MLGN'.
MOVE text-058 TO
ls_alv_display_position-description.
WHEN 'MLGT'.
MOVE text-059 TO
ls_alv_display_position-description.
WHEN 'MBEW'.
MOVE text-064 TO
ls_alv_display_position-description.
WHEN 'MVKE'.
MOVE text-063 TO
ls_alv_display_position-description.
include /nfm/m03a1. "/NFM/
WHEN 'MPOP'.
MOVE text-065 TO
ls_alv_display_position-description.
WHEN OTHERS.
MOVE ausg-tabname TO
ls_alv_display_position-description.
ENDCASE.
include /nfm/m03a3. "/NFM/
if ausg-tabname(6) ne '/NFM/T'. "/NFM/
write: 55 <key>. "/NFM/
endif. "/NFM/
IF indtext NE text-013.
MOVE <key> TO ls_alv_display_position-newvalue.
ELSE.
MOVE <key> TO ls_alv_display_position-oldvalue.
ENDIF.
APPEND ls_alv_display_position TO
lt_alv_display_position.
CLEAR ls_alv_display_position.
ENDCASE.
Similar Messages
-
English Version for field description in CO reports
Hi,
I am using a standard SAP report from CO -> example : S_ALR_87013599. However, when logon in English version, the fields description are not in English. Some other reports do not have this problem. When I logon in Chinese language, it is ok. The description will be in chinese.
Please advise how do I change the fields to English decriptions. And will it affect the chinese language after the change ?
Thanks.
Angel.Hi,
Try imporitng the reports when you are log-on in English via OKD3 transaction. This should solve the problem...
Also check your GCRS (transaction) definitions
Regards,
Eli -
Adding the G/L description field in the report FAGLL03
Dear all
I would like to add the G/L description field in the report FAGLL03. Can you tell me how this can be done.
Many thanks
PGHi Peter,
You can do the changes as per Moeze suggestion.
What we have did is that we have writeen a exit in substitution rule for the offsetting G/L code (assumptioning that you want the description for offsetting g/l code).
We have added the offsetting g/l code in special feild and accordingly the system displays the corresponding description of the offsetting g/l code.
Try it,it will work.
If not do revert for the needful.
Take Crae
Regards, -
Change the field description in the query report
Dear All,
I have created a querry using SQVI,It is working fine Now i want to change the field description in the querry report,Please suggest on this.Hi,
follow below steps
SQVI -> Enter Report name -> Change -> click on layout mode - > Expand tables - > double click on filed names - >
coming right side you are able see list of output fields .
Just double click on the field then going to the editable mode Description.
Thanks
Balakrishna -
Field Descriptions without TOP OF PAGE
Hi Experts,
I have one Z report and this was written somebody long back.
This report was normal standard report i.e just writing the table values to screen using WRITE statement.
Eventhogh there is no TOP OF PAGE event in the report, field names were displaying in the screen output with highlighted color.
As soon as WITE statement calling, program is displaying fieldnames automatically? how it possible?
Now, I modified my program by adding another field values to the screen output.
The field which I added it's not showing field name.
How can I display my field description to that output. (without adding TOP OF PAGE)
As I told you report doesn't have TOP OF PAGE event. Please help me.
Thanks
RaghuRaghu,
I'm guessing that your report is organized in a tabular form and by field description you mean column headings. There are two ways to display column headings 1) by explicitely writing the WRITE statements to output to the column headings, 2) by maintaining the standard list & column headings. (in ABAP editor follow menu path GOTO>Text Elements>List Headings.
You can disable the display of standard headings by using addition in NO STANDARD PAGE HEADING as below.
REPORT YTEST NO STANDARD PAGE HEADING
LINE-SIZE 120
LINE-COUNT 65
MESSAGE ZMSG.
Regards,
Gajendra -
Field description in selection screen
Hello,
Please help me by answering a silly question: what settings have to be done so that in the selection screen for a report the field description to appear instead of the technical field name?
Regards,
IleanaIf it is for a report (a custom developed one i.e. starting with Y* or Z*), the ABAP developer needs to do the setting.
(S)he needs to make the changes in SE38. Once in the ABAP Editor, Go To --> Text Elements --> Selection Texts and maintain the texts (and Activate).
If it is for SE16 (Table Display), then the reply by SAP Enjoy is correct.
If it is for a LIS (or any Information System) report, then the reply by PSantosh is correct.
Hope this helps,
Lakshman -
How to set a new value for formula field in crystal reports xi?
<p>How to set a new value for formula field in crystal reports xi?</p><p>//formula</p><p>{@description}</p><p> </p><p>exemplo in VB6</p><p>crxSubreport.FormulaFields.Item(1).Text = "'Subreport Formula'" or</p><p>crxSubreport.FormulaFields.Item("description").Text = "'Subreport Formula'"</p><p>How to in JRC?</p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p><p> </p>
Hi,
This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
Regards,
<p>Blair Wheadon</p>
<p>Product Manager, Crystal Reports</p> -
UserTable.txt and UserVariables.txt fields descriptions
Hello,
I would like to get UserTable.txt and UserVariables.txt fields descriptions. These two files come in the package.cab obtained from an ACS SE 1113 running V4.2. These files, which uses a CSV format, do not include a heading row with field descriptions, nor i found this information in the ACS documentation.
The reason for that is that we get a daily copy of package.cab, and from it we would like to write an application to generate a formatted daily report for every user with several fields including those:
Name
MaxSession
MaxSess2
Profile
Aging policy
Description
So far i was able to discover the columns for Name and MaxSessions. But not the other fields, which are probably also included in the UserTable and Uservariables text files.
Kind regards.Dear Albert
Why not take a look at aaa-reports! enterprise? We can automatically import the cab file and pull out the data you're after.. plus more besides.
www.extraxi.com -
Dear All,
I'm trying to produce a list , using query , to produce the following list:
Table Name, T.Description, Field Name, F.Description, FieldType, Length
I use DD02L, DD02T and DD03L, DD03T.
Somehow - I dont get the same results as I see in the SE16, or SE11. Especially I mis some descriptions on filed level, and I do see them in the SE11.
Using a query, save effort of exporting the DD for evry table sepratlly.
This is strange.
Your help is greatly Appriciated.
Kind Regards,
Doron ZaccaiHelle Andreas, and all Others,
Thanks very mucht for the input!
The DD03M has the:
Tabel name, Field Name, Field Description, Type, Length, Decimals
Table description is abscent.
I have joind the DD02T, (Tabelname, and language).
And now I have all of them.
Thank you all very much.
I will try the FM mentioned, in the mentioned program. And will report on the result.
Kind Regards,
Doron Zaccai. -
Field Description change in Standard screen
Hi All,
Can any one tell me how to change Field Description in standard screen.? No user exits available and without access key.
Ex :- if field description is DATE. i want to change it to 'Test Date'.
i dont want to change it Data element level.
Please do not give CMOD solution
Thanks
SameerHi
If you don't want to use CMOD (changing the description for all system) nor use access key, changing the standard, you can create your own report, with the same screen, changing the name and after do a SUBMIT with your selection screen on the standard selection screen (standard report). Of course, it will be a customer development. It's an idea.
I hope this helps you
Regards
Eduardo -
Need to add extra field in BEX report
Hi Experts ,
I have a problem in bex report.
scenario is like this--
APD will generate the BPS Daily report on Branch, Group, Area, Region and total company levels and then exports into a flat files stored in appserver
and i got the requirement to change the layout of the report. The client wants to need the one field extra ie. 'REPORTS RUN DATE '
and i am stuck here how to add this field in my report ..
Please help me ASAP.
Thanks a lot in advance
Saurabhhi,
Enhance your APD and in the target add field REPORTS RUN DATE .
Fill this using ABAP routine which populates the sy-datum in this field.
regards,
Arvind. -
Multiple lines for field description in ALV
Hi ,
Is there any way to display the field description in multiple lines in ALV grid .
Regards,
PradiptaHi pradipta,
1. No its not possible.
2. At the most, we can set the WIDTH of the
column, to ACCOMODATE the field description.
3. We cannot do WRAP as u require.
regards,
amit m. -
Hi All,
We are developing a custom application where we need to pull the field description e.g. ACTVT = Activity, BERGRU = Authorization group etc. I need to know how to link the technical name of the field to its description and get the output in a report (e.g as in report USR030 where the field description appears). Any pointers?
Many thanks
VijayaSorry, I misread your question.
This is indeed a bit trickier because it depends of the field type of the authorization field. You can find this in table AUTHX, but as there are many you cannot reasonably do any download or joining of tables, but would need to do it programmatically.
See this thread for your options: Authorisation Field Texts - Where are they defined?
There is an easy way and a hard way
Cheers,
Julius -
Hiding selective fields in a report based on other field in the same report
Hello!
I am trying to create a report of the inventory items. 2 of the fields in the report would be the sale price of the item, and one of the properties (prop1) from the Item Master Property tab.
Depending on whether Prop1 is Y/N, the price of the item should be displayed.
If Prop1 = N, Price is displayed
If Prop1 = Y, Price gets hidden
Using queries, is it possible to create this kind of reports?
I am using SAP 2005b PL 42.
Thanks for any suggestions....
PrajwalHello Prajwal,
It is definely possible !!
If you have already created your query pls paste the same here so that I can help you otherwise. I will give you a general guidelines and you can take it from there..
Using the CASE Statement inside your SELECT you can achieve this.
SELECT T1.ItemCode AS 'Item No.', T1.ItemName AS 'Item Description',
CASE WHEN T1.QryGroup1 = 'N' THEN T0.Price ELSE 0 END 'List Price'
FROM [dbo].[ITM1] T0 INNER JOIN [dbo].[OITM] T1 ON T1.ItemCode = T0.ItemCode WHERE T0.PriceList = 1 -
Using one prompt for multiple fields in a report
We are using Oracle CRM on Demand, Release 16.
I have a report I am building that involves four different date fields. I'd like to give the user the ability to enter a date range for the date fields via a Prompt when the report executes. But the date range would be the same for all four date fields. Is there a way to capture the date range in one prompt, but use that same range in all four date fields in the report?I recommend to use two dashboard prompts, one for each date field of your range and each will set a presentation variable.
Then use the FILTER metric function and reference the presentation variable.
Best Regards,
Christian
Maybe you are looking for
-
Simbol X in the row of results in a query
Hi group, I have a small question about results in a query. When I open the query, in some rows for results appears the simbol X. If I click right button=> calculate=> sumation, the figure appears right. The problem is I have to do it manually for ev
-
Urgent Help - Preventing Cache in Flex 3
Hi all, Am new to this forum and i have a query which needs to be fixed urgently. Actually Flex 1.5 supports <cache> configuration variable in flex-config.xml which can be used to prevent client-side caching. But I suppose Flex 3 doesn't support the
-
JTDS not connecting with SQL Server 2008 R2 SP2 + SSL with Java 6 U34-35
Environment: Windows 7 Pro 32-bit SQL Server 2008 R2 SP2 (Forced Encryption = Yes, No Certificate provided to server) Java 6 Update 27-35 and Java 7 Update 2-7 jTDS 1.2.2 and 1.2.6 Under the following setup, our Java application is able to connect to
-
Save form values as HTML file needed
Hi, I need to export a Customer form values to an HTML file. I need it a the base file for a fusion with a Word document. How can I do it? thanks.
-
I have a problem with missing images on my web pages. I will insert images, eithther by dragging and dropping, or using the insert feature. I publish, and all seems well. The next time I republish, though, the images disappear, and all I get is a que