Currency as additional field in an Infoset
Hi,
I hope you can help me with the following problem. I want to extend an infoset with additional fields amount and currency. When I do this and want to use these fields in a query the system automatically generates to my amount field a currency field, so in the end I have one amount and two currency fields.
I tried to fill these generated currency field but then I get a short dump using this infoset in the segment builder as this variable is not existing there. Well, of course I can solve it with my additional currency field, but then I have two currency fields to one amount field, as one is always generated.
Is there a solution for this?
Kind regards,
Timo
Hi Pablo,
I guess you would have forgot to drag that extra field to the "Field Group/Data fileds" list ( on th eRight hand side pane ) in Tcode SQ02. Please check.
Save the infoset and then saev the datasource, then check the RSA3 extractor check. also make sure to replicate the datasource.
Regards,
Pratap Sone
Similar Messages
-
Additional field in SAP Infoset - internal table
Hi Gurus,
I have invoices like:
VBELN Matnr mtart
1234 Ek21 MCFE
1234 Ek33 MCFE
1234 Ek29 MCFE
1234 321 MRM1
1235 EK11 MCFE
1235 EK17 MCFE
3212 EK23 MCFE
3212 EK33 MCFE
How can create additional field in SAP infoset, what show in every line in invoice, that invoice have line with mtart = u2018MRM1u2019 or mtart <> u2018MRM1u2019. Aim is to filter invoices with line mtart = MRM1
VBELN Matnr mtart result
1234 Ek21 MCFE 1
1234 Ek33 MCFE 1
1234 Ek29 MCFE 1
1234 321 MRM1 1
1235 EK11 MCFE 0
1235 EK17 MCFE 0
3212 EK23 MCFE 0
3212 EK33 MCFE 0
How can create additional field in SAP Infoset?Hi Have you had any luck on this?
-
Adding additional fields to an Infoset Query
Hi Experts,
I have added a couple of additional fields to an infoset query using SQ02.
I have also written code for filling in the fields.
I have also added them to some Field Groups.
Despite this, when I run the query, they are not being displayed in the output list.
What could be the reason for this?
Kindly help with your inputs.
Thanks in advance.
Regards,
Keerthigoto sq01,
give the query name...
goto change.. just below output, you have a drop down for field group and field catalog. select field catalog.
select the fields you want to show in output -
Additional field added in Infoset unable to use as a selectable field
I added 2 fields as additional fields to the Organizational Assignment infotype in a PNP Infoset that I created via SQ02. When I select the infoset to build a query via adhoc query the fields are listed in the Org Assignment infotype and available for output but are not available as a selection field. There is no check box under the Selection column, only a checkbox under the output column.
How do I make the added additional fields available as a section field as well as an output field.Solution: in ad hoc query select Extras > Switch off object selection
-
Additional field in infoset as string
Hi,
Is it possible to add an additional field in an Infoset with type string?
When i'm creating it, I need to fill the definition of the field, with a certain type or with reference to some table field, but I'm not finding any suitable to here of type string. I always get an error "you must use a flat structure" or "you cannot use internal tables, strings, references, or structures as components".
This means I cannot create an additional field as a string?
Thanks in advance for your help.
Best regards,
Sónia GonçalvesThnks for answers ,
I have just do that but there is no hided field . I haven't see the additional field there already.
I think it 'll more clear if I tell about what am I doing step by step ;
First , I created infoset in SQ01 with joinig tables LIKP - LIPS .Then I added some additional field ; I collect different value from another table . Then I create field group called " ADD" in infoset and assigned additional fields that I created to "ADD " . Finally generate and saved infoset .
Second , in RSO2 I create data source and joined with infoset . Then comes to selection filed screen . Here was my problem ; there were no field that I added to infoset ,additional fields didn't appear
Can I explain it ?
Thnks for help .. -
This problem is about sap query. I have created an additional field in an infoset. The initial header text of this additional field is english. Then I created a query which use the additional field as an output field. If I use this query in other language, however the additional field header remains english. How can I maintain addtional field header to support mutil-language?
Thanks in advance!
--Alex MiaoHi Alex
Please see if below example helps you to understand:
Supposing, we are displaying material description within our query.
1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
2. We create feild groups to identify the fiels we use for selection and display.
3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
4. To make it applicable for different languages we can code in INITIALIZATION Event.
5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
6. Save & Generate.
Now when we execute the query, we are defaulting the language as System Language.
Hope the above info helps you for better understanding.
Kind Regards
Eswar -
Sap Query Additional Fields using Abap Code
Hi Experts,
I am relatively new to the world of SAP query (Log Database PNPCE), I have written a number of additional fields to retrieve previous info-type data using the select statement E.G
prev_endda = p0008-begda - 1.
SELECT single bsgrd
INTO FTE1
FROM
pa0008
WHERE pernr EQ P0008-pernr
AND endda EQ prev_endda
Although I can retrieve the previous info-type data , I was wondering if there was a easy way where I could take this a step further and show the Previous , Previous record. I.E
Pernr FTE Current FTE1 FTE2
101 60% 30% 75%
I guess what I am asking is , is there a way to loop through the HR info-type records, does anybody know if there is a standard function or macro I can use to achieve this.
Your help is much appreciated.Hi ,
Thanks for our reply.
I have pasted some example code into my additional field which I have created in SAP Query But im not sure how the loop bit works and how I can populate the additional fields that I have created , could you please explain this
CALL FUNCTION 'HR_READ_INFOTYPE'
EXPORTING
pernr = '000000019'
infty = '01'
BEGDA = '18000101'
ENDDA = '99991231'
tables
infty_tab = p0008
EXCEPTIONS
INFTY_NOT_FOUND = 1
OTHERS = 2
LOOP AT p0008.
NOT SURE WHAT TO PUT IN THIS SECTION *****
ENDLOOP.
I have created 3 additional Fields in the infoset Current FTE ,FTE1 FTE2 , and I want to loop through the records and populate the relevant Additional field with the employees FTE (I only want to populate where there is a change)
Sample Data
Begda Endda FTE Salary
1/1/2010 31/12/999 60% 19K (Current FTE)
01/08/2009 31/12/2009 100% 27k (FTE1)
01/07/2008 31/7/2009 50% 17K (FTE2)
Thanks in anticipation
DM -
How to make SAP Query additional field as one of the selection field ?
Hi experts,
I'm working on a AdHoc query. I added some Additional fields to the infoset. I put Abap code to populate this additional fields as output fields but I want to make these fields as selection fields also.
How can I accomplish this ?
I'd appreciate any answer or suggestion.
Thanks in advance.See Extended / Quick Search capability with attributes in the following SAP notes.
[482338 - Using Extended Search in ISA B2B, ver. 30|https://service.sap.com/sap/support/notes/482338]
[792556 - Quick search using several attributes|https://service.sap.com/sap/support/notes/792556]
[888528 - ISA R/3 4.0: Extended catalog search not consistent|https://service.sap.com/sap/support/notes/888258] -
Question regarding adding new field to an infoset.
Hi all!
Actually i am not a programmer but HR functional, but i need to add an additional field to my infoset.
I wanted to do it myself without ABAPers help.
I have already added new field to an infoset and included a code:
TABLES HRP1000.
SELECT SINGLE short INTO ORG_UNIT_SHORT
FROM hrp1000 WHERE objid = p0001-orgeh.
And it almost works. The thing is, when on the report (sap query) a person have value '00000000' in the p0001-orgeh the report enters value into ORG_UNIT_SHORT from the previous record (of another employee).
How to avoid this? i suppose i have to assign this field an initial value at the begining of the code (how?).. or?? as i said i just try to make first steps in abap programming...Ok, i have found a solution (clear statement)
-
Additional field for Infoset in BI 7.0
Hi
I have created an Infoset with a cube and a masterdata object. Now my requirement is to have an additional field which i can not extend to cube or masterdata.
Is it possible by any chance to add an additionla field to Infoset and write an abap code ?Any suggestions ?
-
Creation of additional fields in Infoset SQ02
Hi Experts,
I'm a FICO consultant trying to create a query.
Requirement : Link RSEG Table to BKPF Table in the join condition
Link: RSEG-BELNR concatenated with RSEG-GJAHR = BKPF-XBLNR
Now I'm trying to create an additional field in SQ02 named MiroYear and in the field code part i gave the below piece of code
"CONCATENATE RSEG-BELNR RSEG-GJAHR INTO MIROYEAR."
It shows no syntax errors. I added the same to the field group as well.
Issue: The additional field (MIROYEAR) is not appearing in the join condition in SQ02.
Is this the right way to create an additonal field? Have i made any mistake? Or any of you have any better ideas to join RSEG and BKPF in SQ02?
Your quick response will be appreciated
Best Regards
VimalHi,
Table RESG and BKPF are linked BKPF-AWKEY.
Now first of all if you create an additional field, that field will not appear in the join.
One way will be to create an infoset with direct read to table RSEG, and then inside add additional fields for each BKPF field.
Then in the code
CONCATENATE RSEG-BELNR RSEG-GJAHR into MIROYEAR
select single ....
into (ADDFIELD1, ADDFIELD2, ADDFIELD3,.....)
from BKPF
where awkey = miroyear.
Regards,
Khusro Habib -
Populating Additional Field in InfoSet Query
Hello,
My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables. We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table. The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table. If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables. However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
ThanksHi Alex
Please see if below example helps you to understand:
Supposing, we are displaying material description within our query.
1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
2. We create feild groups to identify the fiels we use for selection and display.
3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
4. To make it applicable for different languages we can code in INITIALIZATION Event.
5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
6. Save & Generate.
Now when we execute the query, we are defaulting the language as System Language.
Hope the above info helps you for better understanding.
Kind Regards
Eswar -
Additional field "SYHR_A_P0105_AF_CELL" doesn't work in InfoSet
Hi experts,
I am trying to make a SAP query base on logical database PNP, what I did:
1. create a infoset base on PNP, selected infotype 0105
2. create a query base on the infoset, chose field SYHR_A_P0105_AF_CELL and SYHR_A_P0105_AF_EMAIL
The email field works, but the cell phone field output no value.
what's the secret behind the additional fields? How was the data is read from backend tables?
Thanks a lot.
RobinRobin :
These pre-defined additional fieds for IT0105 are auto-populated through SAP function 'RPAQ_GET_AF_0105'. Therefore, if you use SAP standard subtype 'CELL' instead of custom subtype, additional field 'SYHR_A_P0105_AF_CELL ' would also be populated.
However, if you decide to use custom subtype for it, when in this additional field, right click on it - select 'Field Code', and key in your own logic to have this field populated instead.
Rgds. -
Add color to an Additional Field inside a SAP Query (Infoset) in ALV
I made an Infoset (transaction SQ02) out of table MARC. I created an Additional Field called "STATUS" which I coded to get a value of 1 or 2 depending on the value of another field in MARC.
How can I make this cell in the resulting Query to appear in different colors depending on the value? I found the command "FORMAT" but that doesn't work on SAP List Viewer (ALV) mode.
This is what I coded in the additional field called STATUS::
clear: STATUS.
if MARC-DISPO = 001.
format intensified color = 6.
move '1' to STATUS.
else.
format intensified color = 7.
move '2' to STATUS.
endif.
The coloring didn't work. What ABAP command should I add to this additional field to make the coloring of the STATUS cell work under ALV mode?field catalog and layout are saved into database aqrdb
just before displaying the results into ALV table, they are retrieved by function RSAQRT_ALV_DISPLAY which does
concatenate rtmode-act_report sy-langu into l_srtfd_pattern.
import fieldcat = fieldcatalog
layout = layout
sort = sort
from database aqrdb(lv) id l_srtfd_pattern.
so in order to display some cells with a different color, you have to
- add an additional field that will contain the color codes of cells
- set values in this field at record level (field is a table of type LVC_T_SCOL)
but also adapt the layout in order to set the field as containing the colors
- put the name of this field into layout (CTAB_FNAME)
- export layout to corresponding entry of aqrdb
this part I don't see exactly where to put it, I guess there is some place where it is possible to manage the layout - if not then you have to do it "manually" i.e. with a small report -
Adding additional fields to an existing Infoset.
Experts,
I got a requirement to add additional fields to an existing info set which belongs to different Logical Data base.
The existing info set is based on PNPCE LDB and the fields are from PD (i.e PCH ldb).
Please let me know hw to add those fields...
Thanks,
ShriniHi Shrini,
You can add fields from PD infotypes (1000-1999) to a PNPCE infoset if the object has a relationship to a Person. Example would be Position which has the relationship Holder. You go to Change the Infoset. Edit --> Change infotype selection. Scroll down to the bottom and open Infotypes of Related Objects. Open Position. There you will see the possible relationships between a Position and Person. Select Holder. There you have the list of infotypes assigned to a Position that you can add by checking each. You can then add whatever fields are in that infotype to the Infoset.
Problem comes in if there is no direct relationship between a Person and the object - such as Job that you want to include in the Infoset. A Job describes a Position and a Person holds a Position, but a Person does not have the direct relationship to the Job except as a Dislike or Successor. In this case you would need to create a new PCH Infoset with the root object Position. Then using the relationships between Position and Job and Position and Person, you can access the infotypes from PA as well as PD.
Paul
Maybe you are looking for
-
A lot of blocking locks on NRIV daily
Hi experts, Our system has a lot of blocking locks on NRIV. I use DMV to check and find many processes update RF_BELEG frequently. I find note 840901 can solve using parallel buffering, but our FI users do not agree sale document number without con
-
Change the colour of the rectangle dynamically:
Hi, I've some tiles in wpf application. (non clickable, drawn using Rectangle). I want to change the colour of the tile depending upon condition Ok, Warning, Error to the colour Blue, Yellow, Red respectively. Can you please let me know how can I ac
-
Runtime repository connects on remote system fails in connection
Hi, I've created runtime repository and access users and target schema on linux server through owb server install. Sqlplus onnections from my window2k PC work OK for all 3 users. I created a second runtime repository connection from my owb designer o
-
why the task option is gone in Mail, is there a way to add a note or a task related to an email?
-
Updating 2 database tables on one commit action
I need help regarding how to make the below scenario work. I have 2 database tabels say Table A and B. Primary key of Table A is ID and that of Table B is ID(of table A)+some other column. Table B is exposed as the jspx page to user. I have used a se