How to Send Parameters in REPORT.RUNMODAL

navuser1navuser1 Member Posts: 1,329
Hi,

I want to send the Parameter(s) from ViewDocDim ( Global Boolean Field decleared in the Sales Order) to the Report -Sales Document -Test ( Sales Order == > Posting ==> Test Report ==> Request Form)

If ViewDocDim is TRUE then Show Dimension would be TRUE Else FALSE ;

How can I do this ? :-k
Now or Never

Answers

  • RawHeatRawHeat Member Posts: 63
    1. write a function in the report say setvalues with boolean parameter viewdocdimbln
    2. contents of function : showdimension := viewdocdimbln;
    Before using Runmodal.
    call the function and pass the parameter. e.g
    report.setvalues(viewdocdim);
    report.runmodal;

    This should work
  • navuser1navuser1 Member Posts: 1,329
    RawHeat wrote:
    1. write a function in the report say setvalues with boolean parameter viewdocdimbln
    2. contents of function : showdimension := viewdocdimbln;
    Before using Runmodal.
    call the function and pass the parameter. e.g
    report.setvalues(viewdocdim);
    report.runmodal;

    This should work

    Yes. I have solved it in this way.. 8)
    Now or Never
Sign In or Register to comment.