Hi, We are on DS 4.0. We are migrating data to SAP CRM. We are using BPDM for this. We successfully tested and sent Prospect using IDOC type CRMXIF_PARTNER_SAVE_M02 with message type as CRMXIF_PARTNER_SAVE_M. Now we need to send some custom fields. Custom fields are added using AET in SAP CRM. So we extended the existing IDOC Message type and created a new Message type. We used BDFG to do that.
When we user WE19 to test this new iDOC then it updated all fields fine. Now I imported this iDOC in Data Services. I used the existing Qry-Nest transform ( which was successful with old IDOC) and mapped the new custom fields.
I did made update in global variable to include this new IDOC Type and Message Type. When I send iDOC then it fails in DS with error message
Can you search this forum for the term IDOC, please? I remember I have posted a response from my developer and he was saying something like “run this function module manually to figure out the root cause”. Was it the function IDOCTYPE_READ_COMPLETE maybe? Probably.
I am trying to load data into SAP for Functional Locations Domain using the ‘FUNC_LOC_CHANGE’ IDOC in Data Services and I am getting the following error.
8236 7776 R3C-244005 2013/02/27 4:52:36 PM |Data flow DF_ChangeIDOC|Loader FUNC_LOC_CHANGE01
8236 7776 R3C-244005 2013/02/27 4:52:36 PM IDoc target tried to generate IDoc <FUNC_LOC_CHANGE01> from NRDM data: <
8236 7776 R3C-244005 2013/02/27 4:52:36 PM IDoc Error: Message: CIDocIterator::Field: No datarecord available for this segment type
8236 7776 R3C-244005 2013/02/27 4:52:36 PM IDoc Type: FUNC_LOC_CHANGE01
8236 7776 R3C-244005 2013/02/27 4:52:36 PM Release: 731
8236 7776 R3C-244005 2013/02/27 4:52:36 PM IDoc Number: Not Applicable
8236 7776 R3C-244005 2013/02/27 4:52:36 PM Segment Name:
8236 7776 R3C-244005 2013/02/27 4:52:36 PM Segment Type:
8236 7776 R3C-244005 2013/02/27 4:52:36 PM Field Name: FUNCTLOCATION
8236 7776 R3C-244005 2013/02/27 4:52:36 PM >. Check your input data.
6992 8284 R3C-244005 2013/02/27 4:52:46 PM |Data flow DF_ChangeIDOC|Loader FUNC_LOC_CHANGE01
6992 8284 R3C-244005 2013/02/27 4:52:46 PM IDoc target tried to generate IDoc <FUNC_LOC_CHANGE01> from NRDM data: <
6992 8284 R3C-244005 2013/02/27 4:52:46 PM IDoc Error: Message: CIDocIterator::Field: No datarecord available for this segment type
6992 8284 R3C-244005 2013/02/27 4:52:46 PM IDoc Type: FUNC_LOC_CHANGE01
6992 8284 R3C-244005 2013/02/27 4:52:46 PM Release: 731
6992 8284 R3C-244005 2013/02/27 4:52:46 PM IDoc Number: Not Applicable
6992 8284 R3C-244005 2013/02/27 4:52:46 PM Segment Name:
6992 8284 R3C-244005 2013/02/27 4:52:46 PM Segment Type:
6992 8284 R3C-244005 2013/02/27 4:52:46 PM Field Name: FUNCTLOCATION
6992 8284 R3C-244005 2013/02/27 4:52:46 PM >. Check your input data.
I am trying to update the ABCIndicator from 2 to 3 and hence have set the Flag to X in the source table as well. I have updated the EDI_DC40 mandatory schema with the necessary values and mapped the values to the schemas in the IDOC
E1FUNC_LOC_CHANGE - from the source table
and sub schemas
E1BP_ITOB - some from the source table and other values to NULL
E1BP_ITOBX - FLAG X to the ABC Indicator from Source table and all others to NULL
E1BP_ITOB_FL_ONLY - NULL for Everything
E1BP_ITOB_FL_ONLYX - NUll for everything
I have tried to play around the FROM cluase in the query as well as UNnesting…all of them failed to resolve the issue…Can you please suggest me where I am going Wrong…
Yes, very likely the From clause. Why don’t you write the data into an XML template object or an IDOC file for a test, this will show you that the CHANGE01 structure has zero rows because of From/Where clause for this schema in the query.
Thanks for your reply…>can you let me know how i can write it to an IDOC file…
also a quick question, Do I need to have a seperate query for each segment or can it come from a single source.