cancel
Showing results for 
Search instead for 
Did you mean: 

XML Import in BRFplus - Bug or Feature? "The data object is referenced by a structure that is also bound to a structure in the Dictionary."

ttrapp
Active Contributor
0 Kudos

As a result object of a function I have a structure ZSTR1 with complete DDIC binding: ZSTR1 contains a table type ZTAB2 with line type ZSTR2.

The whole application is in system A and a copy in system B. Now I changing the DDIC (and so the DDIC binding) from ZTAB2 to ZTAB3 with line type ZSTR3 in system A and perform an XML import of the application in system B.

The result is the error "The data object is referenced by a structure that is also bound to a structure in the Dictionary" described in OSS note 1575179 - Additional checks for bound data structures. I consider this as a bug since during an XML import this check makes no sense because the import guarantess consistency. What do you think?

Best Regards,

Tobias

Accepted Solutions (1)

Accepted Solutions (1)

carsten_ziegler
Active Contributor
0 Kudos

Would you pls give is message class and number. Thanks.

ttrapp
Active Contributor
0 Kudos

It is FDT_CORE 491:

carsten_ziegler
Active Contributor
0 Kudos

The message comes from CHECK_CLEAR_BINDING which in turn may be called by several methods. Can you post the call stack?

ttrapp
Active Contributor
0 Kudos

Please be warned - it is NW 7.40 SP7.

The problem occurs here:

METHOD if_fdt_table~set_structure.

* see internal message 002824759 2007

   CHECK iv_structure_id NE if_fdt_table~get_structure( ). ">>>

* we may not call the set and the clear methods when there is no change

* in the structure; UI may call the method over and over again

* just to transport UI values to backend

   check_clear_binding( ). "May throw CX_FDT_INPUT

   set_structure( iv_structure_id ).

* Check whether it is called from the XML Import

* If true then do not clear the DDIC binding.

   IF mv_in_xml_import EQ abap_false.

     clear_gdt_binding( ).

     clear_ddic_binding( ).

   ENDIF.

ENDMETHOD.



At the moment I am a little bit confused because I thought the DDIC binding is valid in the source. In fact the DDIC binding is OK in the data element that caused the trouble.

Here is the stack:

31CL_FDT_DATA_OBJECT============CP      CL_FDT_DATA_OBJECT============CM024   16METHOD                      CHECK_CLEAR_BINDING                                       
30CL_FDT_TABLE==================CP      CL_FDT_TABLE==================CM00C   8METHOD                      IF_FDT_TABLE~SET_STRUCTURE                                
29CL_FDT_TABLE==================CP      CL_FDT_TABLE==================CM00L   36METHOD                      IF_FDT_DATA_EXCHANGE_INTERNAL~IMPORT_XML                  
28CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM003   138METHOD                      IMPORT_ID_FROM_QUEUE                                      
27CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM002   5METHOD                      HANDLE_OBJECT_ID_AS_ATTRIBUTE                             
26CL_FDT_STRUCTURE==============CP      CL_FDT_STRUCTURE==============CM00K   32METHOD                      IF_FDT_DATA_EXCHANGE_INTERNAL~IMPORT_XML                  
25CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM003   138METHOD                      IMPORT_ID_FROM_QUEUE                                      
24CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM010   36METHOD                      IMPORT_OBJECTS                                            
23CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM01N   476METHOD                      IMPORT_XML                                                
22CL_FDT_DATA_EXCHANGE==========CP      CL_FDT_DATA_EXCHANGE==========CM00C   93METHOD                      IF_FDT_DATA_EXCHANGE~IMPORT_XML                           
21CL_FDT_WD_XML_IMPORT==========CP      CL_FDT_WD_XML_IMPORT==========CM002   54METHOD                      IF_FDT_WD_MODEL~SET_MODEL_BY_NODE                         
20CL_FDT_WD_MODEL===============CP      CL_FDT_WD_MODEL===============CM004   9METHOD                      IF_FDT_WD_MODEL~SET_MODEL                                 
19/1BCWDY/0O2TOIC56OS55158LR1X==CP      /1BCWDY/B_0O2TOIC56OS55185MJQM        510METHOD                      UPLOAD_XML_CONTENT                                        
18/1BCWDY/0O2TOIC56OS55158LR1X==CP      /1BCWDY/B_0O2TOIC56OS55185MJQM        137METHOD                      IF_COMPONENTCONTROLLER~UPLOAD_XML_CONTENT                 
17/1BCWDY/0O2TOIC56OS55158LR1X==CP      /1BCWDY/B_0O2TOIC56OS55185MJWY        1434METHOD                      ONACTIONUPLOAD_XML                                        
16/1BCWDY/0O2TOIC56OS55158LR1X==CP      /1BCWDY/B_0O2TOIC56OS55185MJWY        257METHOD                      IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER              
15CL_WDR_DELEGATING_VIEW========CP      CL_WDR_DELEGATING_VIEW========CM006   6METHOD                      INVOKE_EVENTHANDLER                                       
14CL_WDR_ACTION=================CP      CL_WDR_ACTION=================CM00A   38METHOD                      IF_WDR_ACTION~FIRE                                        
13CL_WDR_WINDOW_PHASE_MODEL=====CP      CL_WDR_WINDOW_PHASE_MODEL=====CM00U   99METHOD                      DO_HANDLE_ACTION_EVENTS                                   
12CL_WDR_WINDOW_PHASE_MODEL=====CP      CL_WDR_WINDOW_PHASE_MODEL=====CM002   95METHOD                      PROCESS_REQUEST                                           
11CL_WDR_WINDOW=================CP      CL_WDR_WINDOW=================CM00V   12METHOD                      PROCESS_REQUEST                                           
10CL_WDR_MAIN_TASK==============CP      CL_WDR_MAIN_TASK==============CM00I   77METHOD                      EXECUTE                                                   
9CL_WDR_MAIN_TASK==============CP      CL_WDR_MAIN_TASK==============CM00U   9METHOD                      IF_WDR_RUNTIME~EXECUTE                                    
8CL_WDR_CLIENT_ABSTRACT_HTTP===CP      CL_WDR_CLIENT_ABSTRACT_HTTP===CM01C   119METHOD                      HANDLE_REQUEST                                            
7CL_WDR_MAIN_TASK==============CP      CL_WDR_MAIN_TASK==============CM00J   89METHOD                      IF_HTTP_EXTENSION~HANDLE_REQUEST                          
6CL_HTTP_SERVER================CP      CL_HTTP_SERVER================CM00I   632METHOD                      EXECUTE_REQUEST                                           
5SAPLHTTP_RUNTIME                      LHTTP_RUNTIMEU02                      1427FUNCTION                    HTTP_DISPATCH_REQUEST                                     
4SAPMHTTP                              SAPMHTTP                              12MODULE (PBO)                %_HTTP_START                                              
32PBO MODULE                  %_HTTP_START                                              
2SAPMHTTP                              2PBO SCREEN                  10
10TRANSACTION                 ()                                                        
carsten_ziegler
Active Contributor
0 Kudos

Pls open a message with reference to this forum post.

The binding check must be relaxed. Thanks.

Former Member
0 Kudos

Hi Tobias ,

When this is solved , could you please share OSS Note number.

  We are exploring to use XML import in Implemention of BRF+  in our PLM Project.

This may be helpful for us.

Thanking you ,

Regards,

  Satya

ttrapp
Active Contributor
0 Kudos

I don't think this will help you. Above mentioned problem is very exotic. In general XML import has some problems and you find many OSS notes with problems that are much more common.

Which NW release/SP are you using? A high SP level will help you.

Best Regards,

Tobias

Answers (1)

Answers (1)

shwetars
Advisor
Advisor
0 Kudos

Note: 2360769 fixes the issue.