SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

RE: how to use Business object in program

Former Member
0 Kudos

Hi,

Can anybody let me know how I can use the BO ISUSMNOTIF having Method CREATEBYNOTIFCODE in my program.

Please let me know the procedure for the same.

Sarang

1 REPLY 1

Former Member
0 Kudos

Hi sarang,

Please find below a sample code to call a BOR object ISUSWITCHD.

Let me know if this helps

Thank you,

Binno Don Thomas

swc_container : notif_cont. u201CTo create container

data: lt_eideswtdoc type table of eideswtdoc,

lv_switchnum type EIDESWTNUM,

lv_KENNZX type KENNZX,

ls_msgdata type EIDESWTMSGDATA.

data: lo_switchdoc TYPE swc_object. u201CObject declaration

lv_switchnum = '00000000000000000682'.

swc_create_object lo_switchdoc 'ISUSWITCHD' lv_switchnum. "To create instance for BOR object

swc_call_method lo_switchdoc 'GETMSGDATA' notif_cont. "To call the BOR object method