How to get list of FMs while creating Contact Person from User Admin Link
Hi Experts,
We are implementing SAP ECommerce for my SAP ERP. In one of our requirements, we need to develop MASS UPLOAD program which will take input as Contact Person's first name, last name, address and authorization details and create new Contact Person as it is done through User admin link.
To develop above tool, I want to trace all the Function Modules which are called while creating new Contact Person from User admin link.
Please provide your inputs on how I can get the trace of FMs.
Thanks,
Keya
Hi Keya,
For a B2C eCommerce solution, you are looking at FMs BAPI_CUSTOMER_CREATEFROMDATA1 and ISA_USER_CREATE and the table USAPPLREF which holds the reference to the customer and user.
To get the FMs called, you would have to do a session trace during B2C user registration / B2B user creation from UME. You could search this forum on a 'how-to' for doing a session trace or lookup the development and extension guide that provides a lot of useful information.
Cheers,
Ashok.
Similar Messages
-
Error while creating contact person
Hi While creating contact person in customer master data
I am getting the message Partner XXXXXX is not assigned to a partner function?
What might be the possible reason,
Thanks in advance
Regards
JaiHi jaigss,
Please check the below threads,
Getting a "Business partner not found with partner function type requester"://Re: Partner function not found
Approver Can replaced by Requestor..
Thanks,
Swamy H P -
Problem while creating contact person using SD_CUSTOMER_MAINTAIN_ALL
Hi All,
I am trying to create a contact person to a customer using FM SD_CUSTOMER_MAINTAIN_ALL.Following is the simple code that I am using.FM is not giving any exception.But the contact person is not getting created.can anyone help me regarding this.
DATA: I_FKNVK TYPE TABLE OF FKNVK,
wa type FKNVK.
MOVE '0009011357' to wa-kunnr.
MOVE 'Bose' TO wa-namev.
MOVE 'Lalit' TO wa-name1.
MOVE '9980055557' to wa-TELF1.
*MOVE 'City' TO wa-ort01.
*MOVE 'DE' TO wa-parla.
*MOVE '' to watelf1.
*MOVE 'U' to wa-kz.
APPEND wa to I_FKNVK.
CALL FUNCTION 'SD_CUSTOMER_MAINTAIN_ALL'
EXPORTING
I_KNA1 =
I_KNB1 =
I_KNVV =
I_BAPIADDR1 =
I_BAPIADDR2 =
I_MAINTAIN_ADDRESS_BY_KNA1 = ' '
I_KNB1_REFERENCE = ' '
I_FORCE_EXTERNAL_NUMBER_RANGE = ' '
I_NO_BANK_MASTER_UPDATE = ' '
I_CUSTOMER_IS_CONSUMER = ' '
I_RAISE_NO_BTE = ' '
PI_POSTFLAG = 'X'
PI_CAM_CHANGED = ' '
PI_ADD_ON_DATA =
I_FROM_CUSTOMERMASTER = ' '
IMPORTING
E_KUNNR =
O_KNA1 =
E_SD_CUST_1321_DONE =
TABLES
T_XKNAS =
T_XKNBK =
T_XKNB5 =
T_XKNEX =
T_XKNVA =
T_XKNVD =
T_XKNVI =
T_XKNVK = I_FKNVK
T_XKNVL =
T_XKNVP =
T_XKNZA =
T_YKNAS =
T_YKNBK =
T_YKNB5 =
T_YKNEX =
T_YKNVA =
T_YKNVD =
T_YKNVI =
T_YKNVK =
T_YKNVL =
T_YKNVP =
T_YKNZA =
T_UPD_TXT =
EXCEPTIONS
CLIENT_ERROR = 1
KNA1_INCOMPLETE = 2
KNB1_INCOMPLETE = 3
KNB5_INCOMPLETE = 4
KNVV_INCOMPLETE = 5
KUNNR_NOT_UNIQUE = 6
SALES_AREA_NOT_UNIQUE = 7
SALES_AREA_NOT_VALID = 8
INSERT_UPDATE_CONFLICT = 9
NUMBER_ASSIGNMENT_ERROR = 10
NUMBER_NOT_IN_RANGE = 11
NUMBER_RANGE_NOT_EXTERN = 12
NUMBER_RANGE_NOT_INTERN = 13
ACCOUNT_GROUP_NOT_VALID = 14
PARNR_INVALID = 15
BANK_ADDRESS_INVALID = 16
TAX_DATA_NOT_VALID = 17
NO_AUTHORITY = 18
COMPANY_CODE_NOT_UNIQUE = 19
DUNNING_DATA_NOT_VALID = 20
KNB1_REFERENCE_INVALID = 21
CAM_ERROR = 22
OTHERS = 23
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ENDIF.i see this so much on this site, users just posting solved and not giving details on how they fixed the problem, the SDN is meant to be for sharing!!
If you find a fix, share it or don't bother being a part of the SDN community.(so annoying) -
How to get list of Customers and their FOB terms from backend?
Hi All,
Can anyone help me with the customers and their FOB terms from the backend? What tables can be linked to get that information??
Thanks,
PrathimaCan you please share your solution ?
-
Error while creating SCS adaptor from CIS admin.
Deployed CIS admin application on Tomcat 6 and now configuring the adapter for content server. As soon as I create a new adapter and restart tomcat I get the following error on tomcat :
SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedExcept
ion: writing aborted; java.io.NotSerializableException: com.stellent.cis.client.
api.common.administrative.adapter.impl.CISAdministrativeAdapterAPI
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException
: com.stellent.cis.client.api.common.administrative.adapter.impl.CISAdministrati
veAdapterAPI
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1470)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:972)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
If I continue with CIS validation test
I get a message
An error was reported during the validation test
Unable to read property ''AppServer Mapped Vault'', property value is not set
I have tried setting Vault properties in Adapter configuration but the issue persists.
Please advise.Hi
Have you set the path for adapterconfig.xml in the classpath for Tomcat ? If this is not there then you are bound to run into issues like this . Way to do this on Tomcat is
Start Menu -Tomcat - Configure Tomcat - Java - JavaClasspath , add the path for the adapterconfig.xml after the existing ones that are shown .
As an eg it should look something like this :
D:\Tomcat\bin\bootstrap.jar;D:\Tomcat\webapps\cis-server-8.0.0;D:\cps-plumtree\pt_home;D:\Tomcat\bin\bootstrap.jar;D:\Tomcat\webapps\cis-server-8.0.0;D:\Installables\CS-Components\V13038-01\V13038-01\ContentIntegrationSuite_10gR3_20071031\config;D:\cps-plumtree\pt_home
Where the last entry is the path for adapterconfig.xml file.
Thanks
Srinath -
Heap space error while creating XML document from Resultset
I am getting Heap space error while creating XML document from Resultset.
It was working fine from small result set object but when the size of resultset was more than 25,000, heap space error
I am already using -Xms32m -Xmx1024m
Is there a way to directly write to xml file from resultset instead of creating the whole document first and then writing it to file? Code examples please?
here is my code:
stmt = conn.prepareStatement(sql);
result = stmt.executeQuery();
result.setFetchSize(999);
Document doc = JDBCUtil.toDocument(result, Application.BANK_ID, interfaceType, Application.VERSION);
JDBCUtil.write(doc, fileName);
public static Document toDocument(ResultSet rs, String bankId, String interfaceFileType, String version)
throws ParserConfigurationException, SQLException {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.newDocument();
Element results = doc.createElement("sims");
results.setAttribute("bank", bankId);
results.setAttribute("record_type", "HEADER");
results.setAttribute("file_type", interfaceFileType);
results.setAttribute("version", version);
doc.appendChild(results);
ResultSetMetaData rsmd = rs.getMetaData();
int colCount = rsmd.getColumnCount();
String columnName="";
Object value;
while (rs.next()) {
Element row = doc.createElement("rec");
results.appendChild(row);
for (int i = 1; i <= colCount; i++) {
columnName = rsmd.getColumnLabel(i);
value = rs.getObject(i);
Element node = doc.createElement(columnName);
if(value != null)
node.appendChild(doc.createTextNode(value.toString()));
else
node.appendChild(doc.createTextNode(""));
row.appendChild(node);
return doc;
public static void write(Document document, String filename) {
//long start = System.currentTimeMillis();
// lets write to a file
OutputFormat format = new OutputFormat(document); // Serialize DOM
format.setIndent(2);
format.setLineSeparator(System.getProperty("line.separator"));
format.setLineWidth(80);
try {
FileWriter writer = new FileWriter(filename);
BufferedWriter buf = new BufferedWriter(writer);
XMLSerializer FileSerial = new XMLSerializer(writer, format);
FileSerial.asDOMSerializer(); // As a DOM Serializer
FileSerial.serialize(document);
writer.close();
} catch (IOException ioe) {
ioe.printStackTrace();
//long end = System.currentTimeMillis();
//System.err.println("W3C File write time :" + (end - start) + " " + filename);
}you can increase your heap size..... try setting this as your environment variable.....
variable: JAVA_OPTS
value: -Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m -
How to assign contact person with user id to vendor via upload
Dear All,
We have successfully uploaded external business partner (Vendor) from ECC6 to SRM5.0 via BBPGETVD. So vendor is available in PPOMV_BBP.
Now we would like to assign the contact person with user ID to this vendor so that he can logon to our system and update Bid.
If we create contact person (employee) via "Manage Business Partner", system provides the option to create contact person and User ID under "Employee for Business Partner".
But we can create contact person one by one, if our client have 600 vendors from ECC and already transferred to SRM.
How to rapidly create and assign contact person to all vendors ?
Who have any ideas for upload via text file or excel sheet please advice me.
Best Regards,
Theerat.Hello Theerat,
Try these FM
BBP_CREATE_CONTACT_PERSON
BBP_CREATE_CONTACT_USER
muthu
Edited by: Muthuraman Govindasamy on Oct 7, 2008 9:16 AM -
How to get ALL validate-errors while insert xml-file into xml_schema_table
How to get all validate-errors while using insert into xml_schema when having a xml-instance with more then one error inside ?
Hi,
I can validate a xml-file by using isSchemaValid() - function to get the validate-status 0 or 1 .
To get a error-output about the reason I do validate
the xml-file against xdb-schema, by insert it into schema_table.
When more than one validate-errors inside the xml-file,
the exception shows me the first error only.
How to get all errors at one time ?
regards
Norbert
... for example like this matter:
declare
xmldoc CLOB;
vStatus varchar
begin
-- ... create xmldoc by using DBMS_XMLGEN ...
-- validate by using insert ( I do not need insert ;-) )
begin
-- there is the xml_schema in xdb with defaultTable XML_SCHEMA_DEFAULT_TABLE
insert into XML_SCHEMA_DEFAULT_TABLE values (xmltype(xmldoc) ) ;
vStatus := 'XML-Instance is valid ' ;
exception
when others then
-- it's only the first error while parsing the xml-file :
vStatus := 'Instance is NOT valid: '||sqlerrm ;
dbms_output.put_line( vStatus );
end ;
end ;If I am not mistaken, the you probably could google this one while using "Steven Feuerstein Validation" or such. I know I have seen a very decent validation / error handling from Steven about this.
-
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
How to get UTF-8 encoding when create XML using DBMS_XMLGEN and UTL_FILE ?
Hi,
I do generate XML-Files by using DBMS_XMLGEN with output by UTL_FILE
but it seems, the xml-Datafile I get on end is not really UTF-8 encoding
( f.ex. cannot verifying it correct in xmlspy )
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
I do generate it in this matter :
declare
xmldoc CLOB;
ctx number ;
utl_file.file_type;
begin
-- generate fom xml-view :
ctx := DBMS_XMLGEN.newContext('select xml from xml_View');
DBMS_XMLGEN.setRowSetTag(ctx, null);
DBMS_XMLGEN.setRowTag(ctx, null );
DBMS_XMLGEN.SETCONVERTSPECIALCHARS(ctx,TRUE);
-- create xml-file:
xmldoc := DBMS_XMLGEN.getXML(ctx);
-- put data to host-file:
vblob_len := DBMS_LOB.getlength(xmldoc);
DBMS_LOB.READ (xmldoc, vblob_len, 1, vBuffer);
bHandle := utl_file.fopen(vPATH,vFileName,'W',32767);
UTL_FILE.put_line(bHandle, vbuffer, FALSE);
UTL_FILE.fclose(bHandle);
end ;
maybe while work UTL_FILE there is a change the encoding ?
How can this solved ?
Thank you
Norbert
Edited by: astramare on Feb 11, 2009 12:39 PM with database charsetsMarco,
I tryed to work with dbms_xslprocessor.clob2file,
that works good,
but what is in this matter with encoding UTF-8 ?
in my understandig, the xmltyp created should be UTF8 (16),
but when open the xml-file in xmlSpy as UTF-8,
it is not well ( german caracter like Ä, Ö .. ):
my dbms is
NLS_CHARACTERSET = WE8MSWIN1252
NLS_NCHAR_CHARACTERSET = AL16UTF16
NLS_RDBMS_VERSION = 10.2.0.1.0
-- test:
create table nh_test ( s0 number, s1 varchar2(20) ) ;
insert into nh_test (select 1,'hallo' from dual );
insert into nh_test (select 2,'straße' from dual );
insert into nh_test (select 3,'mäckie' from dual );
insert into nh_test (select 4,'euro_€' from dual );
commit;
select * from nh_test ;
S0 S1
1 hallo
1 hallo
2 straße
3 mäckie
4 euro_€
declare
rc sys_refcursor;
begin
open rc FOR SELECT * FROM ( SELECT s0,s1 from nh_test );
dbms_xslprocessor.clob2file( xmltype( rc ).getclobval( ) , 'XML_EXPORT_DIR','my_xml_file.xml');
end;
( its the same when using output with DBMS_XMLDOM.WRITETOFILE )
open in xmlSpy is:
<?xml version="1.0"?>
<ROWSET>
<ROW>
<S0>1</S0>
<S1>hallo</S1>
</ROW>
<ROW>
<S0>2</S0>
<S1>straޥ</S1>
</ROW>
<ROW>
<S0>3</S0>
<S1>m㢫ie</S1>
</ROW>
<ROW>
<S0>4</S0>
<S1>euro_</S1>
</ROW>
</ROWSET>
regards
Norbert -
How to get List Item attachments name without write any custom code or any database query?
Hi,
How to get List Items attachments name without write any custom code or any database query?You can get it from Rest,
There are 2 options,
1) create a 'Result Source' which has a search query for that List which has attachments
- Use rest query to get the 'Filename' , it will have the attachment file name
For example, if the result source id is : 73e6b573-abf8-4407-9e5f-8a85a4a95159 , then the query will be
http://[site URL]/_api/search/query?querytext='*'&selectproperties='Title,Path,FileExtension,SecondaryFileExtension,Filename'&sourceid='73e6b573-abf8-4407-9e5f-8a85a4a95159'&startrow=0&rowLimit=100
You can refine the query, be giving proper 'querytext'
2) Use the List rest api
For example if your list guid is :38d524a1-e95c-439f-befd-9ede6ecd242e
You can get he attachments for 1st item using this
http://[Site URL]/_api/lists(guid'38d524a1-e95c-439f-befd-9ede6ecd242e')/items(1)/AttachmentFiles
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
How to get list of modified repository objects in SPAU
Hi,
While applying Support pack for HR (SAP ERP 6.0) I get SPAU prompt with message:
"The system detected that 10 of the repository objects in the Support Packages have been modified in
your system . Check whether you want to retain or restore these changes you have made. Fore more
info about performing modification adjustment see modification adjustment help..."
Now as I call SPAU i get the screen with following options:
Correction in SAP Note
With modification Assistant
Without modification Assistant
etc..
Can someone guide me How to get list of modified repository objects in SPAU.
Thanks & Regards
VishalHi,
In SPAU you will get with modification assistence. just expand the subtree, and follw standard process .
This is to retain the enhancement. If there are any data dictionary related correction go to SPDD.
Regards
Rahul -
Better way how to get list of all classpath URLs in runtime
Hello everyone,
How to get list of all classpath items (URLs) in runtime from Java code?
I am aware of solution based on System.getProperty("java.class.path"). Is there any alternative?
This solution has several drawbacks. You have to parse String output. And I not sure if it contains ALL resources (JARs, class directories) loaded by ClassLoader or just reflects -cp arguments.
Does system property "java.class.path" contain ALL loaded JARs?
Does it contain items (JARs, class directories) loaded by bootstrap classpath?
What about JARs loaded in runtime?
Is the separator ":" always same on all operation systems?
I was looking for some Java API based solution, method like List<URL> getAllClasspathItems()
But there is nothing like this in ClassLoader, Class, Runtime or System classes.
For curious, here is code I use.
String classpath = System.getProperty("java.class.path");
StringTokenizer st = new StringTokenizer(classpath, ":");
while (st.hasMoreElements()) {
System.out.println(st.nextElement());
}For curious, here are output prints for all 3 methods:
1) parsing system property
2) tschodt
3) overcast SystemClassLoader to URLClassLoader
/home/espinosa/workspace/jboss_embedded_test1/target/test-classes
/home/espinosa/workspace/jboss_embedded_test1/target/classes
/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
package com.sun.org.apache.xerces.internal.impl.validation, Java Platform API Specification, version 1.6
package com.thoughtworks.qdox.directorywalker
package com.sun.org.apache.xerces.internal.parsers, Java Platform API Specification, version 1.6
package java.util.jar, Java Platform API Specification, version 1.6
package org.testng.internal.thread
package com.sun.org.apache.xerces.internal.util, Java Platform API Specification, version 1.6
package java.net, Java Platform API Specification, version 1.6
package sun.reflect.misc, Java Platform API Specification, version 1.6
package esp.ejb.samples1.test
package sun.security.provider, Java Platform API Specification, version 1.
file:/home/espinosa/workspace/jboss_embedded_test1/target/test-classes/
file:/home/espinosa/workspace/jboss_embedded_test1/target/classes/
file:/opt/javalibs/javax/ejb/ejb-api/3.0/ejb-api-3.0.jar
file:/opt/javalibs/javax/jms/jms/1.1/jms-1.1.jar
file:/opt/javalibs/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
...Interestingly, method 1 and 3 gives the same list, same order, same count, just format of item is a little bit different. The order is same as in Eclipse .classpath file.
Method 2 (tschodt) give significantly more items! rougly 3x! Different order (somewhat random it seems to me). Some items contain extra information, like version and string "Java Platform API Specification".
It prints not absolute paths but logical Java names. -
How to get list of software installed in a system
How to get list of softwares installed in a system?. should i use registry to get information or control panel?
is there any package available for this? how should i start with/
thanksHow to get list of softwares installed in a system?.Using native code, if at all.
should i use registry to get information or control panel?Linux has neither.
is there any package available for this? how should i start with/ Learn the Windows API or Google for some native tool. -
How to get full file path while uploading a file in flex Applications
How to get full file path while uploading a file in flex applications.
FileReference Object is giving file name and other details but not the actual path.
Is there any workaround to to get the file path?.
ThanksWhy not ask in the Flex forum; it is more likely that someone over there knows.
-
How to get list of docs for particulat billing type on plant wise
very urgent
is there any t-code, report to look thi
how to get list of billing docs grnerated for particulat billing type and if possible on plant wise also
very urgetnt
points to be rewarded
eagerly waitng from sap gurusDear chakri
As you may be aware, in VF05 you need to enter either Payer Code or Material Code and then based on the selection criteria, the report will generate. Please give the (ensure that this code is exist in billing document) Payer code and now select "Further sel.criteria" and DONT forget to enter the date in from column of "Billing docs.date". By default, there you can see one month date range.
Still if you get error message, please let me know the error message.
thanks
G. Lakshmipathi
Maybe you are looking for
-
Javascript in IE no longer working
Hello- I have a Windows server 2012 R2 with what I believe has a problem with Javascript and Internet Explorer. If I go to certain web sites, they appear blank & I'll see in the lower right and corner of the Internet Explorer window "javascript;".
-
How do I transfer the book to my kindle?
I finally got ADE to accept my book with that whole authorization thing, but now how do I transfer the book to my kindle? Thanks
-
Help exporting photobook to pdf
I'm new to Lightroom and have created my first photobook. I am unable to export it to a pdf. It says there is an error and I need help, please!
-
Disk Utility: Cloning to larger disk?
I would like to clone the content of a 256GB drive (specifically a TimeMachine archive) onto a 1TB drive in order to increase the available space. A file copy of the archive does not capture all of the necessary hidden files and other information. As
-
hi all, i have a requirement regarding the reference no in miro. when i change the reference no in fbl1n that is vendor line item, there in line item i can see the change. but that change has to update in miro screen, any setting for that or any poss