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

Create FM for Standard Report RM07DOCS

Former Member
0 Likes
381

Hi,

I am creating FM for the std report RM07DOCS. so for that i have written this following code

*"----


""Local Interface:

*" IMPORTING

*" VALUE(MATNRFROM) LIKE MSEG-MATNR OPTIONAL

*" VALUE(MATNRTO) LIKE MSEG-MATNR OPTIONAL

*" VALUE(WERKSFROM) LIKE MSEG-WERKS OPTIONAL

*" VALUE(WERKSTO) LIKE MSEG-WERKS OPTIONAL

*" TABLES

*" IT_OUTPUT STRUCTURE ZEP_MAT_DOCLIST_OUTPUT

*"----


SUBMIT RM07DOCS VIA SELECTION-SCREEN

with MATNR BETWEEN MATNRFROM MATNRTO

with WERKS BETWEEN WERKFROM WERKTO and return.

While execution time of this FM when pass both MATNR,WERKS it was giving me the output...But my problem is when is pass only MATNR that time i am not getting output...

Actually my requirement is to get the final output table from RM07DOCS and from this need to fill my it_output tab of FM....and need to use this in Portal display...this thing i can do..But SUBMIT is not working fine for me..

1 REPLY 1
Read only

Former Member
0 Likes
306

is WERKS optional in ur function module ??