cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound ORDERSXX idoc with message type DELORD

Former Member
0 Kudos

The FM idoc_input_orders issues the perform call_va01_new_orders_delord - when building the bdc data the customer requested ship (e1edk03-datum is moved to wldat) date does not seem to be carried into the delivery order creation - (wldat is not moved to RV45A-KETDAT)....anyone know the secret - or could this be a bug? Thanks - Janet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Mandar - Thanks - but nope - I am passing the 002 qualifer in the E1EDK03 - and it does get pushed to WLDAT - but then WLDAT is not moved to KETDAT.... I am using message type DELORD - so the perform call_va01_new_orders_delord is executed - which to me does nothing with WLDAT or KETDAT.... Janet

mandar_shete
Active Participant
0 Kudos

Hi Janet,

If I am not wrong, you might be trying to create a Sales Order w.r.t schd. Agree. or an Order etc. so what SAP is doing is that it just create a BDC session to get the document no. which needs to copy so that once it calles VA01 standard SAP functionality will triggered to create the Sales Order.

I guess you can do one thing. export the E1EDK03-datum to memory with some flag and read it in MV45AFZZ (USEREXIT_MOVE_FIELD_TO_VBAK) and modify VBAK-WLDAT there.

Hope this will work.

Thanks,

Mandar

mandar_shete
Active Participant
0 Kudos

Hi Janet,

Other option what I found is that.

If you see SAP creates a BDC inbetween. So if you go inside PERFORM call_va01_new_orders_delord USING ok.

In this subroutine there is another subroutine called as PERFORM customer_function_dynpro. Just activate the Customer-Exit 002. and put the code as follows.

data: s_e1edk03 type e1edk03.

READ TABLE DXBDCDATA with fval = 'SICH' or 'XICH'.

IF sy-sybrc = 0.

DXBDCDATA-FNAM = 'RV45A-KETDAT'.

Loop at DIDOC_DATA where SEGNAM = 'E1EDK03'.

s_e1edk03 = DIDOC_DATA-SDATA.

if s_e1edk03-iddat= '002'.

DXBDCDATA-FVAL = s_e1edk03-datum.

exit.

endif.

endloop.

ENDIF.

That way the BDC will be modified in such a way that once it created the Sales Order w.r.t any document it will over write the Requested Del. Date with the one which you are passing in IDOC.

Thanks,

Mandar

Answers (2)

Answers (2)

Former Member
0 Kudos

Mandar - yes - this works.....just was hopeing for sap standard functionality vs having to do it in a user exit....

Thanks - Janet

mandar_shete
Active Participant
0 Kudos

Hi Janet,

I am not sure what exactly the idoc values you are passing, but if you want to populate the WLDAT (VBAK-WALDAT or on screen RV45A-KETDAT) you need to send the date in segment E1EDK03 with qualifier as 002.

001 Delivery date (supplier)

002 Requested delivery date (customer)

003 Closing date for applications

004 Deadline for submission of quotations

005 Quotation/inquiry valid from

006 Binding period for a quotation (valid to)

007 Reconciliation date for agreed cumulative quantity

008 First firm zone

009 Second firm zone

010 Shipping date

011 Date IDOC created

012 Document date

013 Quotation date (supplier)

014 Inquiry date (customer)

015 Invoice posting date (Invoice tax point date)

016 Invoice date

017 Payment Date

018 Bill of exchange date

019 Start of validity for outline agreement or inquiry

020 End of validity for outline agreement or inquiry

021 Billing date for invoice list

022 Purchase order date

023 Pricing date

024 Fixed value date

025 Created on

026 Billing date for billing index and printout

027 Date on which services rendered

028 Due date

029 Sales order date

030 Goods receipt date

031 Planned date

032 Date of reference number

033 Shipment start date

034 Planned shipment end date

035 Goods issue date

036 Bank value date

037 Bank offsetting date

038 Posting to bank

039 Ship-to party's PO date

040 Pickup date from (delivery order)

041 Pickup date to (delivery order)

042 Date of old balance

043 Date of new balance

044 Payment baseline date

045 Shelf life expiration data for batch

046 Date for Delivery Relevance

101 Resale Invoice Date

102 Resale Ship Date

103 Booking from date

104 Booking to date

105 Shipping from date

106 Shipping to date

107 Billing from date

108 Billing to date

109 Exercise from date

110 Exercise to date

Thanks,

Mandar