cancel
Showing results for 
Search instead for 
Did you mean: 

WRITE_FORM is invalid, START_FORM is missing in SmartForm

Former Member
0 Kudos

Hi All,

I am getting this error message when trying to run a Consignment Stock Invoice in MR91 for a SmartForm that I created.

WRITE_FORM is invalid, START_FORM is missing

I believe that this is a mistake though because as far as I know this message relates to SAPScripts and should not be displayed when using SmartForms.

Has anyone experienced this before?

Many thanks,

Points awarded.

Colm

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

It appears that the smartform was not correctly assigned to the Output type of the consignment and the script missing error is coming

You might have assigned the smartform for the program by removing the script

The [program is searching for the script and since it is not finding it it is giving this error

To trigger the smartform the driver programs are need to be modified

Regards

Anji

Former Member
0 Kudos

PROGRAM UPDATE_ROUTINE.

$$ begin of global - insert your declaration only below this line -

  • TABLES: ...

TABLES: /bic/APPMSCDAT00.

  • DATA: ...

data: begin of ls_projects occurs 0,

project like /bic/appmsccpi00-project.

data: end of ls_projects.

DATA: /BIC/PMSCaGLP5 like /bic/appmscdat00-/bic/pmscaglp5,

/bic/pmscprode like /bic/appmscdat00-/bic/pmscprode,

/bic/pmsckeyd like /bic/appmscdat00-/bic/pmsckeyd,

/bic/pmscpglp5 like /bic/appmscdat00-/bic/pmscpglp5,

wbs_elemt like /bic/appmscdat00-wbs_elemt.

$$ end of global - insert your declaration only before this line -

FORM compute_data_field

TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring

USING COMM_STRUCTURE LIKE /BIC/CS0CO_OM_WBS_6

RECORD_NO LIKE SY-TABIX

RECORD_ALL LIKE SY-TABIX

SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS

CHANGING RESULT LIKE /BIC/VPPMSC_AVT-/BIC/PMSCBGLP5

RETURNCODE LIKE SY-SUBRC

ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update

*

$$ begin of routine - insert your code only below this line -

  • fill the internal table "MONITOR", to make monitor entries

  • result value of the routine

select single * from /bic/appmscdat00

where wbs_elemt = COMM_STRUCTURE-WBS_ELEMT.

If sy-subrc = 0.

RESULT = /BIC/APPMSCDAT00-/BIC/PMSCaGLP5.

endif.

f the returncode is not equal zero, the result will not be updated

RETURNCODE = 0.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

$$ end of routine - insert your code only before this line -

*

ENDFORM.

  • if the returncode is not equal zero, the result will not be updated

RETURNCODE = 0.

  • if abort is not equal zero, the update process will be canceled

ABORT = 0.

$$ end of routine - insert your code only before this line -

*

ENDFORM.

how to change routine so that data should be transsferredfor wbs elemt with only phase 5

Answers (2)

Answers (2)

Former Member
0 Kudos

The print program that was assigned to the smartform was for the sapscript and as such didn't pass the required parameters through to the smart form. i now have to go and create a new smart form print program from scratch to solve this issue.

Many thanks,

Colm

Former Member
0 Kudos

hi,

U might have missed commenting some of FM which is calling SCRIPT, so go through the print program and check it once again...

Close the thread once u r query got cleared...

Regards,

sujatha.