‎2010 Jan 21 7:46 AM
Hi Expart,
In BADI HRPAD00INFTY I AM USING A FUNCTION MODULE SO_NEW_DOCUMENT_SEND_API1 but It is triggering a exception DOCUMENT_NOT_SENT = 2.
What may be the reason is that it is because I took the RECEIVER table as itab without header line but in object oriented contents
I can not use table with header line give the solution .
Kindly give me soulation asap.
‎2010 Jan 21 7:57 AM
Hi ,
You can check the entries in the Reciever Table in the function module or might be debugg the function module to find the reason why it is giving the exception
Thanks
Jatender
‎2010 Jan 21 7:57 AM
Hi ,
You can check the entries in the Reciever Table in the function module or might be debugg the function module to find the reason why it is giving the exception
Thanks
Jatender
‎2010 Jan 21 8:02 AM
it_objtxt TYPE STANDARD TABLE OF solisti1 ,
it_objpack TYPE STANDARD TABLE OF sopcklsti1 ,
it_objbin TYPE STANDARD TABLE OF solisti1 ,
it_objhead TYPE STANDARD TABLE OF solisti1 ,
it_reclist TYPE STANDARD TABLE OF somlreci1 .DATA l_sender TYPE soextreci1-receiver.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_emailattr
put_in_outbox = 'X'
sender_address = l_sender
sender_address_type = 'INT'
commit_work = 'X'
TABLES
packing_list = it_objpack
object_header = it_objhead
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.