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

dump

Former Member
0 Likes
1,486

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

10 REPLIES 10
Read only

0 Likes
1,344

Hi,

Use export parameter of type TDT_DOCFLOW. For reference refer where used list of FM.

Regards,

Surendar Reddy.

Read only

former_member217544
Active Contributor
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

Hi,

Uncomment IMPORTING.

Cheers,

Surinder

Read only

Former Member
0 Likes
1,344

Please have a look at the below link it will solve your problem.

Regards

Sikha

Read only

Former Member
0 Likes
1,344

hi

Follow the upendra instructions.

thanks & regards

surender

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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

Read only

Former Member
0 Likes
1,344

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.