Skip to Content
author's profile photo Former Member
Former Member

Can i call a function module of SAP?

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,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 17, 2007 at 04:20 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.