thespot4sap.com independent sap information
 

New - get SAP Access - pay monthly

SAP Tutorials    Online SAP Training    SAP CBT's    Forums    SAP Articles    SAP Jobs    Resumes
  SAP Access    SAP Blogs    SAP Books     Links     Vendor Directory     Submit Content    Search

New Page 1

Previous Page

Next Page

Designing SAP Transactions
Example - PBO

Page 8 of 13

Write the PBO sub-programme

We will first see the PBO sub-program for both screens.

PBO modules are used for initializing variables, assigning the pf-statuses and titlebars for dynpros, and other screen processing to be done before the screen is displayed and re-displayed. 

            Include MZTRYO01 

Module status_0100.

Clear : ztryemp, ztrydept, ztryrate, ztrytxn, v_date.

Set pf-status ‘STAT_100’.

Set titlebar ‘100’.

Endmodule.

 

Module status_0200 output.

If not v_emp_exist is initial.

  Set pf-status ‘STAT_200’ excluding c_save.

  Set titlebar ‘200’.

  Loop at screen.

  If screen-group1 eq ‘GR1’.

    Screen-active = c_0.

    Modify screen.

  Endif.

 Endloop.

Else.

  Set pf-status ‘STAT_0200’.

  Loop at screen.

  If screen-group2 eq ‘GR2’.

    Screen-active = c_0.

    Modify screen.

   Endif.

  Endloop.

 Endif.

Move v_empno to ztryemp-empno.

Endmodule.

 

Double click on the pf-status and the titlebar to create the respective objects.

Note that the pushbuttons have been assigned groups to enable/disable them depending on certain conditions. 

We will now see the PAI sub-program for both screens.

Next Page

Previous Page

 

New Page 1

 

 


About Us   Contact Us   Privacy   Disclaimer   Feedback   Email Discussion   Newsletter  

Copyright © - Independent SAP Information
Partners: Learn XML, SAPdox, Worldwide Guesthouses and B&B's