Problem in retrieving multiple records SAP xMII from SAP using BAPIS
Hi friends,
In SAP xMII i called BAPI_USER_GETLIST by passing import parameters 10 and y.In r/3 BAPI returned 10 rows but In xMII it was returned only one Record.
i want to display 10 records in sap xmii
1) I created to connection ECC5 in Dataservices-->SAPSERVERConfiguration
2)In BLS we placed JCO Interface inside Sequence
3)In BLS I used ECC5 connectrion(using JCO Interface) and called BAPI_USER_GELLIST
4)In Links-->Transaction created two input values for "maxnoofrows","withusername" and output value is "userid".
Input what i mapped
Transaction>"maxnoofrows" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->MAX_ROWS
Transaction>"withusername" =====SAPJCOINTERFACE->Request>BAPI_USER_GETLIST>INPUT-->WITH_USERNAME
Output what i mapped
SAPJCOINTERFACE->Response>BAPI_USER_GETLIST>TABELS>USERLITS >ITEM>USERNAME=====Transaction-->userid
5)Saved the Transaction.
6)In Query Template -->xactuateQuery selected
7)In Datasource Query mode was selected ,Inputrarams i passed 10 and y as parameters.
It was returned one user id from R/3 inSAP xMII
please help me to retrive all 10 rows from r/3
Regards
Srikanth
hi,
What is the data type of Transaction output (userid)?
Make this as XML type.
The format which BAPI returns the result does not match with xMII XML format.
Create a xMII XML document and configure with column name as userid. and by using repeater and XML row add all tho values to the document. Then assign whole doument to transaction output.
Hope this will help to resolve the issue.
Regards,
Kishore
Similar Messages
-
How to build forms which retrieve multiple records
Hi everyone,
I am newbie to APEX.I have a question in FORM building in APEX.In oracle FORMS(6i) has the capability to search with any fileld on it . there is
an option to search
data with the id or department or name field.If it retrieves more than one record there
is navigation controls to move from one record to another.
Can we build same kind of FORMS in APEX .I didnt find any wizard to build such kind of
FORM which has both inserting and querying capability.
I found one option for that in apex (FROM with report).In the report section i can query
for the records and link to FORM which populates all the data in the FORM. Is that the
only option do we have in APEX to build the forms which gives multiple records as
output.
anyone plz help me in solving this
thank ucan anyone please help me in solving this issue,
Is it possible to build such kind of forms with retrieves multiple records in APEX.
Thanks -
Retrieve multiple records of Business Object in a Application Service?
Hi,
I am working on CE71.
I want to know how to retrieve multiple records of a Business Object in a Application Service?
Regards,
RahulHi,
This can be achieved by adding find method on one or multiple attributes of the business object.
Suppose There is a customer business object with attributes (name, id , city, country ). Now you can add findByCity operation that will return all the Customer Objects which have the City = as entered by user.
Now this find operation can then be called by your application service and this list can then be returned as output of the application service.
Hope this helps,
Ashutosh -
JSF - Problem in Retrieving selected record from datatable
I am new to JSF and in the process of developing a new web application using JSF.
I have problem in retrieving the selected record from a datatable. I am using h:datatable tag and h:commandlink in a column for selecting a particular row on the datatable.
I have populated the data to the datatable by binding a bean and its property.
When I retrieve also I am binding to a bean in the action attribute of the h:commandlink tag in h:column of that datatable.But when I try to bind the bindign attribute of the h:datatable tag to the datatable instance in my Bean , my JSF File gets corrupted..
How to implement this without any issue??plz help me regarding this.HI
Try the below code
DATA lo_nd_del TYPE REF TO if_wd_context_node.
DATA lo_el_del TYPE REF TO if_wd_context_element.
DATA ls_del TYPE wd_this->Element_del.
DATA lo_nd_et_postab_1 TYPE REF TO if_wd_context_node.
DATA lo_el_et_postab_1 TYPE REF TO if_wd_context_element.
DATA ls_et_postab_1 TYPE wd_this->Element_del.
DATA lt_et_postab_1 TYPE wd_this->Elements_del.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set.
* navigate from <CONTEXT> to <ET_POSTAB_1> via lead selection
lo_nd_et_postab_1 = wd_context->path_get_node( path = `ZSHP_EXTENDED_DUE_LI.CHANGING_3.ET_POSTAB_1` ).
CALL METHOD lo_nd_et_postab_1->get_selected_elements
RECEIVING
set = lt_temp.
* navigate from <CONTEXT> to <DEL> via lead selection
lo_nd_et_postab_1 = wd_context->get_child_node( name = wd_this->wdctx_del ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_et_postab_1.
ls_et_postab_1-vbeln = del. // adding new attribute value.
APPEND ls_et_postab_1 TO lt_et_postab_1.
CLEAR ls_et_postab_1.
ENDLOOP.
lo_nd_et_postab_1->bind_table( new_items = lt_et_postab_1 ). -
Callprocedure which contain dynamic sql that retrieve multiple records from VB
hi dear i have problem with using dynamic sql to retrieve multipule records
and access them from visual basic
first i use Oracle8 Enterprise Edition Release 8.0.4.0.0
and odbc microsoft odbc for oracle version 2.573.4403.00
these are the whole processes to do that
please check the steps and if u find any error say to me....
1-table description
Name Null? Type
PORT_KEY NOT NULL VARCHAR2(4)
CITY_KEY NOT NULL VARCHAR2(4)
and port_key is primary key
2- package declaration
create or replace package ww1
as
procedure bound_type
(v_origin in varchar2,v_flag in varchar2
,city_key out dbms_sql.varchar2_table
end ;
3- package body
create or replace package body ww1
as
procedure bound_type
(v_origin in varchar2,v_flag in varchar2
,city_key out dbms_sql.varchar2_table
is
str varchar2(1000);
cur_hdl integer :=dbms_sql.open_cursor;
rows_processed integer;
indx integer :=1;
begin
str:='select ltrim(rtrim(city_key)) from special_airport ';
if ltrim(rtrim(upper(v_flag))) = upper('c')
then
str:=str | | ' where city_key=ltrim(rtrim(upper('| |''''| |v_origin| |''''| |')))';
elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
str:= str | |' where port_key=ltrim(rtrim(upper('| |''''| |v_origin| |''''| |')))';
end if;
dbms_sql.parse(cur_hdl,str, dbms_sql.native );
dbms_sql.define_array(cur_hdl,1,city_key,10,indx);
rows_processed:=dbms_sql.execute(cur_hdl);
loop
rows_processed:=dbms_sql.fetch_rows(cur_hdl);
dbms_sql.column_value(cur_hdl,1,city_key);
exit when rows_processed != 10;
end loop;
dbms_sql.close_cursor(cur_hdl);
end bound_type;
end ww1;
4- code for calling stored procedure from visual basic
dim c As New ADODB.Connection
Dim cmd As New ADODB.Command
Dim rs As New ADODB.Recordset
c.Open "dsn=dsnName;uid=uidValue;pwd=pwdValue"
With cmd
Set .ActiveConnection = c
.CommandType = adCmdText
'---------(call bound_type stored procedure)--------------
.Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "bwi")
.Parameters.Append .CreateParameter(, adBSTR, adParamInput, , "a")
.CommandText = "{call fares_procedures.bound_type (?,?,{resultset 10, city_key }) }"
End With
Set rs.Source = cmd
rs.Open
While Not rs.EOF
z = rs.Fields("city_key")
rs.MoveNext
Wend
Set cmd = Nothing
rs.Close
Set rs = Nothing
c.Close
Set c = Nothing
***********result get error*************
please check the code and steps and if u find any error contact me
thanks any way
nullhi every one i got a simple solusion and its faster than dbms_sql package by 1.5 to 3 times...but it works only for oracle 8i or higher......
after concatenat the string of dynamic sql
but it in a ref cursor and loop on it
TYPE VAR_TABLE IS TABLE OF VARCHAR2(40)
INDEX BY BINARY_INTEGER;
procedure bound_type
(v_origin in varchar2,v_flag in varchar2
,city_key out var_table )
is
str varchar2(1000);
type curtype is ref cursor;
sa_cur curtype;
i integer default 1;
begin
str:='select ltrim(rtrim(city_key)) from special_airport ';
if ltrim(rtrim(upper(v_flag))) = upper('c')
then
str:=str | | ' where city_key=ltrim(rtrim(upper('| |''''| |v_origin| |''''| |')))';
elsif ltrim(rtrim(upper(v_flag))) = upper('a') then
str:= str | |' where port_key=ltrim(rtrim(upper('| |''''| |v_origin| |''''| |')))';
end if;
open sa_cur for str;
loop
fetch sa_cur into city_key(i);
exit when sa_cur%notfound;
i:=i+1;
end loop;
close sa_cur;
end bound_type;
null -
Multiple records of table from RFC to XI in single XML file
Hi
My Scenario is as following -->
<b>RFC ---> Sender RFC Adapter ---> XI -
> Rec SOAP adapter ---> Web Service</b>
Now we need multiple records from RFC which can be put in single XML file & XI can transport the whole XML file to Web Service. All the configuration in XI, Web Service is complete & I tested my mapping which is able to accept multiple records.
But when ABAPer is sending the records I am not getting it in XI, I checked that in message payload from RFC.
He put the table name in TABLE tab of RFC. But not under Import Tab, as whatever he is providing under Import parameter & exporting it through report I am getting in message payload but not the table data.
Did anyone try such scenario, can you tell me how can we achieve this.
Pls. provide me your mail ID in case you need an attachment of the current RFC & report code & my mapping snapshot.
Regards
- lalit -Hi
We have created the BAPI in which we are just describing the structure of the payload & which I am importing in Integration Repository.
And we are calling this BAPI from another program using " Call function ... " command & also provinding the data in that program.
Actually ethically ABAPers are against the idea of provinding the data into program they would like to provide it in BAPI but that won't work, you have to provide data in program which in turn populate the fields of BAPI.
Let me know with your mail ID in case you need snapshot of function & programs.
Regards
- Lalit - -
Hello Experts,
i have created a report where i have one parameter field where user will pass parameter(e.g. EmpId). As per parameter record will fetched to report if no parameter is passed then it will display all records. I have done it by taking SqlServer Database as datasource.
by using Following method
Now i would like to do it by taking Sharepoint List as Datasource. For that what would be the CAML Query.
Here is my existing CAML query.
<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ListName>Employees</ListName>
<ViewFields>
<FieldRef Name="Title" />
<FieldRef Name="FirstName" />
<FieldRef Name="LastName" />
<FieldRef Name="FullName" />
<FieldRef Name="UserName" />
<FieldRef Name="Company" />
</ViewFields>
<Query>
<Where>
<Eq>
<FieldRef Name="Title" />
<Value Type="Text">
<Parameter Name="EmployeeId"/>
</Value>
</Eq>
</Where>
</Query>
</RSSharePointList>
The above code is working if i am passing an employeeId to Parameter. If nothing is passed, it is Not retrieving any record.
Please suggest
Thank you
saroj
sarojYour problem follows the well-established pattern of using an "All" parameter filter in SSRS. There are a few approaches depending on the size of your data. The easiest one is to return all data from CAML and then filter it within SSRS, the following thread
provides some examples,
http://stackoverflow.com/questions/18203317/show-all-records-some-records-based-on-parameter-value.
Other options include passing all of the possible values within the CAML query when "All" is selected, using multiple Report Files to distinguish between both CAML queries, or to use multiple datasets with some logic to show/hide the correct one.
Dimitri Ayrapetov (MCSE: SharePoint) -
Inserting multiple records in to database table using webdynpro abap
Hi all,
I have created a username inputfield,a button and a table
with one coloumn.
If i enter names in the input field then the values should be
displayed in that table.
Even i have got the answer i am not able to insert
the values in to database(ztable) table.
i.e. only one value(1st) was inserted the second value was
not inserted ....
so kindly send me the coding to insert multiple records
into the database table......
by,
ranjithhi Ranjith,
If you want to insert multiple records from the webdynpro view table to database table then try the following code.
DATA lo_nd_tablenode TYPE REF TO if_wd_context_node.
DATA lo_el_tablenode TYPE REF TO if_wd_context_element.
DATA ls_tablenode TYPE wd_this->element_tablenode.
DATA it_tablenode LIKE STANDARD TABLE OF ls_tablenode.
navigate from <CONTEXT> to <tablenode> via lead selection
lo_nd_tablenode = wd_context->get_child_node( name = wd_this->wdctx_tablenode ).
get element via lead selection
lo_el_tablenode = lo_nd_tablenode->get_element( ).
get all declared attributes
lo_nd_tablenode->get_static_attributes_table(
IMPORTING
table = it_tablenode ).
MODIFY databasetablename FROM TABLE it_tablenode.
here it_tablenode is the internal table which holds the value from webdynpro view..
Regards,
Shamila. -
How to store multiple records for one master reocrd using sequnce
dear,
my question is in one form i have master block f and detail block.
my question is i created one sequence and assign to master table. but i dont know how to assign that sequence to multiple record in detail table for that particular master record. i got lots of answer previously but i m not getting exactly.pls tell me full procedure otherwise gv me one demo application
NOTe: the sequnce is created after master record commiting to database.
PLS pls help me
Thanks
dambyi did not get answer pls help me.
-
Send mail to non-sap using bapi's
hi friends,
Can any one please help me how to send mail from sap to non-sap systems using bapi's.plesae help me .i want the procedure and code
regards
srikanth.vHi,
Use this sample Code...
REPORT ZSENDMAIL.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
Creation of the document to be sent
File Name
DOC_CHNG-OBJ_NAME = 'SENDFILE'.
Mail Subject
DOC_CHNG-OBJ_DESCR = 'Send External Mail'.
Mail Contents
OBJTXT = 'Minimum bid : $250000'.
APPEND OBJTXT.
OBJTXT = 'A representation of the pictures up for auction'.
APPEND OBJTXT.
OBJTXT = 'was included as attachment.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creation of the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
Creation of the document attachment
(Assume that the data in OBJBIN is in BMP format)
*OBJBIN = ' \O/ '. APPEND OBJBIN.
*OBJBIN = ' | '. APPEND OBJBIN.
*OBJBIN = ' / \ '. APPEND OBJBIN.
*DESCRIBE TABLE OBJBIN LINES TAB_LINES.
*OBJHEAD = 'PICTURE.BMP'.
*APPEND OBJHEAD.
Creation of the entry for the compressed attachment
*OBJPACK-TRANSF_BIN = 'X'.
*OBJPACK-HEAD_START = 1.
*OBJPACK-HEAD_NUM = 1.
*OBJPACK-BODY_START = 1.
*OBJPACK-BODY_NUM = TAB_LINES.
*OBJPACK-DOC_TYPE = 'BMP'.
*OBJPACK-OBJ_NAME = 'PICTURE'.
*OBJPACK-OBJ_DESCR = 'Representation of object 138'.
*OBJPACK-DOC_SIZE = TAB_LINES * 255.
*APPEND OBJPACK.
Completing the recipient list
RECLIST-RECEIVER = '[email protected]'.
RECLIST-REC_TYPE = 'U'.
APPEND RECLIST.
*RECLIST-RECEIVER = 'SAPUSERNAME'.
*RECLIST-REC_TYPE = 'P'.
*APPEND RECLIST.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE: / 'Result of the send process:'.
LOOP AT RECLIST.
WRITE: / RECLIST-RECEIVER(48), ':'.
IF RECLIST-RETRN_CODE = 0.
WRITE 'The document was sent'.
ELSE.
WRITE 'The document could not be sent'.
ENDIF.
ENDLOOP.
WHEN 1.
WRITE: / 'No authorization for sending to the specified number',
'of recipients'.
WHEN 2.
WRITE: / 'Document could not be sent to any recipient'.
WHEN 4.
WRITE: / 'No send authorization'.
WHEN OTHERS.
WRITE: / 'Error occurred while sending'.
ENDCASE.
in this code....Internal table IF RECLIST-RETRN_CODE is not 0,then the mail is not send to the recipient, so if you want the undeliverable mail for a perticular recipient then call the same function module SO_NEW_DOCUMENT_ATT_SEND_API1 with undeliverd message to whom want to receive the undeliverd message.
hope this solves your problem -
Deleting deliveries , Batches from STO Using BAPI
Hi,
I want to delete outbound delivery for particular shipment number and this should be done using BAPI or a FM not using the tcode VL02N.
I wld be very grateful
Please List out the BAPI 's or FM that can be used for to perform these listed , with using Tcodes:
1) REVERSE BILLING DOCUMENT(VF11)
2) GOODS ISSUe REVERSAL (VL09N)
3) REMOVE DELIVERY FROM SHIPMENT (VT02N)
4) DELETING DELIVERY(VL02N)
5) REMOVE BATCH FROM STO (ME22N)
Its very urgent..
Thank you in advance....
Edited by: aditya on Jan 31, 2008 2:14 PM
Edited by: Alvaro Tejada Galindo on Jan 31, 2008 9:26 AMHi,
Look at the below thread
Deleting deliveries and sales orders using BAPI
Regards,
Satish -
Data Read from Infoprovider using BAPI
Hello Team
we are using SCM 7.0
We want a BAPI which can be used to fetch data from infoprovider (for selected Chars and CALMONTH) and display it on a Z Screen.
Can any one one please let me know the BAPI?
We tried FM RSDRI_INFOPROV_READ , BAPI /SAPAPO/DPBW_CUBE_READ in SE37, but it gives the error as - Error generating the test frame.kramish wrote:
Im pretty sure that Access does support JDBCNo it does not. It supports ODBC.
just doing a quick Google came up with some pages:
http://blog.taragana.com/index.php/archive/access-microsoft-access-database-from-java-using-jdbc-odbc-bridge-sample-code/
http://www.javaworld.com/javaworld/javaqa/2000-09/03-qa-0922-access.html
Both articles explains how to use the jdbc-odbc bridge. I think I've seen a pure jdbc driver for access but it wasn't from Microsoft and it wasn't free.
Kaj -
Problem with Retrieving Parent records
Hi
I am facing some problem with Relation ship tables
I am able to retrieve all child relation record by using Parent record id, but the other why around is not working that is
I am unable to retrieve all parent records by using a child record.
Please can you help out this..
find the below sample method which i was trying
public HashMap<String, Record[]> getMemberRecords(Record[] rec,
RetrieveRelationshipsCommand relation,
RepositorySchemaEx repositorySchema, String code,
HashMap<String, Record[]> returnMap) throws MDMException {
LOG.debug("calling getMemberRecords");
HashMap<String, Record[]> returnVal = returnMap;
LOG.debug("Assigning returnType to default HashMap.");
try {
for (int recordCount = 0; recordCount < rec.length; recordCount++) {
LOG.debug("For recordCount = " + recordCount);
Record tempRec = rec[recordCount];
relation.setAnchorRecord(tempRec);
LOG.debug(" setting AnchorRecord = " + tempRec);
relation.setLoadRecords(true);
LOG.debug(" setting LoadRecords = " + true);
relation.setGetChildren(false);
LOG.debug(" setGetChildren has setup with = " + true);
relation.setAnchorRecordId(tempRec.getId());
LOG.debug(" setting AnchorRecordId = " + tempRec.getId());
relation.setRelationshipId(repositorySchema
.getRelationshipId(code));
LOG.debug("Before execution relation execute.");
relation.execute();
LOG.debug("After execution relation execute.");
RelationshipGroup group = relation.getRelationshipGroup();
LOG.debug("Retrieved Relationship Group.");
Relationship[] relat = group.getMembers();
LOG.debug("Length = "+relat.length);
Record[] tempRecords = null;
if (relat != null) {
int length = relat.length;
LOG.debug("Length = "+length);
tempRecords = new Record[length];
for (int count = 0; count < length; count++) {
tempRecords[count] = relat[count].getMemberRecord();
if (tempRecords != null) {
LOG
.info("Records size is not equal to Null So Calling recursive getMemberRecords.");
returnMap = getMemberRecords(tempRecords, relation,
repositorySchema, code, returnMap);
LOG
.debug("Setting HashMap Value Values with Parent ID, records[]");
returnVal.put(tempRec.getId().getString(), tempRecords);
} catch (SessionException se) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(se.getMessage());
ec.setErrorCode("MetadataException : " + se);
LOG.fatal(se, se.getCause());
se.printStackTrace();
exception.setContext(ec);
throw exception;
} catch (IllegalArgumentException iae) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(iae.getMessage());
ec.setErrorCode("MetadataException : " + iae);
LOG.fatal(iae, iae.getCause());
iae.printStackTrace();
exception.setContext(ec);
throw exception;
} catch (CommandException ce) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(ce.getMessage());
LOG.fatal(ce, ce.getCause());
ce.printStackTrace();
exception.setContext(ec);
throw exception;
LOG.debug("Before returning from getMemberRecords");
return returnVal;Hi
I am facing some problem with Relation ship tables
I am able to retrieve all child relation record by using Parent record id, but the other why around is not working that is
I am unable to retrieve all parent records by using a child record.
Please can you help out this..
find the below sample method which i was trying
public HashMap<String, Record[]> getMemberRecords(Record[] rec,
RetrieveRelationshipsCommand relation,
RepositorySchemaEx repositorySchema, String code,
HashMap<String, Record[]> returnMap) throws MDMException {
LOG.debug("calling getMemberRecords");
HashMap<String, Record[]> returnVal = returnMap;
LOG.debug("Assigning returnType to default HashMap.");
try {
for (int recordCount = 0; recordCount < rec.length; recordCount++) {
LOG.debug("For recordCount = " + recordCount);
Record tempRec = rec[recordCount];
relation.setAnchorRecord(tempRec);
LOG.debug(" setting AnchorRecord = " + tempRec);
relation.setLoadRecords(true);
LOG.debug(" setting LoadRecords = " + true);
relation.setGetChildren(false);
LOG.debug(" setGetChildren has setup with = " + true);
relation.setAnchorRecordId(tempRec.getId());
LOG.debug(" setting AnchorRecordId = " + tempRec.getId());
relation.setRelationshipId(repositorySchema
.getRelationshipId(code));
LOG.debug("Before execution relation execute.");
relation.execute();
LOG.debug("After execution relation execute.");
RelationshipGroup group = relation.getRelationshipGroup();
LOG.debug("Retrieved Relationship Group.");
Relationship[] relat = group.getMembers();
LOG.debug("Length = "+relat.length);
Record[] tempRecords = null;
if (relat != null) {
int length = relat.length;
LOG.debug("Length = "+length);
tempRecords = new Record[length];
for (int count = 0; count < length; count++) {
tempRecords[count] = relat[count].getMemberRecord();
if (tempRecords != null) {
LOG
.info("Records size is not equal to Null So Calling recursive getMemberRecords.");
returnMap = getMemberRecords(tempRecords, relation,
repositorySchema, code, returnMap);
LOG
.debug("Setting HashMap Value Values with Parent ID, records[]");
returnVal.put(tempRec.getId().getString(), tempRecords);
} catch (SessionException se) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(se.getMessage());
ec.setErrorCode("MetadataException : " + se);
LOG.fatal(se, se.getCause());
se.printStackTrace();
exception.setContext(ec);
throw exception;
} catch (IllegalArgumentException iae) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(iae.getMessage());
ec.setErrorCode("MetadataException : " + iae);
LOG.fatal(iae, iae.getCause());
iae.printStackTrace();
exception.setContext(ec);
throw exception;
} catch (CommandException ce) {
MDMException exception = new MDMException();
ErrorContext ec = new ErrorContext();
ec.setErrorMessage(ce.getMessage());
LOG.fatal(ce, ce.getCause());
ce.printStackTrace();
exception.setContext(ec);
throw exception;
LOG.debug("Before returning from getMemberRecords");
return returnVal; -
Problem while creating the record in IT0080 from background
Dear All,
I have a requirement to Create the record for Maternity Leave in IT0080 from background, whenever applied from ESS.
Once the leave gets aaproved, while posting the documents from tcode PTARQ ( Program - RPTARQPOST), in the BADI PT_ABS_REQ, in method IF_EX_PT_ABS_REQ~POST_VIA_BLOP for the implementation, I am trying to submit the program in which the actual record is created in IT0080.
In this program through BDC i have created the BDC data and have used CALL transaction, as internally IT 2001 also needs to be updated, which gets calculated indirectly...
But when executed, it gives error of Employee cannot be locked... as the Document which is posted through PTARQ, have several locks... I tried to dequeue the same...
but cannot resolve the problem...
Secondly i tried to create the Job also... which would be executed after some time... but still its not getting updated...
Any help... will be highly appreciated...
Regards,
HeenaHello s.s
I'm not understand exacly what is your problem?
Field can have both values at the same time(Time Stamp and User stamp) only if that field calculated
Maybe you told about two different fields?
User stamp field return username only it's standart functionality
Create stamp - return date/time combination
Remote key is avialable when you repository configured to work with some remote systems
All records from repository (LUT, taxonomy attributes ets.) you can map to corresponding Destination items
Regards
Kanstantsin -
Problem while updating multiple records through standard RFC
HI all,
I am doing multiple object updation using a standard RFC(BAPI_PROJECT_MAINTAIN). The RFC i am calling from Enterprise portal. I am sending data to RFC one by one. But the error i am getting is object is locked by user so data can't be save.
Though i am using Lock and unlock method before and after calling RFC the project lock error comes up.
What might be the reason
regards
sandeepuse saveandwait instead save in bapi
Maybe you are looking for
-
Beware Latest 10.3.x security update - it replaces /etc/named.conf
The latest security update for 10.3.9 replaced "my" /etc/named.conf with a new one - fortunately the old one is saved in /etc/named.conf.applesaved This caused me a huge nightmare as I had no idea what had happened to our network services. This was t
-
Issue: Cannot open message catalog LIBTUX_CAT
Hello I am using a webservice that connects through Tuxedo. Tuxedo starts ok but when I call my service I receive the following error: [13 Feb 2009 14:05:13 GMT][WARNING][][##: Exception raised in setting up security : : RemoteException : ][receive()
-
Hello, I have been using photoshop CS 5 for about 6 months now, and have yet to have a problem with it (except one, but I wont get into that). Until reacently it has been running very smoothly. One day I was making a few things (400x300) so not that
-
Fair Usage Policy On Total Broadband Option 3 - us...
Hi there!!! I got kouple of question about this Fair Usage and hope someone will help me to get clear with it.... I started to experience some difficulties with connection lately, specially till 5pm....I'm on unlimited Option 3 and I know that Fair U
-
Counting types of characters using REGEXP
Hi, Is there a simle way to count the types of characters per words in a sentence using regexp? I'm trying to get the number of upper and lowercase chars for every [:lower:] and[:upper:] patterns: For example 'John Bell' -> 'A(1)a(3) A(1)a(3)' 'Frede