Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Should not allow Duplicating the legacy file once it is already up loaded

hardhik_kodi
Explorer
0 Kudos

.

Please any one help me to write code for this issue

6 REPLIES 6

Former Member
0 Kudos

Hi,

may i know where do u wnat to write the code in BDC /LSMW.

Let me know

Thanks

Naveen khan

0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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