Application Development and Automation 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: 
Read only

BAPI - Inbound Delivery Create

Former Member
0 Likes
1,348

Dear Experts,

Kindly help me on this,

I need a BAPI or function module to create  Inbound Delivery Create with respect to PO

I have tried with BBP_IND_DELIVERY_CREATE but in this materials are not getting updated and

If the Delivery date in the BAPI and Purchase order Delivery  date equals means this Bapi is working  fine,

Else  this BAPI through's a  Error MSG like Input contains Date Variance.This Bapi is not allowing To deliver with Date Variance.

Is there any BAPI to create ASN other than this?? Kindly help me on this..

Also for Change ASN i m trying with BAPI_INB_DELIVERY_CHANGE but in this also i m getting error.

Kind thanks in Advance!!

Regards,

AJAY

2 REPLIES 2
Read only

Private_Member_49934
Product and Topic Expert
Product and Topic Expert
0 Likes
547

Dear Ajay,

The program your are getting should be due to your system configuration.

Sit with your functional person and try to post the data maually through transaction code.

You will get the same message. Ask the functional to get rid of the message and Bapi will work pefrectly.

Read only

Former Member
0 Likes
547

Hello,

Did you get anywhere with the FM?

I have tried and get the same result, the material number is blank in VL33N, though a PGR can stil be completed.  I found where in the code and it seemed to be MPN/EDI related.  Though I added the MPN and still the issue appears.

I guess the code below, if we could de-activate the EDI SPOT then it would not "wipe" out the MATNR (material number).  Further, I am in EEC6 and it seems that with this FM it expects SAP to be using EDI.

*- xkomdlgn contains suggestion data form PO -> mix them with T_KOM
   
READ TABLE xkomdlgn WITH KEY vgbel = t_kom-vgbel
                                 vgpos
= t_kom-vgpos.
   
IF sy-subrc EQ 0.*--- check first material number -----------------**         check: may be, material number contains leading zeros
ENHANCEMENT-SECTION     ME_CONFIRMATION_VIA_EDI_07 SPOTS ES_SAPLEINB.
     
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
       
EXPORTING
         
input  = t_kom-ematn
       
IMPORTING
         
output = t_kom-ematn.
      t_kom
-matnr = t_kom-ematn.

END-ENHANCEMENT-SECTION.

Regards

Waza