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

Posting ASN using FM ( Process Code: DELS )

Former Member
0 Likes
1,924

Hi SDN Community..

I have problem in Posting ASN Function Module.

We are serching PO's for which ASN has not been sent.

After Getting POs.

We are sending ASN for Purchase Order.

-


Now the scenario is such that ASN will be posted using EDI Function module

attached with the inbound process code for <b>DESADV</b> i.e DELS, so that synchronous processing can be guaranteed.)

Posting ASN (Inbound Delivery):

-


-


Message Type: <b>DESADV</b>

Idoc Type : <b>DELVRY03</b>

Process Code: <b>DELS</b>

Function Group V55K (Incoming shipment messages (ALE/EDI))

Function Module: <b>IDOC_INPUT_DESADV1</b>

Now i am unable to understand the Import/Export parameters of this function module: IDOC_INPUT_DESADV1

<b>IMPORT PAAMETERS</b>

-


-INPUT_METHOD LIKE BDWFAP_PAR-INPUTMETHD

-MASS_PROCESSING LIKE BDWFAP_PAR-MASS_PROC

<b>EXPORT PARAMETERS</b>

-


-WORKFLOW_RESULT LIKE BDWFAP_PAR-RESULT

-APPLICATION_VARIABLE LIKE BDWFAP_PAR-APPL_VAR

-IN_UPDATE_TASK LIKE BDWFAP_PAR-UPDATETASK

-CALL_TRANSACTION_DONE LIKE BDWFAP_PAR-CALLTRANS

<b>TABLES</b>

-


IDOC_CONTRL LIKE EDIDC

IDOC_DATA LIKE EDIDD

IDOC_STATUS LIKE BDIDOCSTAT

RETURN_VARIABLES LIKE BDWFRETVAR

SERIALIZATION_INFO LIKE BDI_SER

Can anyone help me in how to send/post ASN using this FM and What values i need to pass to the importing parameters of this FM.

Help will be Appreciated.

Thanks in Advance.

Vijay Raheja

6 REPLIES 6
Read only

Former Member
0 Likes
1,157

Hi Vijay,

You don't need to supply the import parameters and tables parameters.SAP itself takes care of passing these values during the inbound processing.

Once the IDOC is created in the SAP database,process code ( In your case DELS) is read and the corresponding posting function module is selected for IDOC posting.

During this process SAP standrad programs supply all these values for the processing.

Anyway I am giving you the path where you can find the documentation for these parameters.

SAP Libarary>Basis Components>Middleware-->ALE Programming guide.

Please let me know if you have any questions.

Regards,

karun.M

Read only

Former Member
0 Likes
1,157

Hello Vijay,

Based on your configuration, when Idoc is generated in SAP the relavant inbound process code is found out. In your case DELS. If you check the configuration, this process code is connected to the FM IDOC_INPUT_DESADV1. So the std program would execute this FM using the data available in Idoc and you don't have to worry abt the parameters.

Read only

0 Likes
1,157

Hi Abhijit Dani

I am not configuring any ALE Scenario.Neither i want to create any IDOC.AS i told in my Scenario i have to POST ASN directly using Function Module.

As both of replies for this Question says that SAP standard proram will fill import paametres for this function module automatically referring IDOC DATA.

But in my case i don't have any created IDOC thats why i need to know,What should be the values and how to pass those values to This FUNCTION MODULE?

I hope the question is Clear..

Regads,

Vijay Raheja

Read only

Former Member
0 Likes
1,157

Pass blanks for both the importing parameter. As for the tables you need to fill the IDOC related tables with the relavant data.

Read only

0 Likes
1,157

HI Abhijit Dani

That is the problem i am facing..

"relavant data for idoc DELVRY03"

Can you help on those fields(DELVRY03)

Regards,

Vijay Raheja

Read only

Former Member
0 Likes
1,157

That is going to be difficult as it may vary with configuration. Hard way is fill in the basic data and try. It is a tedious way.