08-03-2005 3:31 PM
Hello,
We have a requirement where we have developed a report in SAP query, but we require a local field to basically give the concatenation of two fields detailed in the info set (EKPO-EBELP & EKET-ETENR)
Can you help me with how to learn to do this?
Many thanks
Steve
08-03-2005 3:37 PM
Hello,
In your Infoset(SQ02), choose coding. In the 'Data' part of coding, you declare the new global variable. Depending on the requirement you concatenate the variables in appropriate part of coding ( Start-of-selection, Record processing etc.,)
Hope this helps you.
Regards, Murugesh AS
08-03-2005 3:37 PM
Hello,
In your Infoset(SQ02), choose coding. In the 'Data' part of coding, you declare the new global variable. Depending on the requirement you concatenate the variables in appropriate part of coding ( Start-of-selection, Record processing etc.,)
Hope this helps you.
Regards, Murugesh AS
08-03-2005 3:45 PM
Hi,
It hasnt really helped. I was under the impression I would need to create an additional field, and then apply some coding to have this field give the value of the concatenation. This field would then become avialable in the query for output.
Can you expand on this?
Steve
08-03-2005 3:49 PM
Stephen, hi
You can only achieve this within the infoset, not in the query. Whoever creates/maintains your infosets will need to set this up and make it available in all queries using the infoset.
Kind regards
Mark
08-03-2005 3:50 PM
08-03-2005 4:13 PM
Hi Rich,
Yes, I figured the code would be something like that, however, when I generate the infoset, I get the following:
Global syntax check
Additional Fields
Error in code for additional field ITSCH
The last statement is not complete (period missing)
I have placed the following code in the Additional fields/structure section
Concatenate EKET-EBELP EKET-ETENR into ITSCH
Can you help with what is probably a simple issue?
Many thanks
Steve
08-03-2005 4:16 PM
08-03-2005 4:32 PM