cancel
Showing results for 
Search instead for 
Did you mean: 

Can i call a function module of SAP?

Former Member
0 Kudos

Hi, i have a question... Can i call a function module of SAP... I need print a document from a device, can i call the function module of SAP in order that me it prints it?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Victor,

you can use the GenericSync Example of the MDK. This calls the Module to verify the user directly. Generic Sync is exactly for that purpose: call a BADI directly and no usage of SyncBO. Be aware, that you - out of the box- sync your app data as well at that moment, because a sync runs both - generic and smartsync. Even worse: even when you have nothing to sync in Generic Sync - so nothing to print - it will call the function module for generic sync as long as it is registered.

Well, anyway, this is the way to call a function module separate.

If it works with you rparticular print module? I have no idea, but if this is a normal function module - well, it should be ok.

Hope this helps.

Regards,

Oliver

Former Member
0 Kudos

Can i use in a smart project the genericsync for call a function?

Thanks,

Former Member
0 Kudos

Well, yes you can - in general.

BUT: this triggers always a complete sync. You can in a way switch off the SmartSync if you only want to use the generic sync for a sync loop - but if you do not do that, be aware that you always trigger a complete sync with all the time it needs.

The question is: why do you need to call the module directly and whuy do you not do that by Smartsync?

You have to take care of the delta handling as well - so generic sync is not really that powerfull!

Regards,

Oliver

Answers (0)