on 12-22-2014 4:52 PM
Hi, I'm creating a Sales Order through DI API. If the document does not have discount it add's it directly to SAP. If it has a discount it goes through an approval process in SAP and it is created as a Draft.
When I execute the .Add() procesude for the document, how can I determine if a draft was created or a final document?
Hi Youval,
Use the
ObjectType = oCompany.GetNewObjectType();
method to get the newly created object type.
If the ObjectType = 112, it is a draft created.
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Youval,
after adding the document, call SBO_Company.GetNewObjectType() -> if it returns 112 you got a draft.
regards,
Maik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
u can check it in database....
using record count...
before pressing the add.
check the total records then
after add again check it in data base records.
i think odrf....table...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.