2014 Jan 09 4:58 PM
Dear people,
I have used the code below sucessfully, but now it does not work.
All return codes are ok and the entries in the tables are correct as per my check using FM BDS_BUSINESSDOCUMENT_GET_INFO.
the problem is that I cannot now view the attachment using XD02/3.
I have checked note 317250 , which suggests checking RFCs SAPHTTA, SAPFTA and SAPKPROTP - I have tested connectivity to these and its ok.
Now , I dont know what to check next - has anyone any ideas? - Kinda urgent.
Thanks
Tony
*create the table entries for posting document
ls_files-directory = lv_directory_old.
ls_files-filename = lv_filename_old.
ls_files-doc_count ='1'.
APPEND ls_files TO lt_files.
ls_signature-doc_count = '1'.
ls_signature-prop_name = 'DESCRIPTION'.
ls_signature-prop_value = lv_filename_old.
APPEND ls_signature TO lt_signature.
*what is the logsys?
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = lv_log_sys.
*build the key
CONCATENATE p_kunnr p_bukrs INTO ls_key.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
EXPORTING
logical_system = lv_log_sys
classname = 'KNB1'
classtype = 'BO'
* CLIENT = SY-MANDT
object_key = ls_key
IMPORTING
object_key = ls_ret_key
TABLES
files = lt_files
signature = lt_signature
EXCEPTIONS
nothing_found = 1
parameter_error = 2
not_allowed = 3
error_kpro = 4
internal_error = 5
not_authorized = 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.
COMMIT WORK AND WAIT.
Dear people,
I have used the code below sucessfully, but now it does not work.
All return codes are ok and the entries in the tables are correct as per my check using FM BDS_BUSINESSDOCUMENT_GET_INFO.
the problem is that I cannot now view the attachment using XD02/3.
I have checked note 317250 , which suggests checking RFCs SAPHTTA, SAPFTA and SAPKPROTP - I have tested connectivity to these and its ok.
Now , I dont know what to check next - has anyone any ideas? - Kinda urgent.
Thanks
Tony
*create the table entries for posting document
ls_files-directory = lv_directory_old.
ls_files-filename = lv_filename_old.
ls_files-doc_count ='1'.
APPEND ls_files TO lt_files.
ls_signature-doc_count = '1'.
ls_signature-prop_name = 'DESCRIPTION'.
ls_signature-prop_value = lv_filename_old.
APPEND ls_signature TO lt_signature.
*what is the logsys?
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = lv_log_sys.
*build the key
CONCATENATE p_kunnr p_bukrs INTO ls_key.
CALL FUNCTION 'BDS_BUSINESSDOCUMENT_CREATEF'
EXPORTING
logical_system = lv_log_sys
classname = 'KNB1'
classtype = 'BO'
* CLIENT = SY-MANDT
object_key = ls_key
IMPORTING
object_key = ls_ret_key
TABLES
files = lt_files
signature = lt_signature
EXCEPTIONS
nothing_found = 1
parameter_error = 2
not_allowed = 3
error_kpro = 4
internal_error = 5
not_authorized = 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.
COMMIT WORK AND WAIT.
2014 Jan 09 5:30 PM
Hi Tony,
First of all i want to know what is 'KNB1' is that maintained in BDS_CLASS table?
I think there should be BOR object.Please look on test program BDSTEST5 and also try BAPI_TRANSACTION_COMMIT.
Thanks
Deependra
2014 Jan 09 5:39 PM
Thanks Deependra for your quick reply
KNB1 is the company/customer master, and no its not in BDS_CLASS.
I should say that this was working successfully and only during my testing today did it stop working - perhaps it is something that basis were working with , as the machine went down shortly afterwards for a brief period.
any other ideas anyone?
Regards
Tony
2014 Jan 09 5:41 PM
Hi Tony
The issue document are not visible or they are visible but do not open...? What error do you get..?
Nabheet
2014 Jan 09 5:46 PM
Hi Nabheet
The attachment button on xd02 is greyed out as previously it wasn't, so I cannot click on it to view the attachment.
There are 0 errors - all FM's return 0 - i have debugged them all and they successfully create the BDS doc's as viewable in FM BDS_BUSINESSDOCUMENT_GET_INFO, but still nothing on the DMS server.
Tony
2014 Jan 09 7:39 PM
Dear all,
This is a pressing request, so i would really appreciate it if you can provide some further feedback.
Even a further line of enquiry would be welcome.
Thanks
Tony
2014 Jan 20 10:02 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |