Skip to Content
avatar image
Former Member

BAPI_ACC_DOCUMENT_POST is not working From WEB SERVICE

Dear All,

After I created one costume function module on top of BAPI_ACC_DOCUMENT_POST for posting NON-PO vendor Invoice I have created web service for that, But which was not working when I test it from SOAP UI tool. But the same input I passed in SAP GUI which was working Fine for me.

The ERROR I got is Please enter HSNSAC code.

I have pass it by below way in my function module,

**After GST
* select single regio into p_plc_sup from lfa1 where lifnr = p_vendorcode.
wa_ext2-structure = 'J_1IG_EXT_BSEG'.
wa_ext2-valuepart1 = p_vendorcode.
wa_ext2-valuepart2 = p_plc_sup.
wa_ext2-valuepart3 = wa_gldata-hsn_sac.
APPEND wa_ext2 TO lt_ext2.
CLEAR wa_ext2.
ENDLOOP.

when I debug the program from SOAP UI it is stopping by one standard function module

MESSAGE_STOP defined inside BAPI_ACC_DOCUMENT_POST.

where one line

LD_SEVERITY = GD_SEVERITY

GD_SEVEIRITY is coming 16 while running from SOAP and 2 when running from SAP GUI.

Kindly help me in this regard. It is very urgent and I am struggling from last one week.

Regards,

Om prakash

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers