on 2018 Oct 22 11:57 AM
Hi All,
has any of you solved this error in EDOC_COCKPIT transaction?
"E-invoice eDocument cannot be displayed; Check implementation of BAdI EDOC_INTERFACE_CONNECTOR method DISPLAY_EDOCUMENT"
I'm working for Italian customer on S / 4 hana and I can not find guides for this system.
if you have any suggestions I would be grateful
Sylvie
Request clarification before answering.
Try to implement the interface in your Z-Class like this (example from ECC):
-----------------------------------------------------------------------------------
METHOD if_edoc_interface_connector~display_edocument.
DATA: lo_edocument_db TYPE REF TO cl_edocument_db,
ls_edocfile TYPE edocumentfile.
* Get eDoc GUID
TRY.
me->load_from_db( iv_edoc_guid = iv_edoc_guid ).
CATCH cx_edocument .
ENDTRY.
IF ms_edocument-file_guid IS NOT INITIAL.
* Get the XMl data from the eDocumentfile table
CREATE OBJECT lo_edocument_db.
ls_edocfile = lo_edocument_db->if_edocument_db~select_edocumentfile( ms_edocument-file_guid ).
* Show XML in popup
cl_abap_browser=>show_xml( xml_xstring = ls_edocfile-file_raw ).
ENDIF.
cv_display_done = abap_true.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Simon,
My Z Class does not have any method called load_from_db, so, the following line gives me error:
me->load_from_db( iv_edoc_guid = iv_edoc_guid ).
Would you, please, give me lights where is the instance of me coming from?
I am looking more information about this method but so far I don't see anything clear.
Best regards,
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.