Debugging FM

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
lhandersen
Posts: 9
Joined: Mon Feb 17, 2003 7:45 am
Location: Denmark
Contact:

Debugging FM

Post by lhandersen » Fri Jun 13, 2008 6:35 am

Hi )=)

I'm using SE37 and debugging FM SD_SALESDOCUMENT_CREATE with the TESTRUN = space so that after end debugging the FM returns an actual ordernumber in the system.

But when I aftervards will have a look at the order from VA03 I get this error message:
V1 302: Order not found.

What am I dooing wrong i the FM simulation?

Best regards
Lars Henrik Andersen :mrgreen:

Gothmog
Posts: 1952
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Debugging FM

Post by Gothmog » Fri Jun 13, 2008 6:42 am

I don't think there is any COMMIT in there, so you can't actually create the order with SE37.
Try calling the FM in a program, using BAPI_TRANSACTION_COMMIT afterwards.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

lhandersen
Posts: 9
Joined: Mon Feb 17, 2003 7:45 am
Location: Denmark
Contact:

Re: Debugging FM

Post by lhandersen » Fri Jun 13, 2008 7:35 am

You are absolutely right :oops: !

It works!

Thanx a lot!

Best regards
Lars Henrik Andersen

ssii
Posts: 222
Joined: Sat Nov 11, 2006 9:57 am
Location: France

Re: Debugging FM

Post by ssii » Sat Jun 14, 2008 8:56 am

You should also not use this FM SD_SALESDOCUMENT_CREATE but try to use the Bapi that create sales document.

I haven't SAP in front of me for giving you the name but it should be: BAPI_SALESDOCUMENT_CREATEFROMDATA
SSII is back

Post Reply