Issue in Creating Vendor using the IDOC
Hi Gurus,
I have an IDOC coming from PI interface from which a vendor is to be created in ECC.
I am using the basic IDOC type CREMAS01, the message type CREMAS and inbound function module as IDOC_INPUT_CREDIATOR.I am concern only about the Inbound function module.
Now I have some extra fields that are not found in CREMAS01. These fields are standard fields ( Not The 'Z' Fields like J_1IPANNO,J_1ICSTNO,J_1ILSTNO from table J_1IMOVEND). So I have extended the same idoc by adding a 'Z' segment to this idoc. now i need to populate these extra fields for the creation of vendor(XK01). Please guide me how to Populate these extra fields ? I have got one enhancement VSV00001 which is getting triggered while executing the inbound function module. Now using this exit i have the data from the 'Z' segment into my work area. now what will be the next procedure? please help me out.
Hi Mamta,
I do not think we have any option of creating RKF based on Display attribute. Rather you create RKF based on Navigation attribute.
Regards,
Kams
Similar Messages
-
Searching Message ID in XI using the IDOC number produced in S1P
Hi Everyone,
I'm a sap XI newbee and i have a question.
The scenario is like this, We have a message ID (PO) that passes thru XI from a 3PLP(3rd party system) which eventually produces an IDOC when it reaches S1P(R/3).
Message flow: 3PLP - XI - S1P.
So in S1P(R/3)'s perspective, the IDOC is INBOUND and its supposed to display the message ID from XI in the DETAILS TAB (tCode:WE02) unfortunately it did not.
So how would I be able to find the message ID in XI using the IDOC produced in S1P.
I hope you get my point.
PS: tcode IDX5 wont work since the IDOC was only produced as soon as it reaches S1P(R/3).
Thank you so much,
XI MonitorYou have to search for the IDOC from IDX5 in your XI system...
Also please check the following OSS note : Note 1083694 - IDoc adapter: IDX5 and IDoc tracking
No object relationship is written in step 2.
No object relationship is displayed in the IDoc monitor (transaction WE02) in the receiver system.
Note that object relationships are written for logical systems only (partner type = "LS").
For more information, see Note 428344.
In transaction WENOLINKS, check whether the administrator has deactivated the object relationships.
If everything is maintained, you should see the Sender idoc number(PI) in BD87...
One of the roundabout ways till you fix the issues is to get the timestamp when IDOC was created and go to SXMB_MONI or IDX5 in PI for that timestamp to get the message id -
Problems migrating data via LSMW using the IDoc method
Hello everybody,
I got a very strange problem migrating data via the LSMW. I tried to map legacy data using the IDoc mapping method. I'm using the message type 'CRMXIF_PARTNER_SAVE_M ' and the basic IDoc type 'CRMXIF_PARTNER_SAVE_M01'.
I can read the import data and convert it to IDoc structure as well as generate the IDoc. When I start processing the IDoc afterwards I get always the same error messages which I don't understand...
The errors are:
1) Error status 'A ' calling validation service (Status 51)
2) Validation error occurred: Module CRM_BUPA_MAIN_VAL , BDoc type BUPA_MAIN (Status 51)
3) Error_Time Dependency_Addresses CHECK_TABLE_MISSING (Status 51)
4) Internal error when calling operation module BUA_CHECK_ADDRESS_VALIDITY_ALL : Check table missing (Status 51)
5) Address moves ignored in the case of time-independent systems (Status 51)
6) Partner data processed with key PartnerGUID 4BF67ADE9B9923BEE10000000A3500DB (Status 51)
7) Partner (4BF67ADE9B9923BEE10000000A3500DB ): the following errors occurred (Status 51)
I tried to import the following data:
external ID
Name1
Name2
Address data
Telephone data
Fax data
Website data
Can anybody tell me where those errors come from and how I can fix them. Would be great if somebody could help me!
Thank you and best regards,
Markusso apparently my issue with this was setting the time zone in the Address to the time zone of the user doing the conversion. You can find the time zone in SU01.
Also you can create a BP in the WebUI then check t-code SMW01 and it will help you on passing the values to CRMXIF_PARTNER_SAVE
Edited by: Akeem Lockett on Jul 8, 2010 7:44 AM -
Issues during Contract creation using Inbound IDOC BLAORD03
Dear Experts,
We need to create Contract using Inbound IDOC BLAORD03.
I am facing following issues and need some one's help ASAP.
(1) Contract is generated without Header Texts and Item Texts through IDOC BLAORD03 .
(2) Not able to create CONTRACT for service masters using Inbound IDOC BLAORD03.
Is there any body who has implemented this scenario and able to guide ?
Looking forward to help ASAP.
Thanks in Advance,
Best Regards,
Mitesh Desai
[email protected]Hi All,
I am also facing the same issue. I am trying to upload service outline agreements thru LSMW using idoc basiv type BLAORD03 ( FM->IDOC_INPUT_BLAORD).
Immediate help highly appreciated.
Thanks & Regards,
Vijender -
Hi
While trying to Create Projects using the API, I'm getting two types of errors -
The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
The second is : '
'API failed in one stage 1 Project: '<Project_Number>'
The class category is invalid.'
Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
Regards
VivekHI All
I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
Resolution:
Corrected the data file to be in Sync with the structure defined in the CTL and this loaded it successfully
2. Error 2: The class category is invalid.
The cause of this error was that in the Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
Hope this helps somebody else
Cheers
Turnbill -
How to use LSMW using the IDOC to upload and maintain cost center group
Hi Everyone,
Is there anyone who knows how to use LSMW using the IDOC functions instead of the recording. I wanted to upload the alternative cost center group I created in the system.
reply would be greatly appreciated
Warm RegardsHi Praveen,
There is a risk trying to migrate data directly into standard tables because this can generate database inconsistences or wrong inserted data according to what is customized in the target system. I do not recommend migrate like this.
With LSMW you use objects like direct input programs, idocs, bapis and recorded batch input. Try to create a project and use an standard object for your data. Also, check in SXDA transaction (Goto-->DX programs) if there is a standard program for your data.
Anyway, if you want to upload data directly to tables, read below thread:
["UPLOAD CSV FILE";
[how to upload .csv file into a custom table;
Regards,
Roger -
when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
Transaction type is invalid with current transaction date
invalid transaction type
either an inventory item description must be provided
Kindly help me hereHi Team,
I tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
Either an inventory item or description must be provided.
Please help me on this. -
How to import a doc file which is a file created by using the codings?
Hai to all....
i'm now trying to import a word doc file which is created by using the
CreateFile() method in Win32 Programming....
When i manually created a doc file and import that file using the
PlaceFileInFrame method.... the contents of the doc file is placing in
the document perfectly...
But when i'm trying to create a doc file using CreateFile() method and importing it... and use the PlaceFileInFrame method... its not placing the
contents of the file...
i will show u the codings what i had done...
HANDLE hFile;
DWORD wmWritten;
//FOR CREATING A DOC FILE....
hFile = CreateFile(L"C:\\tab.doc",GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
//FOR WRITIND DATA INTO THAT FILE FROM row[2] IN A MYSQL DATABASE
WriteFile(hFile,row[2],(DWORD)(strlen(row[2])),&wmWritten,NULL);
CloseHandle(hFile);
//USED PLACEFILEINFRAME METHOD FOR PLACING THE CONTENTS OF THE DOC FILE
tempfilename="C:/tab.doc";
target = "/" ;
replace = "\\" ;
s.Replace(tempfilename,target,replace);
IDFile idFile;
idFile.SetFileName(tempfilename);
UIFlags uiFlags = K2::kMinimalUI;
UIDRef ref = layoutHelper.PlaceFileInFrame (idFile,placeUIDRef,boundsInParentCoords,
uiFlags,
kTrue, //retainFormat
kTrue, //convertQuotes
kFalse, //applyCJKGrid
NULL);
But the import is failed...
When i manually created a doc file and import that file using the
PlaceFileInFrame method.... the contents of the doc file is placing in
the document perfectly...
Is there any ImportProvider or ImportFilter available for
importing this type of written files?
Can any one plzz explain me?
thanks in advance..
senthilHai Oscar,<br /><br />Now i'm trying like this for importing XML files...<br />----------------------------------------------------------------------<br />IActiveContext* activeContext = snpRunContext->GetActiveContext();<br />UIDRef documentUIDRef = ::GetUIDRef(myContext->GetContextDocument());<br />tempfilename="C:/1.xml";<br />target = "/" ;<br />replace = "\\" ;<br />IDFile idFile;<br />idFile.SetFileName(tempfilename);<br />IDataBase* db = documentUIDRef.GetDataBase();<br />InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());<br /> ASSERT(document);<br /> if(!document) {<br /> break;<br /> }<br /> InterfacePtr<IXMLReferenceData> xmlReferenceData(document, UseDefaultIID());<br /> ASSERT(xmlReferenceData);<br /> if(!xmlReferenceData) {<br /> break;<br /> }<br /> XMLReference xmlRef = xmlReferenceData->GetReference();<br /><br /> <br /> InterfacePtr<IIDXMLElement> element(xmlRef.Instantiate());<br /> ASSERT(element);<br /> if(!element) {<br /> break;<br /> }<br /><br /> <br /> InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br /> ASSERT(serviceRegistry);<br /> InterfacePtr<IK2ServiceProvider> xmlParserServiceProvider<br /> (serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, <br /> kXMLParserServiceBoss));<br /> ASSERT(xmlParserServiceProvider);<br /> if(!xmlParserServiceProvider) {<br /> break;<br /> }<br /> InterfacePtr<IXMLAccess> access(xmlParserServiceProvider, UseDefaultIID());<br /> ASSERT(access);<br /> if(!access) {<br /> break;<br /> }<br /> // -precondition<br /> <br /> InterfacePtr<ICommand> importCmd(CmdUtils::CreateCommand(kImportXMLFileCmdBoss));<br /> ASSERT(importCmd);<br /> InterfacePtr<IImportXMLData> importXMLData(CreateObject2<IImportXMLData>(kImportXMLDataBoss));<br /> ASSERT(importXMLData);<br /> if(!importXMLData) {<br /> break;<br /> }<br /> importXMLData->Set(db, idFile,kInvalidXMLReference, kSuppressUI);<br /> InterfacePtr<IXMLImportOptions> docXMLOptions( document->GetDocWorkSpace(), UseDefaultIID() );<br /> ASSERT(docXMLOptions);<br /> if(!docXMLOptions) {<br /> break;<br /> }<br /> InterfacePtr<IXMLImportOptions> importXMLOptions(importXMLData, UseDefaultIID());<br /> ASSERT(importXMLOptions);<br /> if(!importXMLOptions) {<br /> break;<br /> }<br /> importXMLOptions->Copy(docXMLOptions);<br /> <br /> InterfacePtr<IPMUnknownData> pmUnknownData(importCmd, UseDefaultIID());<br /> ASSERT(pmUnknownData);<br /> if(!pmUnknownData) {<br /> break;<br /> }<br /> pmUnknownData->SetPMUnknown(importXMLData);<br /> <br /> CmdUtils::ProcessCommand(importCmd);<br />--------------------------------------------------------------------- <br />But it showing the following 2 errors...<br /><br />error C2065: 'snpRunContext' : undeclared identifier<br />error C2227: left of '->GetActiveContext' must point to class/struct/union type is ''unknown-type''<br /><br />Then i tried to declare snpRunContext like this...<br />InterfacePtr<ISnpRunnableContext>snpRunContext(parentUIDRef,UseDefaultIID());<br /><br />its sucessfully compiled... But the output is not coming...<br />Its showing unhandled exception in the line<br />IActiveContext* activeContext = snpRunContext->GetActiveContext();<br /><br />So, what shal i do for declaring snpRunContext... <br /><br />plz give me an idea...<br /><br />thanks.<br />senthil.
-
I can create material using inbound Idoc of type MATMAS01, but not MATMAS05
I can create material using inbound Idoc of type MATMAS01 in WE19, but MATMAS05 failed. In fact I used same data ( different material number), and same inbound function, but got different result.
What is different between MATMAS01 and MATMAS05? Is there some configuation need for MATMAS05?
My system is ECC5.0. Thanks.Hi, nagaraj
this is inbound IDoc, not outbound IDoc, so we can't assign Basic type in WE20, only can assign Message type.
In WE82, there are 5 records about Messagetype MATMAS:
Message type Basic type Release
MATMAS MATMAS01 30A
MATMAS MATMAS02 30D
MATMAS MATMAS03 40A
MATMAS MATMAS04 46C
MATMAS MATMAS05 470
I think it should be ok.
In WE57, there 2 records are exist:
FM_name BasicType MessageType
IDOC_INPUT_MATMAS01 MATMAS01 MATMAS
IDOC_INPUT_MATMAS01 MATMAS05 MATMAS
so I think all configurations should be ok.
Message was edited by:
liu bin -
Issue in creating formula using atributes
Hi All,
I have issues in creating formula using attributes of characteristic. I need to create a formula using attributes of charactertic customer & key figure.
Ex. Formula
Key figure / attribute of char customer
Please suggest.
Thanks,
MamataHi Mamta,
I do not think we have any option of creating RKF based on Display attribute. Rather you create RKF based on Navigation attribute.
Regards,
Kams -
Creating Sales order using the IDocs.
Hi All,
I am looking to create a Sales Oredr from outside SAP syatem making use of the ALE-IDocs.
What should be the structure of the data to be recived from legacy system and what should be the settings (ALE).
Thanks In Advance....
Abhi.....How to input the data file from non-SAP into SAP, from which the Idocs will be generated...... there is a FM for this purpose.
-
Partner function issues while creating SA using LSMW
Hi,
I am opening a new thread (though similar question has been put by Vihaan in below thread)
Tax code in SA - LSMW
We are creating SAs via LSMW IDOC method (Message Type - PURSAG_CREATE and Basic Type - PURSAG_CREATE01), all our SAs being created w r to Contract and Contract has multiple OA and PI partner functions. So while creating SA we are passing unique OA and PI value (from list of valid OA/PI avaialble in contract) in LSMW structures - E1BPMEOUTPARTNER and E1BPMEOUTPARTNERX.
Values passed are mentioned below:
E1BPMEOUTPARTNER Partner Information for Outline Agreement
Fields
PARTN_ROLE Partner Function
Rule : Constant
Code: E1BPMEOUTPARTNER-PARTN_ROLE = 'BA'.
PLANT Plant
SUBRANGE_TX Description of Vendor Subrange
LANGU Language Key
LANGU_ISO Language according to ISO 639
PARTNR Reference to other vendor
Rule : Constant
Code: E1BPMEOUTPARTNER-PARTNR = '1XXXXXXXX9'.
DEF_PARTNR Default Partner
Rule : Constant
Code: E1BPMEOUTPARTNER-DEF_PARTNR = 'X'.
DELETE_IND Deletion Indicator in Purchasing Document
E1BPMEOUTPARTNERX Change Parameter Partner Data (Outline Agreement)
Fields
PARTN_ROLE Partner Function
Rule : Constant
Code: E1BPMEOUTPARTNERX-PARTN_ROLE = 'BA'.
PLANT Plant
SUBRANGE_TX Description of Vendor Subrange
LANGU Updated information in related user data field
LANGU_ISO Updated information in related user data field
PARTNR Updated information in related user data field
Rule : Constant
Code: E1BPMEOUTPARTNERX-PARTNR = 'X'.
DEF_PARTNR Updated information in related user data field
Rule : Constant
Code: E1BPMEOUTPARTNERX-DEF_PARTNR = 'X'.
DELETE_IND Updated information in related user data field
Now issue is SAP is not recognizing above mentioned partner value and throwing error as Following mandatory roles missing in partner maintenance: OA
If the reffered contract has single OA and PI LSMW is running fine and creating SA successfully but issue is coming only when we have multiple OA/PI.
Has anybody faced similar issue or aware if any OSS note which resolves this issue, please advise.
Thanks,
YogeshHi Jurgen,
I have created a separate source structure for passing partner function and now have below source structure:
Source Structures
HEADER_SA Header Structure
PARTNER_SA PARTNER STRUCTURE (Lower level to Header)
ITEM_SA Item Structure (Lower level to Header but at the same level as Partner)
Then created a separate file for partner having both OA and PI value as shown below (ID is common field between all three structures Header, item and Partner):
ID PARVW LIFN2 DEFPA
1 BA 1XXXXXXX9 X
1 RS 1XXXXXXX7 X
Now after convert data step it considers above values for partner role but still LSMW fails with same error "Mandatory PF missing, OA, PI"
Also, one more info wanted to share- if in my contract I put a tick mark against one of the partner OA/PI in DEFAULT BOX, it works fine but that does not make any sense as the whole pupose of having multiple OA/PI is to give option to business of selecting one of the avaialble OA/PI.
FYI - I have opened a customer message to SAP, let see what they suggest.
Thanks,
Yogesh -
Create Material using MATMAS05 IDOC
Hi Gurus,
Please tell me what are the mandatory fields and tables for those fields to create a Material using MATMAS05 standard IDOC.Hi,
Fields are never mandatory while sending the idocs. Its the segment which is mandatory.
If you see the definition of MATMAS05 idoc in transaction WE30 you will find E1MARAM and E1MAKTM, as a mandatory segment. It means that you can't send an Idoc without this segment. If you go in segment details than even if you populate a single field in the segment E1MARAM and E1MAKTM then you can send the idocs.
KR Jaideep, -
Issue with creating receipts(using interface) for a PO with multiple lines
Hi,
We have a receipts creation program which creates creates receipts.
The issue is, if the PO contains 2 lines then the program creates receipts for only 1 line.Can someone suggest a solution for the same.
Issue in Detail:
The program works as follows
- Populate rcv_header_interface table for Po Line#1 and Line#2
- Populate rcv_transactions_interface table for Po Line#1 and Line#2
- Invoke oracle std 'Receivogn Transaction Processor' program
-Check for Receipt Number generated in the base table rcv_shipment_headers
When we query the rcv_shipment_headers table, we found receipt_number is created for only Line#1.
The data written to interaface table are as follows
rcv_header_interface
header_interface_id - sequence value
GROUP_ID - sequence value
Processing_status_code - 'PENDING'
Receipt_source_code - 'VENDOR'
transaction_type - 'NEW'
vendor_name - <<derived from Po>>
validation_flag -'Y'
expected_receipt_date - current date
WHO clolumns
rcv_transactions_interface
interface_transaction_id - seq value
GROUP_ID - <<as header one>>
header_interface_id - <<header data>>
transaction_type - 'RECEIVE'
transaction_date - current date
processing_status_code - 'PENDING'
processing_mode_code - 'BATCH'
transaction_status_code - 'PENDING'
employee_id - agent Id of PO,
po_header_id - <<derived from Po>>
po_line_id - <<derived from Po>>
po_line_location_id - <<derived from Po>>
validation_flag - 'Y'
source_document_code 'PO',
to_organization_code - NULL,
expected_receipt_date - sysdate + 3
Document_line_num - 1
auto_transact_code - 'DELIVER'
receipt_source_code - 'VENDOR'
vendor_name - <<derived from Po>>
destination_type_code - 'EXPENSE'
document_shipment_line_num - 1
amount - <<derived from Po>>
po_distribution_id - <<derived from Po>>
Have we missed any data tobe inserted into transactrin interface table because of which the transaction processor is geenrating receipt for Line#1 only?
Thanks,
Kamath.Hi,
I have the same problem just now.
Have you found some solutions about it ?
thx
Luigi -
Issue w/ Case Differences Using the IBM Directory Server MA
We have the following issue using the IBM Directory Server MA using FIM 2010 R2 (Version 4.1.3479.0).
We provision a new object, e.g., uid=jdoe,ou=users,o=contoso, into an instance of IBM Directory Server
The object is created in IBM Directory Server as uid=jdoe,ou=users,o=contoso
A Full Import on the IBM Directory Server MA runs and confirms the export
Subsequent imports, sync, and exports run successfully
<Time passes>
A Full Import on the IBM Directory Server MA runs, and this object shows up as a staging-error (uid=jdoe,ou=Users,o=contoso)
Subsequent imports and syncs report errors on this object (staging-error)
Note that we do not manipulate the anchor (DN) of this object once it is created in IBM Directory Server. Other attributes are synchronized, but the object is never renamed/moved. This case change does not happen with all of the objects brought
in during the Full Import, but the number of instances do increase periodically. At this point, it does look like the import is changing from a lowercase "u" to an uppercase "U" but not vice versa.
I found a related
TechNet article containing the following remark:
"IBM Directory Server does not guarantee that the case of a DN component will match in all instances. On a synchronization or import from IBM Directory Server, this can manifest itself as an unexpected update. For example, if you create
O=TEST, and then create the user cn=MikeDan,O=TEST, this might be imported from IBM Directory Server as
cn=MikeDan,O=test. Because of the case difference, FIM treats this as an update on subsequent full imports."
Unfortunately, the article does not propose a resolution.
Has anyone encountered this issue? More importantly has anyone resolved this or found an acceptable workaround?
Note that deleting the connector space is not an acceptable workaround. :)I remember experiencing this issue when we were on 5.0, and I believe it persists through 5.1 as well.
There is a comment in the 5.2 release notes that something similar was fixed:
Changing case sensitive attribute values failed in MMR. (4624693)
If I had to take a wild guess, I would say that the server does some internal checking to see if the value has changed, possibly based on the attribute syntax, to avoid replicating "changes" that really don't change anything except case. I doubt that all your custom attributes are case-sensitive, though. Enabling replication probably "turns on" this behavior, which doesn't go away even if replication is disabled.
In any case, you're probably out of luck unless/until you upgrade to 5.2.
Maybe you are looking for
-
Can no longer transfer audiobooks from overdrive to ipod nano 6
Can no longer transfer audiobooks from overdrive to ipod nano 6. Diagnostics: Connectivity test-ipod found. Sync test -ipod not found. This problem began about 2 weeks ago. I downloaded itunes update 12.1.0.71 about 1 week ago. I'm on Windows 7.
-
How to hide the grid lines between two rows in a ALv? Please help!
Hi Experts, I have a ABAP ALV(reuse alv grid FM) report. The last field in the ALV is "Description" which can contain data of size more than 130 chars. Since the max field length in ALV grid is 130 chars hence I am splitting this field value
-
When I first got my iPod classic, I was very annoyed by the fact that I couldn't play video on my old AV cradle (a Belkin TuneCommand AV). First I couldn't activate "TV Out" at all, then after an early software update I could, but I got a message say
-
Errors in Function Module.......
Hi All, In my Application i am getting the following errors: 1)com.abc.sap.myapp.allmodels.ZTask_Result cannot be resolved(or is not a valid type) for the argument o of the method addResult 2)The return type is incompatible with DynamicRFCModelClassE
-
Error when I try to run iTunes!
I've installed iTunes successfully, I think, and whenever I try to run it I get that error message that asks me if I want to send an error report or not, I've done both. I've installed, reinstalled, and tried repairing and nothing seems to work. Plea