NOD & LINA records - IDoc data
Hi Experts,
What is mean by NOD & LINA records?
One of my spec says "before sending the Idocs validation is done For NOD and LINA records and if any of the mandatory fields are missing then it is printed as an error report".
thanks
Dany
If you want to read the idoc records in your program:
use the folloing fms:
Sample code:
CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
EXPORTING
document_number = p_docnum
IMPORTING
idoc_control = f_idoc_control
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_opening_idoc.
ENDIF.
* Read IDOC data segments
CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
EXPORTING
document_number = p_docnum
TABLES
idoc_containers = t_idoc_data
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_reading_idoc.
ENDIF.
* Close IDOC
CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
EXPORTING
document_number = p_docnum
IMPORTING
idoc_control = f_idoc_control
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_closing_idoc.
ENDIF.
Similar Messages
-
SM58 - IDoc adapter inbound: IDoc data record table contains no entries
Trying to send Idocs from SAP ECC6.0 via PI 7.0 up until 2 days ago there was no problem.
Since yesterday, only one specific type of Idoc does not make it into XI (PI). In the Idoc monitor (WE02) the idocs that were created gives status 3 which is good. But all Idocs of that specific type (ZRESCR01) does not go to XI. I can only find them bakc in SM58 where it gives the following message:
IDoc adapter inbound: IDoc data record table contains no entries
I have checked SAP notes 1157385 and also 940313, none of them gives me any more insight into this error. I have also checked all the configuration in WE20, SM59, and in XI (repository and directory) and in XI IDX1, IDX2 but could not find anything that would cause this. I can also not think of anything that changed since 2 days ago.
Please point me in the right direction.hi,
i think in sm 58 u can find entries only when there is some failure in login credential .
if there is change in IDoc structure than you have to reimport the idoc metadata defination at IDX2.otherwise not requird.
please check the logical system name pointing to the your requird target system....
please also verify thet your port should not be blocked.
pls find the link it may help
Monitoring the IDOC Adapter in XI/PI using IDX5
regards,
navneet -
I have the IDOC Number with me. How to fetch the Data Records from that ?
If you want to read the idoc records in your program:
use the folloing fms:
Sample code:
CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ'
EXPORTING
document_number = p_docnum
IMPORTING
idoc_control = f_idoc_control
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_opening_idoc.
ENDIF.
* Read IDOC data segments
CALL FUNCTION 'EDI_SEGMENTS_GET_ALL'
EXPORTING
document_number = p_docnum
TABLES
idoc_containers = t_idoc_data
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_reading_idoc.
ENDIF.
* Close IDOC
CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ'
EXPORTING
document_number = p_docnum
IMPORTING
idoc_control = f_idoc_control
EXCEPTIONS
OTHERS = 01.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
RAISING error_closing_idoc.
ENDIF. -
Cannot display archived idoc data records in SARA
Hello,
In our ERP system, we regularly archive idocs older than 6 months. To view these archived idocs I use transaction SARA (with archive object IDOC and infostructure SAP_IDOC_001) to search for the relevant idoc that has been archived. Once the idoc is displayed, I drill down further by clicking the magnify glass button which then displays the idoc levels:
EDIDC Control record (IDoc)
EDIDD Data record (IDoc)
EDIDS Status Record (IDoc)
SRL_ARLNK SREL: Archive Structure for Links
When I try to view the Data Records, I get a message saying "You are not authorized to display table EDIDD". According to our Authorizations department, this is not an Auth issue but rather config setup or program issue.
Why can't I view the archived idoc data records? Is there another way to view archived idoc data?
Regards,
FawaazHi Jurgen,
Thanks for moving my post to the correct space.
Our Auth team is very confident that this is not a user auth issue. This could possibly be true because the idoc data resides on the following tables when in the database (before archive) - EDIDC, EDID4 & EDIDS. The idoc could then be viewed via transaction WE02 or the Data Browser (SE16). There is no EDIDD table in our ERP system so obviously no authorization object to assign to.
Once the idoc is archived, the data is removed from the ERP tables and moved to our archive database/server for storage. So when trying to view the archived record, the system does not access the ERP tables but rather the archive directory (that it's mapped to in settings). I assume the SARA transaction merely displays the data in the same segments/grouping with these table names (mentioned above in my first post) but instead of EDID4 it displays EDIDD.
According to the error longtext, "The check performed when data is read from the archive is the same as that of the Data Browser (transaction SE16)". So I was not involved with setting up our archiving procedure but could it be that table EDID4 was incorrectly mapped to table EDIDD in archives?
Regards,
Fawaaz -
Which all tables suffice all line item GL data requirements
Please clarify this requirement for Line Item Data from New GL. my client BMW Inc have configured New GL in ECC 6.0 if i pull all the records to BW from FAGLFLEXA (Line Item Table) is that sufficient to meet the <b>all line item GL data</b> or is there any other tables missing that also shall be combined to bring the Line item GL data. Please help me for this if u can check with any of your friends in FICO.
2. I have seen that BSEG AND BKPF are used earlier in old FI versions so what is there now in New GL ECC 6.0 that will suffice for these BSEG AND BKPF or still i have to pull records by using these tables. for GL Line Item Data.
If you can help me to give the short overview of New GL posting process it would be great.
Thanks
Regards
Soniya KapoorHi Soniya,
FAGLFLEXA & FAGLFLEXT would contain all FI line item
http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/e26840b151181ce10000000a1550b0/content.htm
Pls assign points as way to say thanks -
Function to return a value of a object based on last record by date
Post Author: Tned
CA Forum: Desktop Intelligence Reporting
Can anyone assit with a method/formula to return the a value of an object based on the last record by date. BO 5 or XI. See example below. Query structure is not an issue. Only need help with the last record function or aggregate.
Data Table
ID / Serial #
Date
Status
Condition
Abc1
01/01/08
1
A
Abc1
01/02/08
1
Z
Abc1
01/02/08
3
Z
Abc1
01/04/08
2
D
Abc1
01/05/08
5
E
Abc2
01/01/08
1
F
Abc2
01/02/08
2
Z
Desired query results. Only the values of the latest records returned.
ID / Serial #
Status
Condition
Abc1
5
E
Abc2
2
ZPost Author: Tned
CA Forum: Desktop Intelligence Reporting
Thanks Prashant
However, when i add either the status or condition variables to the report all lines related to the ID are returned not just the last entery by date.
Thanks again.Terry -
Hi
I have downloaded the IDOC Data in my Excel file.
But the problem is that I am getting all the details in a single column.
I want the systematic data should appear on my Excel.
Thankshi,
Sorry for the delay, just now i have seen your issue, here just i am trying to help you in case till now you have not got it....
Thanks
Satyasuresh
Here the code....
*& Report YSAT_IDOC_TO_EXCEL *
REPORT YSAT_IDOC_TO_EXCEL line-size 275.
data: idoc_control like EDIDC,
NUMBER_OF_DATA_RECORDS like sy-dbcnt,
NUMBER_OF_STATUS_RECORDS like sy-dbcnt,
INT_EDIDS like edids occurs 0 with header line,
INT_EDIDD like edidd occurs 0 with header line.
data: begin of i_split1 occurs 0,
segment(20),
fieldname(20),
field1(20),
field2(20),
field3(20),
field4(20),
field5(60),
field6(20),
field7(20),
field8(20),
end of i_split1.
TYPE-POOLS : LEDID.
data: STRUCT_TYPE TYPE LEDID_STRUCT_TYPE ,
IDOC_STRUCT TYPE LEDID_T_IDOC_STRUCT,
SEGMENTS TYPE LEDID_T_SEGMENT,
SEGMENT_STRUCT TYPE LEDID_T_SEGMENT_STRUCT,
excel_tab(2000) occurs 0 with header line.
parameter: DOCNUM like edidc-docnum obligatory, "Idoc Number
sap_rel like SY-SAPRL default SY-SAPRL no-display ,
pi_ver like EDI_VERREC-VERSION default '3' no-display,
d_excel as checkbox default 'X'. "Download ?
start-of-selection.
perform read_idoc.
perform process_idoc.
if d_excel = 'X'.
perform download_to_excel.
endif.
end-of-selection.
*& Form read_idoc
text
FORM read_idoc.
CALL FUNCTION 'IDOC_READ_COMPLETELY'
EXPORTING
DOCUMENT_NUMBER = docnum
IMPORTING
IDOC_CONTROL = idoc_control
NUMBER_OF_DATA_RECORDS = NUMBER_OF_DATA_RECORDS
NUMBER_OF_STATUS_RECORDS = NUMBER_OF_STATUS_RECORDS
TABLES
INT_EDIDS = INT_EDIDS
INT_EDIDD = INT_EDIDD
EXCEPTIONS
DOCUMENT_NOT_EXIST = 1
DOCUMENT_NUMBER_INVALID = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " read_idoc
*& Form process_idoc
text
FORM process_idoc.
perform read_idoc_structure.
perform display_data_records.
ENDFORM. " process_idoc
*& Form display_data_records
text
FORM display_data_records.
data: PE_seg_HEADER like EDI_SAPI01,
segname like EDI_IAPI12-SEGMENTTYP,
prev_segname like EDI_IAPI12-SEGMENTTYP value ' ',
pt_fields2 like EDI_IAPI12 occurs 0 with header line,
PT_FVALUES2 like EDI_IAPI14 occurs 0 with header line,
byte_first type i,
byte_last type i,
field_val(50),
tmp_str(15),
tmp_str3(15),
seg_repeats type i value 0,
tmp_str2(15),
tab_cr(2) type c value '@@',
tot_ctr type i value 0,
ctr type i value 0,
msg(40) type c.
data: IDOC_STRUCT_wa TYPE LEDID_IDOC_STRUCT.
sort int_edidd by segnum.
describe table int_edidd lines tot_ctr.
loop at int_edidd.
move int_edidd-segnam to segname.
clear msg.
concatenate 'Reading segment ' segname
into msg separated by space.
if tot_ctr <> 0.
ctr = ( 100 * sy-tabix ) / tot_ctr.
endif.
SAPGUI_PROGRESS_INDICATOR
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = ctr
TEXT = msg.
add 1 to seg_repeats.
clear tmp_str2.
if int_edidd-segnam <> prev_segname.
seg_repeats = 1.
clear: pe_seg_header, pt_fields2, pt_fvalues2.
refresh: pt_fields2, pt_fvalues2.
SEGMENT_READ_COMPLETE
CALL FUNCTION 'SEGMENT_READ_COMPLETE'
EXPORTING
PI_SEGTYP = segname
PI_RELEASE = sap_rel
PI_VERSION = pi_ver
IMPORTING
PE_HEADER = pe_seg_header
TABLES
PT_FIELDS = pt_fields2
PT_FVALUES = pt_fvalues2
EXCEPTIONS
SEGMENT_UNKNOWN = 1
SEGMENT_STRUCTURE_UNKNOWN = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
prev_segname = int_edidd-segnam.
endif.
read table idoc_struct into idoc_struct_wa with key
segment_type = int_edidd-segnam.
if sy-subrc = 0.
IF IDOC_STRUCT_WA-SYNTAX_ATTRIB-MUSTFL = 'X'.
TMP_STR = 'Mandatory'. "Mandatory
ELSE.
TMP_STR = 'Optional'. "Optional
ENDIF.
if IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-QUALIFIER = 'X'.
tmp_str3 = 'Qualified'.
else.
tmp_str3 = 'Non-Qualified'.
endif.
shift IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
left deleting leading '0'.
move seg_repeats to tmp_str2.
condense: IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX, tmp_str2.
concatenate tmp_str2 'of' IDOC_STRUCT_wa-SYNTAX_ATTRIB-OCCMAX
into tmp_str2 separated by space.
write :/ IDOC_STRUCT_wa-SEGMENT_TYPE,
tmp_str,
TMP_STR3,
tmp_str2,
IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL,
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast,
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP.
if d_excel = 'X'.
concatenate 'Segment Name' tab_cr
'Mand / Opt ' tab_cr
'Qual / non-Qual' tab_cr
'Seq of Max' tab_cr
'Level' tab_cr
'Owner' tab_cr
'Description'
into excel_tab.
append excel_tab.
concatenate IDOC_STRUCT_wa-SEGMENT_TYPE tab_cr
tmp_str tab_cr
TMP_STR3 tab_cr
tmp_str2 tab_cr
IDOC_STRUCT_wa-SYNTAX_ATTRIB-HLEVEL tab_cr
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-plast tab_cr
IDOC_STRUCT_wa-SEGMENT_TYPE_ATTRIB-DESCRP
into excel_tab.
append excel_tab.
concatenate tab_cr
'Field Nma' tab_cr
'Type' tab_cr
'Length' tab_cr
'Byte From' tab_cr
'Byte To' tab_cr
'Description' tab_cr
'Value' tab_cr
'Qualifier Meaning'
into excel_tab.
append excel_tab.
endif.
endif.
sort pt_fields2 by field_pos.
byte_first = 0.
loop at pt_fields2.
clear: field_val.
byte_last = pt_fields2-EXTLEN.
write int_edidd-sdata+byte_first(byte_last) to
field_val left-justified.
shift pt_fields2-EXTLEN left deleting leading '0'.
shift pt_fields2-byte_first left deleting leading '0'.
shift pt_fields2-byte_last left deleting leading '0'.
write:/ ' ', pt_fields2-fieldname,
pt_fields2-datatype,
pt_fields2-EXTLEN,
pt_fields2-byte_first ,
pt_fields2-byte_last,
pt_fields2-descrp,
field_val.
read table pt_fvalues2 with key fieldname = pt_fields2-fieldname
fldvalue_l = field_val.
add byte_last to byte_first.
if sy-subrc = 0.
write : pt_fvalues2-descrp.
else.
clear pt_fvalues2-descrp.
endif.
if d_excel = 'X'.
concatenate tab_cr pt_fields2-fieldname tab_cr
pt_fields2-datatype tab_cr
pt_fields2-EXTLEN tab_cr
pt_fields2-byte_first tab_cr
pt_fields2-byte_last tab_cr
pt_fields2-descrp tab_cr
field_val tab_cr
pt_fvalues2-descrp
into excel_tab.
append excel_tab.
endif.
endloop.
endloop.
ENDFORM. " display_data_records
*& Form read_idoc_structure
text
FORM read_idoc_structure.
data: idoctype type LEDID_IDOCTYPE.
if not idoc_control-cimtyp is initial.
STRUCT_TYPE = 'E'. "Extended
idoctype = idoc_control-cimtyp.
else.
STRUCT_TYPE = 'B'. "Basic
idoctype = idoc_control-idoctp.
endif.
CALL FUNCTION 'IDOC_TYPE_COMPLETE_READ'
EXPORTING
RELEASE = sap_rel
STRUCT_TYPE = STRUCT_TYPE
IDOCTYPE = idoctype
VERSION = pi_ver
TABLES
IDOC_STRUCT = idoc_struct
SEGMENTS = segments
SEGMENT_STRUCT = segment_struct
EXCEPTIONS
IDOCTYPE_UNKNOWN = 1
IDOCSTRUCT_UNKNOWN = 2
SEGMENT_DATA_MISSING = 3
ILLEGAL_STRUCT_TYPE = 4
OTHERS = 5.
IF SY-SUBRC <> 0 and sy-subrc <> 3.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " read_idoc_structure
*& Form download_to_excel
text
FORM download_to_excel.
data: name like RLGRAP-FILENAME.
data: name TYPE STRING.
shift docnum left deleting leading '0'.
concatenate docnum '-' idoc_control-idoctp '.xls'
into name.
perform to_split.
CALL FUNCTION 'RH_START_EXCEL_WITH_DATA'
EXPORTING
DATA_filename = name
WAIT = 'X'
DATA_TABLE = excel_tab[]
EXCEPTIONS
NO_BATCH = 1
EXCEL_NOT_INSTALLED = 2
WRONG_VERSION = 3
INTERNAL_ERROR = 4
INVALID_TYPE = 5
CANCELLED = 6
DOWNLOAD_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
break donepus.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = 'C:\Documents and Settings\donepus\Desktop\test2.xls'
FILETYPE = 'DAT'
TABLES
DATA_TAB = i_split1
EXCEPTIONS
CONVERSION_ERROR = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
GUI_REFUSE_FILETRANSFER = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " download_to_excel
*& Form to_split
text
--> p1 text
<-- p2 text
FORM to_split .
break donepus.
loop at excel_tab.
split excel_tab at '@@' into i_split1-segment
i_split1-fieldname
i_split1-field1
i_split1-field2
i_split1-field3
i_split1-field4
i_split1-field5
i_split1-field6
i_split1-field7
i_split1-field8.
append i_split1.
clear i_split1.
endloop.
ENDFORM. " to_split -
How to use header information in line records while inserting into table?
Hi,
Requirement: Data in flat file needs to be loaded into Oracle Tables.
File has header information (basically file information, some account info) and Line information ( Actual data need to be loaded to oracle tables).
File has position based data, first 2 char for Header is 00 and line is 50
Now, header has some extra info which needs to be loaded along with details lines ( This has to be done using sql loader control file).
What should be the control file logic to capture header information in details lines?
Please suggest.
I am calling this control file from Unix, so I can change the control file definition dynamically by retrieving the first line of the data file and modify the control file before executing the sql loader command. Is there any option to achieve this using SQL LOADER commands?
Thanks,
Venkat.Pl post details of OS and database versions.
Use the WHEN clause to load header and detail lines into separate tables, then write PL/SQL code to perform needed post-processing.
See the examples in section titled "Distinguishing Different Input Record Formats" here http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm
HTH
Srini -
Hi All,
My requirement :
I have to create a FBI OVP Application, Displaying Search UIBB in the first Section .(Fetches Data from Standard Table)
Below this search UIBB I have to create a List UIBB (Name it as LIST_1) in the Second Section to display Search Result.(This List UIBB has to Tool Bar Actions like 'Delete' & 'MOVE' . user select a record from the list and click on delete action, Delete action has to remove the Record from the list ).
Below this List UIBB we have another List UIBB (Name it as LIST_2) which Holds the Records Moved from the LIST_1.(User selects a record in LIST_1 and Clicks on action 'MOVE' the selected record in the LIST_1 has to be Removed and it should be place in the LIST_2 ).
My Development Plan :
Step 1 : Creating a BO of type Controller Object.
Step 2 : Make ROOT Node as Transient Node-->Propose Names for Data structure, combined structure, combined Table type. Provide fields in the data type and Generate Dictionary Objects.
Create LIST_1 and LIST_2 as transient nodes ---> Propose Names for Data structure, combined structure, combined Table type. Provide fields in the data type and Generate Dictionary Objects.
For LIST_1 Create Actions 'DELETE' & 'MOVE'
Question 1) How to code to delete a Record from the LIST_1 in DELETE Action?
Question 2) How to Code to move a Record from the LIST_1 to LIST_2 based on user selection in the LIST_1 in MOVE Action ?
Question 3) Is this Possible to Handle all the 3 nodes in my requirement in a single BO or I Should Create 3 different BO as in my requirement the 3 nodes are independent and in the BO it uses KEY and Parent_Key relation with the SUB Node, Is this possible to handle all the 3 independent nodes in single BO ?
Question 4) If i Create # different BO How can i achieve this Functionality ?
Please Guide me with Your valuable Suggestions.
Thanks in Adv.
Thanks,
Kranthi Kumar.Hello Kranti,
As I understand , you have all the required data in non BO existing standard tables. You now want to represent this data as a business object. What you need is a BO wrapper on this existing data , and a controller object would be one way to achieve this ( in theory ). Or you can create a Business Process Object/Master Data Object that acts as a BO wrapper ( with its own buffer implementation ) on top of existing data/APIs , see the standard Business Process Object BO /BOFU/BASIS_APPLICATION_LOG as an example. The Master Data Object /BOFU/BUSINESSPARTNER is another example.
Question 1) How to code to delete a Record from LIST_1 in DELETE Action ?
There is nothing to be done here. The underlying data source for the list is a BO node and the standard Delete action that you get as part of regular CRUD for a BO node will do the job. However note that this delete just deletes the record from the buffer, if this now needs to be translated to an actual delete in the standard table then you need to handle that.
There are two ways to handle the actual update to the table based on how you consume the data from the table. You can do the update within a determination set to Before Save (Before writing data). Or , you can create your own buffer implementation and handle your data manipulation there.
Question 2) How to Code to move a Record from the LIST_1 to LIST_2 based on user selection in the LIST_1 in MOVE Action ?
Add the record to the underlying node for List_2 and remove the record from the underlying node of List_1.Again , this is just buffer data manipulation , the standard tables are not touched , you will need to handle that.
Question 3) Is this Possible to Handle all the 3 nodes in my requirement in a single BO or I Should Create 3 different BO as in my requirement the 3 nodes are independent and in the BO it uses KEY and Parent_Key relation with the SUB Node, Is this possible to handle all the 3 independent nodes in single BO ?
Your BO design depends upon your requirements/use case/functionalities. Is the data related and can be defined as constituent of a single business entity ? If yes , then it should ideally be a single business object. In short , let your functionality decide the scope of your business object. Technical considerations should be secondary.
In addition , remember that too many Business Objects will create a performance overhead.
The use case that you provide is technical and it does not give me enough info to advise on the scope of the business object(s) you will need to create. From a technical perspective , handling 3 nodes in the same business object to address your use case is very much possible.
Question 4) If i Create # different BO How can i achieve this Functionality ?
I will indulge in this question from a point of technical feasibility. When you have multiple BOs and you want to establish a relationship between them , this is achieved by using Business Object Representation nodes. Business Object Representation nodes enable cross BO associations that establish a relationship between a node of the source BO with a node of the target BO.
Regards,
Indranil. -
If I generate loader / Insert script from Raptor, it's not working for Clob columns.
I am getting error:
SQL*Loader-510: Physical record in data file (clob_table.ldr) is long
er than the maximum(1048576)
What's the solution?
Regards,Hi,
Has the file been somehow changed by copying it between windows and unix? Ora file transfer done as binary or ASCII? The most common cause of your problem. Is if the end of line carriage return characters have been changed so they are no longer /n/r could this have happened? Can you open the file in a good editor or do an od command in unix to see what is actually present?
Regards,
Harry
http://dbaharrison.blogspot.co.uk/ -
How does IDOC data transfer happensbetween two system?
Hi,
If there are data in system A and I need to transfer to system B using IDoc.
What are the key things which will enable data transfer from system A to system.
It would be great if someone can explain how does IDOC data gets transferred from system A to sytemB.
Regards,
Rachel
Moderator Message : Search for available information or Read SAP documentation. Thread locked
Edited by: Vinod Kumar on Apr 26, 2011 12:37 PMthanks for all your replies...
let me write down what i have understood ..plz correct me if i have not followed properly..
1) Once IDocs successfully reach R3 , a function module specific to the Idoc type is called "<b>automatically</b>" and updates database...
2) this function module we specify in the process code while creating partner profiles
basically all we need to do is to specify correct function module, right?
the rest of the process ie . updation in the tables(database) is done automatically..
Once database is updated, where can i see the added/updated records in database?
also how do we find this function module?
I am using MATMAS05...
Regards,
Roshani -
ABAP Report for IDOC data of perticular IDOC basic type
Hi,
I have requirment to create report to display the IDOC Data of the perticular IDOC type.
However I believe in IDOC the data comes in raw format.
Is there any standard TCODE wherein we can have IDOC data of perticular IDOC type.
or Could you please let me know how is it possible to retrieve data from IDOC using SAP ABAP .
Thanks
Vinay
Moderator message: (almost) duplicate post locked.
Edited by: Thomas Zloch on May 2, 2011 12:39 PMHi,
Please find a sample code
* Build Control records
CONTROL_RECORD_OUT-MESTYP = MESTYP.
CONTROL_RECORD_OUT-IDOCTP = IDOC_TYPE.
CONTROL_RECORD_OUT-RCVPRT = 'LS'. " << Fill the receiver port type US/LS
CONTROL_RECORD_OUT-RCVPRN = LOGSYS.
* Build Data records
*--- EDIDD40 data Here if you have multiple items then make a loop
loop at i_itab. " i_itab contains the details about EDIDD40 fields
IT_EDIDD-SEGNAM = SEGMENT. " Will be EDIDD40
IT_EDIDD-SDATA = i_itab.
*--- Append the data
APPEND IT_EDIDD.
endloop.
aRs -
Passing values to idoc data of type edidd40 using ABAP
Hi All,
I am using orders05 (purchasing) idoc for creating purchase order inbound in ABAP program. I need to read a file and fill values to idoc_data of type edidd40
and idoc control record (of type edidc) and call function module idoc_inbound asynchronous. In this, how can I fill the values to idoc_data (edidd40). If anyone has some sample program to fill idoc_data (of type edidd40), it will be helpful.
ThanksHi,
Please find a sample code
* Build Control records
CONTROL_RECORD_OUT-MESTYP = MESTYP.
CONTROL_RECORD_OUT-IDOCTP = IDOC_TYPE.
CONTROL_RECORD_OUT-RCVPRT = 'LS'. " << Fill the receiver port type US/LS
CONTROL_RECORD_OUT-RCVPRN = LOGSYS.
* Build Data records
*--- EDIDD40 data Here if you have multiple items then make a loop
loop at i_itab. " i_itab contains the details about EDIDD40 fields
IT_EDIDD-SEGNAM = SEGMENT. " Will be EDIDD40
IT_EDIDD-SDATA = i_itab.
*--- Append the data
APPEND IT_EDIDD.
endloop.
aRs -
Inbound IDOC User Exit ZXVEDU04 change IDoc Data
Hi all,
We have to develop an user exit for changing the Plant, Shipping Point and Storage location
We have identified the exit ZXVEDU04 . Is there some other exit for this ??
But which internal table we are supposed to change this to change the data .
If possible send me a sample code
Thanks in Advance .
Vivek K ..Hi all,
I have done this for a single line item IDoc .
How do i go for IDocs with more than one line item ???
I have hardcoded VBAP-WERKS(1) etc for Plant, Strg Loc and shp pt .
How to identify how many line items are there in the IDocs ??
Thanks in Advance .
Vivek K .. -
How to edit Idoc data in inbound processing
Moved to correct forum by moderator
Hi All,
How to edit idoc data in inbound processing ? We have a custom FM in inbound scenario and requirement is to update a value in idoc, this value comes after certain processing in custom FM.
I tried editing it through
EDI_DOCUMENT_OPEN_FOR_EDIT
EDI_CHANGE_DATA_SEGMENTS
EDI_DOCUMENT_CLOSE_EDIT
but there is problem in this approach. By this procedure two idocs are created in system, one with original data and one with modified data. We want only one with modified data.
We do not want any direct database table updates.
Please provide appropriate solution.
Note : We are not changing status record. Please do not post replies related to status change
Edited by: Matt on Nov 19, 2008 2:24 PMHi,
You can edit the idoc by doing the following steps:-
1. Goto WE02 transaction and give the IDOC number and execute
2. Once the required IDOC gets retrieved then double on the text pad icon beside the segment which you wanted to change.
3. Select the Data Record at the top and click Display <-> Change option, which will enable you to change the data in that segment.
4. After doing the step 3 then click the save button to save your changes.
5. Then system will generate a new idoc number to store the actual data and your current idoc will hold the new data and the idoc will be in 69 status.
6. Execute the Program RC1_IDOC_SET_STATUS by giving your idoc number and status as 69 and new status 64 and remove the test flag
7. Then the IDOC will be in 64 status and you can reprocess the idoc with the help of the program RBDAPP01 by giving the idoc number.
The above is the entire process for editing the error idoc and reprocessing it again.
I hope I am clear and you understood the entire flow of editing and reprocessing an idoc.
Thanks,
Mahesh.
Maybe you are looking for
-
Display Bug in LV 8.20 Application Builder
There seems to be a minor bug in the displaying of the "VI Settings" in the application builder for LabVIEW 8.20. The problem is in an executable build spec, in the "Source File Settings" category. Select a sub VI in the tree, then uncheck the select
-
PCTFREE setting for index in Oracle 10g R2
Is PCTFREE parameter obsolete in oracle 10g R2? I don't see any reference to this paramerer in oracle documentation: http://download.oracle.com/docs/cd/B19306_01/server.102/b14231.pdf But 10g R 1 does mention about this setting. http://support.cs.not
-
TAF not supported - any recent changes ?
TAF does not meet all the requirements for a truly transparent failover mechanism - Is there any changes in 11g that make TAF failover "transparent" ? http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=27653 There are sever
-
Rewards Account Verification Email
Good day; I was setting up my BestBuy.com account, in which I tried to link my RewardZone Member ID. The verification email was sent to another email, an email I do not know of. I have two main doubts: 1. How can I verify my account if the email was
-
I have an array that houses the names of six movieclips. I randomly select three of them. I am trying to get my randomly chosen movieClips to do what I want them to do. I have tried the following code to get the first to fade in: stop(); // import tw