Problem while creating change document
hi all
i am creating change document for master data like project type , project applicant
but i am unable to complete it as i am very new to ABAP
can any one give me step-by-step procedure to do the same?
I have followed the procedure given in sap Liabrary i.e.
1 - Define the change document object
2 - Check in the Dictionary, whether the data elements of the fields which are to
be logged are flagged appropriately.
3 - Generate the update.
4 - Program the appropriate calls in your program.
But then i got stucked on point 4...what exactly I need to do in that?
Regards
Sheetal
Hi,
The table you have used is having the key which comprises both MANDT and ID. However, while writing the code you must have used only the ID. The system takes MANDT and ID both as the key fields.
This may be the reason of the error you are encountering.
Thanks,
Jyoti
Similar Messages
-
Problem while creating Billing Document.
Hi,
I'm creating a Sales order(VA01) and
then creating a billing document(VF01) with the created sales order,
the system is running for a longer period(this time we will check with SM66.
Sales order is creating with limitted time.But Billing Document creation this problem is occuring,
I checked no BADI's and User-exits taking place.
Can u suggest me on this.
Thank You,
Sri..Hi,
Try to find your sleeping process in SM50 transaction. If you find it you can make a debug and see what is happening (Program/session->Program->Debugging).
Issa -
Changing billing document date while creating billing document from vf01
Hi gurus,
I have requirement to change billing doc date while creating billing document from VF01.
here I have to consider goods issue date eq billing date.
caluculating billing date = Goods Issue + Goods in Transit duration time.
I have done everu thing but I cant update the caluculated date, iam using the following enhancement
Enhancement:SDVFX001
Function Module:EXIT_SAPLV60B_001
Include:ZXVVFU01 which are part vf01.
here iam sending the calculated date to VBRK-FKDAT
move cal_date to vbrk-fkdat.
need help how to update the calculated date to VBRK-fkdat i.e billing document date
Regards
BhaskarHi
No! That exit is not good for your issue
U can use the user-exit USEREXIT_NUMBER_RANGE_INV_DATE defined in RV60AFZC
Max -
Change in document type while creating billing document from sales order
While creating billing document from Sales order it is creating with document type RV which is standerd one but i want to change Document type.
How can i change it?
Regards
RajHi
If you use another existing document type, check that it has a number range suitable to you. Else create a new 'z' type and assign an entirely new number range, not used in the other doc types.
It is useful to make the FI document number the same number. If I understand from the forums, the FI number range must be external. Search the forum for this. It is very useful for the Finance people.
Kind regards
Dawn
Edited by: Dawn Verrell on Sep 9, 2010 4:10 PM -
Easy DMS cannot use additional data while creating a document
Hello,
We have installed sap easy dms 7.0
We have a problem while creating a new document with SAP Easy DMS.
On the DIR tab the additional data cannot be used.
Do I have to change a registry setting?
We already have defined classes and their features and values in CL02 en CT04
please help
Geert ter HarmselHi,
Additional functions for object links active Indicator controls the activation of additional functions for the links of objects to this document type.
You can activate the following additional functions for an object to document link:
1) Valuation
Additonally, you can link another object to a chosen database table (See example Additional Object).
You can delete the additional information of an object link.
2) Classification
You can classify the link. You must create a class (class type 048 - object link) with the characteristics that you want to specicify for the link (For example, responsibility, organaization).
When you set the indicator these functions are active during processing of the document info recod, register object link.
Hope this is what you are looking for.
Regards,
Deepak Kori -
Significance of IBase, Component and Product ID while creating Change Reque
Hello,
When we create a change request via SOLMAN_WORK_CENTER, we are supposed to provide values for
1) IBase
2) Component
3) Product ID
Ibase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
Can the value for IBase obtained via SMSY t code also?
What does component and Product ID signify?
Where can we get values for Component and Product ID?
Is Product ID the same as value we get from menu Option System->Status->Installation Number
Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
If Not, how will SolMan identify which system the change should point to?
Or only value for Ibase is enough?
Thanks,
VikasIbase can be defined as the way SAP differentiates in a multiple system (APO, CRM, ECC) environment, the corresponding environment.
The values corresponding to IBase can be obtained via IB51,52 and 53 tcodes.
Can the value for IBase obtained via SMSY t code also?
No
What does component and Product ID signify?
Product ID is not mandatory. I actually hide it in the CRMD_ORDER screen.
Where can we get values for Component and Product ID?
Is Product ID the same as value we get from menu Option System->Status->Installation Number
Component - IB52 as you already mentioned
Product ID - in a customizing table, I've seen it once but can't remember where honestly. As stated, I don't bother with the field
Is it necessary to provide all 3 values (i.e. IBase, Component , Product ID) while creating change request?
The iBase and component are mandatory, odd thing is if you enter the component without entering 1 in the iBase, SolMan will fill the 1 in for you.
If Not, how will SolMan identify which system the change should point to?
By the logical components assigned to your maintenance project. You can actually have transports for more than one production assigned to your change document. For instance you could have a BI and ECC transport assigned to the sane change document. Your tak list will have the dev, testing and production systems for each logical component assigned.
Or only value for Ibase is enough?
I was having this discussion with someone the other day. Since the logical components assigned to the mianteance project really determines what systems you can create transports for, what is the value of the component field? Best I could determine was when you use the Logon on to System action, it points to the one listed in the component field only. other than that, I'm not sure. -
Problem while creating sales order
Hi
We are facing a problem while creating a sales order in R/3. The sales order number is getting generated. But we are not able to view the same in the backend meaning it is not there in the database. Any inputs would be of help.
regs
SteveHi everybody,
I've got a problem with this too. I use the BAPI_SALESORDER_CREATEFROMDAT2 with BAPI_TRANSACTION_COMMIT and the webdynpro shows me the document number created in R3 with a Success message. But when I go to R3 and try to display the created sales order, it doesn't exists. So... Maybe I'm doing something wrong with the BAPI_TRANSACTION_COMMIT. ¿Can anybody help me with this?
The code I use is this:
When the user pushes the SAVE button in the WebDynpro, this code executes:
//@@begin onActionSave(ServerEvent)
wdThis.wdGetSOCreaCustController().executeBapi_Salesorder_Createfromdat2();
wdThis.wdGetSOCreaCustController().executeBapi_Transaction_Commit();
//@@end
In the custom Controller I've got the code for those executions:
public void executeBapi_Salesorder_Createfromdat2( )
//@@begin executeBapi_Salesorder_Createfromdat2()
try {
wdContext.currentBapi_Salesorder_Createfromdat2Element().modelObject().execute();
catch (Exception ex) {
wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
wdContext.nodeOutput().invalidate();
//@@end
public void executeBapi_Transaction_Commit( )
try {
wdContext.currentBapi_Transaction_CommitElement().modelObject().execute();
catch (Exception ex) {
wdComponentAPI.getMessageManager().reportException(ex.getMessage(), false);
wdContext.nodeOutput().invalidate();
//@@end
¿Is something wrong? ¿Is something missing? -
Problem while creating xml with cdata section
Hi,
I am facing problem while creating xml with cdata section in it. I am using Oracle 10.1.0.4.0 I am writing a stored procedure which accepts a set of input parameters and creates a xml document from them. The code snippet is as follows:
select xmlelement("DOCUMENTS",
xmlagg
(xmlelement
("DOCUMENT",
xmlforest
(m.document_name_txt as "DOCUMENT_NAME_TXT",
m.document_type_cd as "DOCUMENT_TYPE_CD",
'<![cdata[' || m.document_clob_data || ']]>' as "DOCUMENT_CLOB_DATA"
) from table(cast(msg_clob_data_arr as DOCUMENT_CLOB_TBL))m;
msg_clob_data_arr is an input parameter to procedure and DOCUMENT_CLOB_TBL is a pl/sql table of an object containing 3 attributes: first 2 being varchar2 and the 3rd one as CLOB. The xml document this query is generating is as follows:
<DOCUMENTS>
<DOCUMENT>
<DOCUMENT_NAME_TXT>TestName</DOCUMENT_NAME_TXT>
<DOCUMENT_TYPE_CD>BLOB</DOCUMENT_TYPE_CD>
<DOCUMENT_CLOB_DATA>
<![cdata[123456789012345678901234567890123456789012]]>
</DOCUMENT_CLOB_DATA>
</DOCUMENT>
</DOCUMENTS>
The problem is instead of <![cdata[....]]> xmlforest query is encoding everything to give < for cdata tag. How can I overcome this? Please help.SQL> create or replace function XMLCDATA_10103 (elementName varchar2,
2 cdataValue varchar2)
3 return xmltype deterministic
4 as
5 begin
6 return xmltype('<' || elementName || '><![CDATA[' || cdataValue || ']]>
7 end;
8 /
Function created.
SQL> select xmlelement
2 (
3 "Row",
4 xmlcdata_10103('Junk','&<>!%$#&%*&$'),
5 xmlcdata_10103('Name',ENAME),
6 xmlelement("EMPID", EMPNO)
7 ).extract('/*')
8* from emp
SQL> /
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SMITH]]></Name>
<EMPID>7369</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ALLEN]]></Name>
<EMPID>7499</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[WARD]]></Name>
<EMPID>7521</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JONES]]></Name>
<EMPID>7566</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MARTIN]]></Name>
<EMPID>7654</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[BLAKE]]></Name>
<EMPID>7698</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[CLARK]]></Name>
<EMPID>7782</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[SCOTT]]></Name>
<EMPID>7788</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[KING]]></Name>
<EMPID>7839</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[TURNER]]></Name>
<EMPID>7844</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[ADAMS]]></Name>
<EMPID>7876</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[JAMES]]></Name>
<EMPID>7900</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[FORD]]></Name>
<EMPID>7902</EMPID>
</Row>
<Row>
<Junk><![CDATA[&<>!%$#&%*&$]]></Junk>
<Name><![CDATA[MILLER]]></Name>
<EMPID>7934</EMPID>
</Row>
14 rows selected.
SQL> -
Problem while creating the Partner Address in CRM
Hi,
We are facing one problem while creating the new address for the Business Partner.
When ever customer wants to change the address : we are following one process : where we are
using 'BAPI_BUPA_ADDRESS_ADD' functin module. Becuse of this , new addrss number will be generated for the
corresponding account in BUT021_FS table.But this table contains old address number as a first record, so that when ever
we display the partner address in UI, it is displaying the old address only because first entry of the the table 'BUT021_FS'
contains the old address number.
Because of this , we are getting lots of complaints regarding this.
Can you please help on this ASAP.
Thanks & Regards
Pradeep.Try BAPI_BUPA_ADDRESS_CHANGE for address change followed by BAPI_TRANSACTION_COMMIT . It works.
-
No popup to select active implementation cycle, while creating change Request
Hi,
I have two active Implementation projects.
While creating change requests, it is not giving any popup to select the specific cycle.
It automatically assigns to newly activated Cycle.
Please advise.
Thanks & Best Regards,
Kiran SathyanHi,
if you would mention about sap solution manager version, this critical landscape transport and design before you state the problem, this would saved much time.
Now I dont think so Popup functions applicable for implentation cycles.
check out http://help.sap.com/saphelp_sm40/helpdata/en/1a/c39742042fc86ae10000000a155106/frameset.htm
and regarding closing the project cycle check this out below informations,
933705 - Closing inconsistent project cycles
Change Request Management scenario: Usual questions and known errors
question 10.
Make sure you closed open tasks, chk in tcode scma
Thanks
Jansi -
Problem while creating WBS elements using LSMW
Hello experts,
I am able to create Project Definitions using LSMW. (using recording)
But there is a problem while creating WBS elements.
Tcode CJ20 has table control and that will become problem for multiple rows (levels).
Can anyone suggest a solution to mass upload WBS elements?
Thanks for your valuable advice.Hi,
Instead of using "BAPI_PROJECT_MAINTAIN", use following solution. We are using this solution and it is working pretty good.
If the WBS element is already created and you want to create one more with same data, first get the WBS related information using BAPI_PROJECT_GETINFO as you are doing currently.
I am using different sets of BAPIs to create project, create / change WBS element.
I use function module from Function group CJ2001 ( Project related BAPIs ), CJ2054 ( WBS related BAPIs ) and PS_BAPI ( pre/post processing BAPIs ). There are specific order in which you need to execute these BAPIs.
For example if you want to create / change the WBS element, the BAPIs sequence is:
<b>1. BAPI_PS_INITIALIZATION
2. BAPI_BUS2054_CREATE_MULTI ( to create WBS )
or
2. BAPI_BUS2054_CHANGE_MULTI ( to change WBS )
3. BAPI_PS_PRECOMMIT
4. BAPI_TRANSACTION_COMMIT</b>
Check the documentation of BAPI "BAPI_BUS2054_CREATE_MULTI " to see how these function modules work.
Let me know if you need further information.
Regards,
RS -
Error while creating delivary document
Hi
i got error while creating delivary document
"Delevivary documents could not be created"
Thanks®ards
kishore kumarHi Kishore,
Please check the sales order is this relevent for the delivery or not.
Check the copy control settings between your sales document type and delivery document type in VTLA transaction.
Check the incompletion log for the sales order.
I hope it will help you,
Regards,
Murali. -
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 -
Error while creating/changing/desplay cost element
Gents
Need urgent help. I am getting a below error while creating/changing/Displaying the cost element.
Table CI_CSKB is not an active table
Message no. AD 228
Kindly help me to get the resolve this issue.
Thanks and Regards
Vinay Thakrehi
In Cost Elements (Data is Dependent on Controlling Area), please go to extras and check your controlling area while creating the cost element, and make sure if u r creating Primary CE, it has been created as a G/L account and also make sure you use correct CE Category.
Thanks
plz award points if helpful. -
Problem: While creating a project in iDVD, it plays perfectly on the computer, but after burning the sound is off. Video soundtrack is not in the right place. HELP!
Have you checked out the topics at the right in the More Like This section?
OT
Maybe you are looking for
-
Xml Validation & XQuery Update
Hello, I have a question on xml validation in Berkeley DB XML (2.5.16). I read in documentation that an xml can be validated against an xml DTD or Schema when is loaded into a container. However, when an XQuery Update is to be executed is there any c
-
How do I get comments to appear in margins?
I have a word doc with comments that I've opened in Pages. The comments are superimposed on the text, absurdly obscuring the text they are supposed to help edit! How do I get the comments to appear in the margins instead?
-
Booting FCP Studio in different computer from cloned drive
Search was not my friend. I have a cloned drive of my MBP. I booted it on a Macbook Air to see if, and how well, Motion would run on an Air. FCP and Motion asked for serial numbers. I input them correctly, but was alerted that it was an invalid licen
-
Brushes = Aperture crash
Hey all, I am currently running a trial version of A3 (updated to latest version) on an Imac 27" late 2010 edition (I5, 4GB). I really like the program and it's features, but the program seems very unstable to me. Using brushes will make A3 crash ver
-
Which BOM is used for PI module
Hi, All Which type of BOM is used for PI module?