2009 Jul 15 10:06 AM
Hi,
I am working on infoset which is reteriving the data through Logical Database and trying to add the field for the field description.
It has to display the data through data element but it is not doing so .
Actually, i had created a query which shows the data about the changes made in the Material.I am able to display all the data but not the text that shows the description of what has been made .
Here's the code:-
TABLES: CDPOS.
DATA: E_DD04V LIKE DD04V OCCURS 0 WITH HEADER LINE.
DATA: E_DD03L LIKE DD03L OCCURS 0 WITH HEADER LINE.
DATA: P_DDTEXT LIKE DD04V-DDTEXT.
IF CDPOS-FNAME <> 'KEY'.
CALL FUNCTION 'GET_FIELDNAME_TEXT_1'
EXPORTING
I_AS4LOCAL = 'A'
I_AS4VERS = '0000'
I_FIELDNAME = CDPOS-FNAME
I_TABNAME = CDPOS-TABNAME
TABLES
E_DD03L = E_DD03L
E_DD04V = E_DD04V
EXCEPTIONS
ERROR_IN_PARAMETERS = 1
NOT_FOUND = 2
OTHERS = 3
.
ENDIF.
IF SY-SUBRC <> 0.
CLEAR E_DD04V-DDTEXT.
* ELSE.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF CDPOS-FNAME = 'KEY'.
P_DDTEXT = 'New Entry Made'.
ELSE.
P_DDTEXT = E_DD04V-DDTEXT.
ENDIF.
Please provide me guidelines to solve this problem.
Edited by: ricx .s on Jul 15, 2009 11:37 AM
2009 Jul 15 10:49 AM
hi ricx,
write a select Query on makt for material text.
2009 Jul 15 10:49 AM
2009 Jul 15 11:18 AM
Hi,
I had chekced the Infoset as it is picking up the data from the Logical database created and when i try to write the code for it,it does not allow to display the data.
I want to know how to add a field in a INFOSET when data is extracting from the existing Logical Database .
Please provide me guidelines to solve this problem.
2009 Jul 15 12:00 PM
Hi,
You can certainly add a additional field in your infoset.
When you are in sq02 tcode and you have made a logical database table than if you go to EXTRAS tab.
You will find a option of create from there you can select a table from where you want to select maktx except the table should have proper joins or you can select a field.
You will find the options when you go to CREATE.
Hope this may help you,
regrds,
Nikhil.
2009 Jul 15 12:15 PM
Hi,
Currently i am doing the following:-
I had created a Logical Data Base where i had made the logic for the Changes Made To Material. I am fetching the data from the following tables:-
MARA,MAKT,CDHDR AND CDPOS.
As i am checking the LDB it is working fine as i had verified the data and i follow the whole procdeure to make Query and then generated it,it is working fine. But when i try to add the extra field (which shows the description what change has been made,it give errors for it).
Please provide me guidelines to solve this problem.
2009 Jul 15 12:23 PM
Hi,
Are you following the procedure mentioned above for addition of field. If your data is getting fetched properly there might be a problem when you select the field in the query. Just check if the additional field has been selected in your query.
I think there might be a problem when you select fields from the query.
Regrds,
Nikhil.
2009 Jul 15 12:27 PM
Hi,
Yes i am trying it right now and it really works and it is displaying the data properly. Thanks a lot for your help and i am closing this thread.
Edited by: ricx .s on Jul 15, 2009 1:32 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |