How to define IDOC as 'type' in 'Data types' ?
Hi all,
I am trying to define a data type which accepts multiple occurences of IDOC type in the same message. The required XML should be like this...
<All_IDOCs>
<ZUPFIN_> <--- this is the IDOC imported into XI
<IDOC>...
</IDOC>
</ZUPFIN>
<ZUPFIN_> <--- this is the IDOC imported into XI
<IDOC>...
</IDOC>
</ZUPFIN>
<All_IDOCs>
Now, there are more than 800 fields under <ZUPFIN_> IDOC. So I am trying to find out an easy solution to create the above data type without manuall adding each element.
Any idea ?
Thanks.
- Atul
Hi Ahmad,
As I have already mentioned above, I do not want multiple occurences of 'IDOC' element. Instead I want the multiple occurences of 'ZUPFIN_' (in Michael's blog you given by link, it is 'MBGMCR02'). So the example does not help here as roots cannot occur more than once.
I cannot have anything changed on R/3 side.
Thanks.
- Atul
Similar Messages
-
How to Transfer IDoc Type to Data Type in XI
Dear All,
I am working on scenario to transfer data(IDoc) from SAP System to Non SAP system through XI.
While Defining "Data Type" in XI i want to create Data Type as of IDoc type(CREMAS05).There is any direct method to import IDoc type into "Data Type" in XI.
thanks,
RPHi Rp,
External definitions enable you to import WSDL, XSD, and DTD documents to the Integration Repository so that you can access the message definitions they contain as external messages.
If a description of the message structure already exists in one of the above formats, you can use it in the Integration Repository by importing it as an external definition rather than re-entering it manually using the data type editor.
Prerequisites
The document to be imported must conform to the WSDL, XSD, or DTD standard.
Chk out all the details + how to import Ext Def:
http://help.sap.com/saphelp_nw04/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/content.htm
Also refer...
Connection Using Adapters and Imported Interfaces
http://help.sap.com/saphelp_nw04/helpdata/en/4a/576d219c340844aaa12ce9bbc2c3ee/frameset.htm
Incase u want to chk out the details of Idoc scenario.....
IDoc to File:
/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
Handling different partners for IDoc:
/people/sravya.talanki2/blog/2005/08/17/outbound-idocs--work-around-using-party
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file%2bto%2bidoc
Hope this was helpful..
kanan -
Need help :: how to search in nested table/varray data type
I have the following structure...
CREATE TYPE lang_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TYPE rel_con AS VARRAY(15) OF VARCHAR2(50);
CREATE TABLE Country_n(
"NAME" VARCHAR2(40 BYTE) CONSTRAINT "COUNTRY_NAME_NOTNULL_N" NOT NULL ENABLE,
"CODE" CHAR(2 BYTE),
"CAPITAL" VARCHAR2(40 BYTE),
"PROVINCE" VARCHAR2(40 BYTE),
"POPULATION" NUMBER,
"AREA" NUMBER,
"LANGUAGES" lang_con,
"RELIGIONS" rel_con
after inserting data from 3 different table (country, language, religion) the table looks like this....
Cyprus cy Nicosia Government controlled area 775927 9250 VARCHAR(English,Greek,Turkish) VARCHAR(Greek Orthodox,Muslim)
Czech Republic cz Prague Prague 10246178 78866 VARCHAR(Czech) VARCHAR(Orthodox,Protestant,Roman Catholic)
Germany de Berlin Berlin 82424609 357021 VARCHAR(German) VARCHAR(Muslim,Protestant,Roman Catholic)
Djibouti dj Jibuti Jibuti 466900 23000 VARCHAR(Afar,Arabic,French,Somali) VARCHAR(Christian,Muslim)
Denmark dk Copenhagen Frederiksberg Kommune 5413392 43094 VARCHAR(Danish,Faroese,German,Greenlandic) VARCHAR(Evangelical Lutheran,Muslim)
now I want to get the countries in which german language is being spoken. Actually I need to know how to search in this custom data type of mine....I also need to perform other operation further so really need to know how can I search in this custom data type...
when I execute the following query....
select * from country_n cn where cn.languages like '%German%' order by name
I got the following error....
Error starting at line 1 in command:
select * from country_n cn where cn.languages like '%German%' order by name
Error at Command Line:1 Column:33
Error report:
SQL Error: ORA-00932: inconsistent datatypes: expected NUMBER got AHMADM.LANG_CON
00932. 00000 - "inconsistent datatypes: expected %s got %s"
*Cause:
*Action:
let me know please...looking forward to your replies....
Thanks,Hi,
Try this:
Connected to Oracle Database 10g Express Edition Release 10.2.0.1.0
Connected as hr
SQL>
SQL> SELECT t1.*
2 FROM country_n t1,
3 TABLE(t1.languages) t2
4 WHERE column_value LIKE '%German%';
NAME CODE CAPITAL PROVINCE POPULATION AREA LANGUAGES RELIGIONS
Germany de Berlin Berlin 82424609 357021 <Object> <Object>
SQL> Regards, -
Unicode - "DMBTR" must be a character-type field (data type C,N,D or T)
Greetings Experts!
I am trying to convert legacy code to Unicode for a current ERP6.0 reinstallation and have encountered the syntax error "DMBTR" must be a character-type field (data type C,N,D or T)
The field is part of a structure and the fields attributes are as follows:
COMPONENT = DMBTR
COMPONENT TYPE = DMBTR
DATA TYPE = CURR
LENGTH = 13
DECIMALS = 2
DESCRIPTION = Amount in Local Currency
The code in question is as follows:-
macro Move_Zoned.
Converts a numeric variable to zoned format and moves it to a
target variable.
DEFINE move_zoned.
&1 - source variable
&2 - Number of Decimal Places
&3 - 'To'
&4 - Target Variable.
write &1 to w_zoned no-grouping decimals &2.
condense w_zoned.
Remove the Decimal Points.
search w_zoned for '...'.
while sy-subrc = 0.
move sy-fdpos to w_to_point.
if w_to_point = 0.
w_to_point = 1.
endif.
compute w_from_point = sy-fdpos + 1.
concatenate w_zoned+0(w_to_point)
w_zoned+w_from_point
into w_zoned.
search w_zoned for '...'.
endwhile.
shift w_zoned right deleting trailing space.
translate w_zoned using ' 0'.
call function 'Z_TRANSLATE_ZONED_DECIMALS'
exporting
i_input = w_zoned
importing
i_output = w_zoned
exceptions
x_invalid_zoned_char = c_invalid_zoned_char
x_numeric_info_lost = c_numeric_info_lost
others = c_other_zoned_error.
Get the length of the recipient field so we don't truncate the
numbers....
describe field &4 length w_flength in character mode.
describe field &4 type w_type.
describe field w_zoned length w_zoned_len in character mode.
if w_zoned_len <= w_flength.
move w_zoned to &4.
shift &4 right deleting trailing space.
translate &4 using ' 0'.
else.
Get the start position....
If it's a packed field allow for values up to 6 figures
compute w_zoned_len = w_zoned_len - w_flength.
if w_type = 'P'.
subtract 2 from w_zoned_len.
clear w_type.
endif.
move w_zoned+w_zoned_len &3 &4.
endif.
END-OF-DEFINITION. "Move_zoned
LOOP AT t_single_kunnr.
move_zoned t_single_kunnr-postamt 2
to t_single_kunnr-dmbtr.
DIVIDE t_single_kunnr-dmbtr BY 100.
MODIFY t_single_kunnr.
ENDLOOP.
Is there a solution to get past this syntax error as I would rather not change the datatype of the field in the structure.
Much Obliged
Elphick.Type X is not allowed in Unicode. When a field is declared as Type X with Value u201809u2019 or any other value, it can be resolved by using classes.
Before Unicode
CONSTANTS: c_hex TYPE x VALUE '09'.
Resolution:
Itu2019s work for any value of x.
First a temporary field of Type c should declare. Following class will convert Type x variable into type c.
Example:
CONSTANTS: c_hex TYPE x VALUE '09'.
DATA: LV_TEMP TYPE STRING.
DATA: LV_TMP TYPE C.
TRY.
CALL METHOD CL_ABAP_CONV_IN_CE=>UCCP
EXPORTING
UCCP = c_hex
RECEIVING
CHAR = LV_TMP .
CATCH CX_SY_CONVERSION_CODEPAGE.
CATCH CX_PARAMETER_INVALID_TYPE.
CATCH CX_SY_CODEPAGE_CONVERTER_INIT.
ENDTRY.
CONCATENATE I_OUTPUT-BKTXT I_OUTPUT-BVORG
I_OUTPUT-BUDAT I_OUTPUT-MESSAGE INTO
SEPARATED BY LV_TMP.
I_BUFFER = LV_TEMP.
CLEAR LV_TEMP.
CLEAR LV_TMP.
OR
Note: It works only for type x value 09.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS: c_hex TYPE c VALUE
abap_char_utilities=>HORIZONTAL_TAB. -
Cardinality between Message Type and Data Type
Hi SAP gurus,
Could anyone please tell me the cardinality between the Message Type and Data Type?
Thanks,
Adnan Abbasi1:1
Sameer -
How to call user define data type as data type for concurrent parameter
Hi All,
i find some difficulty while creating the concurrent program.
i.e.
i have one of the parameter of table type i.e. user define data type at PLSql program
now i need to register same PLSQL program into oracle applications as concurrent program
but while i am creating Parameters for concurrent program
How could i define that user define data type at database level in oracle applications using 'Value set' ?
any one save me from this Problem
thanks and Regards,
sai krishna@cavaya.Don't think this can be done..
One way I can think of is to wrap your PL/SQL program under another procedure/package that can accept "normal" parameter,and use/register this wrapper instead of your original pl/sql program.
HTH -
How to get the values from struct data type using java code..?
Hi ,
I am newer to java.
we are using oracle database.
How to get the data from struct data type using java code.
Thanks in Advance.
Regards,
kumarHi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
How do you determine a column's data type?
Let's say I have a DB Table out there and I have NO WAY of knowing that column 1 is a CHAR, column 2 is a SMALLINT or whatever. I can write sql to select * from table and see everything, but how do I know what each column's data type is?
I found it. Thanks, and for any other people who need the solution, here is what I found on another thread:
int type; try { type = i_metaData.getColumnType(column+1); } catch (SQLException e) { return super.getColumnClass(column); } switch(type) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: return String.class; case Types.BIT: return Boolean.class; case Types.TINYINT: case Types.SMALLINT: case Types.INTEGER: return Integer.class; case Types.BIGINT: return Long.class; case Types.FLOAT: case Types.DOUBLE: return Double.class; case Types.DATE: return java.sql.Date.class; case Types.TIMESTAMP: //Date Time return java.sql.Date.class; case Types.DECIMAL: // Currency,Decimal return Float.class; default: return Object.class; } } -
How to define a text index in data modeler
Hello,
how to define a text index (indextype is ctxsys.context) in data modeler?
The SQL-command would be:
create index P1_TEXT_BESCHR_SPRACHE on P1_PDM_MODUL_SPRACHE(BESCHREIBUNG) indextype is ctxsys.context
parameters ('lexer global_lexer language column LANGUAGE format column FORMAT STORAGE PDMSTORE')
online
Thanks in advance for any help.
MonikaHi Monika,
After creating relational model, you'll have to create physical one. In physical model there is index properties dialog, where you can adjust context index properties. -
How can i add formula to waveform data type?
I want to interpolate my acquired data in terms of voltage to temperature. For this i need to use polynomial equation, but i am not able to directly attach formula node to the waveform data type. I want to know how can i add formula node to waveform data, and then also have it real time.
One additional thought that may be helpful. Once you get the Y component of the waveform graph you are going to attempt to wire this into a formula node. You can do one of two things with that array. Put a for loop around the formula node and index the array into and out of the for loop. This allows you to do scalar math on the data. It is also possible to index and array in a formula node. The following KnoledgeBase demonstrates how to do this: http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/9d72b6069346942386256a0d00604ed4?OpenDocument
-
How to Transfer Database Table Field to Data Type in XI
Dear All,
Dear All,
I am working on scenario to transfer data(Database Table) from Non SAP System to SAP system through XI.
While Defining "Data Type" in XI i want to create Data Type as of Database table in my(Oracle Database).There is any direct method to import Database Table field into "Data Type" in XI.
thanks,
RPHi;
Edit plus is a tool using which you can edit your file and make changes to it.
You can download it from net ,just search for it on google.
this will help you to get in the field names of the table by editing the file .
Mudit -
How to define reminder letter before due date
Dear Expert,
How to define dunning procedure in FBMP (for tcode F150) for this condition:
1st reminder letter should be generated 7 days before due date.
Currently the setting for dunning level is 4 (days in arrears: blank, 14, 60, 180)
But I confuse how to be set in 'Days in Arrears' for the first reminder letter?(I set blank since could not set as negative, e.g -7 (7 days before due dates)
Kindly advice
Thank you.Hi
maintain Denning Level like Below
Days in arrears 0 7 53 173
Calculate interest
Print Parameters
Always dun?
Print all items
Payment deadline 7 7 7 7
hope it will resolve your issue
satish -
Calling Idoc structure in creating Data Type
Dear All,
In Data Type I want the same structure of Idoc as I have imported in the IR. So, do I have to manually create each segment in the Data Type or is there any short-cut to call the same structure of an idoc in the data type.
Warm Regards,
N.JainHi Nishu,
No need to create the DT for IDOC.
you can use the same IDOC structure.
You the export and import xsd options for the IDOC.
Cheers...
Vasu
<b>** REward POints if found useful **</b> -
How to set focus on field having data type other than character(eg. NUMC)
Hello all,
I have developed one screen having table control inside. In table control suppose if numeric type field is blank(eg. Employee number of data type NUMC), system should throw error message and should put cursor focus on that perticular filed. In the same table control for fields of data type 'CHAR', I have done this using 'SET CURSOR FIELD' .
Please, suggest me how to set cursor focus on the fileds of data type other that character(eg. NUMC)Have you tried it? SET CURSOR FIELD ... works fine for type 'N' fields in a table control. The restriction is 'character-type' and 'flat'. Type 'N' (or NUMC-like) fields are both.
-
Copy imported IDOC structure to own data type structure in PI
I am looking to copy the imported IDOC structure to data type structure, is there any way to do this instead creating whole elements again. The reason to do this is I need to change the occurence of one of the element and standard IDOC structure wouldn't let me do it.
Thanks,
MenagaHi Menaga,
Inorder to change the occurance in IDOC you will need to import the idoc as external definition which you can use for message mapping (once you change the occurance and import the XSD).
Michal's blog will help you get to it precisely,
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Gud luck,
Regards,
Pavan
Maybe you are looking for
-
How to insert a table with ref statement?
the script: CREATE OR REPLACE TYPE B_T AS OBJECT ( type varchar(6), value number(2)); create table Bo of B_T; insert into Bo values('a',0); insert into Bo values('b',1); create or replace type try_T AS OBJECT( iii number(10), aaa ref B_T); create tab
-
RWRBE60.exe error when generating a report to a file format
Hi people, I'm employed as a consultant by a major Petrochemical facility in South Africa. My problem is as follows: Our product dispatching system contains a number of reports which need to be generated to a file format (either PDF, RTF or Text). Wh
-
As I said, I am trying to upgrade to Mountain 10.8 but it will not load. Any suggestions?
-
Execution date in Excel export from a query
Dear all, I am wondering if it is possible to have the query execution date in an exported excel. Case: When working in a query it should be possible to export the query to excel. However I am missing the execution date of the query and the last succ
-
Account Overview Page is not displaying
Hi...user is trying to open an account in Sap crm webu ui but account overview page is not opening and please wait symbol is displaying for longtime and still user is not able to see the account overview page. please let me know what needs to be done