Skip to Content
avatar image
Former Member

Unwanted elements to be deleted from MAIN window in sapscript

Hi All,

I have copied standard sapscript PSFC_PRINT_LAY(production order printing) into Z_PRINT_LAY and trying to delete some of the elements(Routing part) which I dont want from MAIN window. When I am trying to run the application it is giving error that some of the elements are not available. How can I fix the problem.Please give me some light on this issue.

Regards,

Ameer.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Apr 12, 2006 at 12:52 PM

    There will be function module calls in the print program that will need to be commented out. The WRITE_FORM function module, you will see the element name being passed to it. Any element that you got rid of in the sapscript, will need to be removed from the program by commenting out the call to WRITE_FORM.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ameer,

      if you don't want to change the Driver/Print Program you will end up with errors.

      there is no point in changing the script layout.

      try to copy the Driver also to some ZDRiver and make changes accordingly,

      Regards

      vijay

  • Apr 12, 2006 at 12:55 PM

    Hello,

    Whenever you copy the std. layout to your z layout, don't delete the unnecesary elements, but comment the text of the unnecessary elements.

    In this, you don't have to serach for unnecessary WRITE_FORM in your program.

    Regards,

    Naimesh

    Add comment
    10|10000 characters needed characters exceeded

    • Hello,

      Don't comment the Text elements. Comment only the text of the text elements.

      Like

      /E TEST111

      A1 Comment this portion

      A1 XXXXXX

      So, after commenting like,

      /E TEST111

      /* Comment this portion

      /* XXXXXX

      Regards,

      Naimesh

  • avatar image
    Former Member
    Apr 12, 2006 at 01:02 PM

    hi

    Goto Main Window editor.

    Then in Menu Text->check

    then specify triggering program and try to remove all errors.

    It will solve ur problem.

    regards

    vinod

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 12, 2006 at 01:03 PM

    Hi,

    Just comment write_form related to those elements in your driver thats all . nothing much required.

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 12, 2006 at 02:12 PM

    Hi Ameer,

    Do not delete elements from your SAPscript form. If your control program is calling any element, it must be available in your layout.

    You have to comment code of element or remove code of element. Retain only element definition.

    E.g. If you have element like

    /E PRINT_ITEM

    AL &VBDKR-VBELN&..

    Maintain only element definition. It should look like

    /E PRINT_ITEM

    Regards,

    Naren

    Add comment
    10|10000 characters needed characters exceeded