‎2010 Jan 20 4:55 AM
HI Experts,
as i used one function module to retrieve value.......
types: begin of tp_final1,
end of tp_final1.
data: it_final1 type table of tp_final1 with hesder line.
loop at it_vbak.
CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'
EXPORTING
iv_docnum = it_vbak-vbeln
IV_ITEMNUM =
IV_ALL_ITEMS =
IMPORTING
ET_DOCFLOW = it_final1
.
if sy-subrc = 0.
endif.
append it_final to it_final.
clear: it_final, it_vbak.
endloop.
i get dump.....
with message....
Function module "SD_DOCUMENT_FLOW_GET" was called
with the parameter "ET_DOCFLOW".
This parameter is not defined.
actually ET_DOCFLOW type TDS_DOCFLOW which is a line type....
can u suggest me the right way....
regards
rahul
‎2010 Jan 20 5:05 AM
Hi,
Use export parameter of type TDT_DOCFLOW. For reference refer where used list of FM.
Regards,
Surendar Reddy.
‎2010 Jan 20 5:07 AM
Hi Rahul,
CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'
EXPORTING
iv_docnum = it_vbak-vbeln
* IV_ITEMNUM =
* IV_ALL_ITEMS =
IMPORTING " remove comments here
ET_DOCFLOW = it_final1
.
Regards,
Swarna Munukoti
‎2010 Jan 20 5:08 AM
Hi.
Use proper subject line while posting ....
types: begin of tp_final1,
end of tp_final1.----
>what is this...
data: it_final1 type table of tp_final1 with hesder line.
loop at it_vbak.----
>where u declare it_vbak
CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'
EXPORTING
iv_docnum = it_vbak-vbeln
IV_ITEMNUM =
IV_ALL_ITEMS =
IMPORTING----
>remove comment here
ET_DOCFLOW = it_final1
.
endloop.
Edited by: Upender Verma on Jan 20, 2010 6:08 AM
‎2010 Jan 20 5:08 AM
‎2010 Jan 20 5:08 AM
‎2010 Jan 20 5:14 AM
‎2010 Jan 20 5:15 AM
Hi
You are bound to get a DUMP
The reason is very simple. You are condusing with the IMPORT and EXPORT parameters.
If you go to transaction SE37 and enter the FM name and display it, you will find that the parameter ET_DOCFLOW is an export parameter of the FM. So in your code it should be importing paramenter.
The code which you have pasted in your post has IMPORTING as commented and that is the reason you are getting dump.
Just uncomment it and the issue will be solved.
Regards
Gaurav
‎2010 Jan 20 6:19 AM
hi rahul
as you have specified your particular piece of coed you are bound to get dump beacuse in your code IMPORT statement is commented , please de comment it and then try it again.
thanks
sunny
‎2010 Jan 20 6:40 AM
Hi
When using the FM you should use Pattern Functionality to get the right syntax for the FM.In this way you will come to know exactly what is import and expot parameters.
Regards
Gaurav
‎2010 Jan 20 6:46 AM
Hi,
You are getting dump in the following because
CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'
EXPORTING
iv_docnum = it_vbak-vbeln
IV_ITEMNUM =
IV_ALL_ITEMS =
IMPORTING
ET_DOCFLOW = it_final1
.
Just Try to uncomment the Importing paramter and check.
Thanks
Jatender.