08-16-2007 2:28 PM
08-16-2007 2:48 PM
Hi,
may i know where do u wnat to write the code in BDC /LSMW.
Let me know
Thanks
Naveen khan
08-16-2007 3:28 PM
Thanks for your reply
Let me explain,
It is the program which creates sales order using BAPI function .
Before going to create sales order it should check with already exit sales orders by the legacy sales order numbers
points to be rewarded
08-16-2007 3:52 PM
Hi,
Sorry friend, same thing i have handled in the LSMW for AS91.
i have no idea regarding h to handle this in BAPI
Thanks
Naveen khan
08-16-2007 4:37 PM
Hi Naveen,
Nothing relavent to Bapi, just not the allow the user to post the sales order before creating sales order.
i need just abap code only .
Thanks for your quick response.
08-16-2007 5:00 PM
hi,
Sorry i dont think u can solve ur issue by seeing this.
DATA: V_ERROR(10) TYPE C value 'A'.
SELECT ANLN1 FROM ANLA INTO V_error
WHERE AIBN1 = as91_ztable-ANLN1 and
BUKRS = as91_ztable-BUKRS and
ANLKL = as91_ztable-ANLKL.
endselect.
if v_error ne 'A'.
v_error = 'A'.
exit.
endif.
Any way if u got any idea with this,
Try to Reward points .
Thanks
Naveen khan
08-16-2007 3:48 PM
Hello Hardhik
Please check the Sales Orders already posted in table VBAK, if the legacy sales order numbers are passed to some reference field please check aginst this reference field in VBAK....
Regards,
Arun