Notification to a Position/Job - Function module

Hi friends,
Could someone tell me how to send notification to position.?
This is not an email notification but internal notification that goes to SAP Inbox(transaction : SBWP). I tried using SO_DOCUMENT_SEND_API1 but don't know how to use it for POSITION notification. I was able use above function module to send out notifications to USERId.
Thank you
Nash

Hi
Use the same FM SO_DOCUMENT_SEND_API1
but in the TABLE : RECEIVERS pass the following data.
REC_TYPE = 'H' " This is for Position
RECEIVER = Position ID  / REC_ID = Position ID --- Position ID is to be passed in one of these 2 fields. I am not sure about it.
Try. Hope this will solve your problem.

Similar Messages

  • PM Notification creation using BAPI_ALM_NOTIF_CREATE Function module

    Hi Experts,
    I am creating PM Work order using Custom BAPI which is being invoked by third party system and Imports data from third party system,including the IT_OBJECTLIST.Custom BAPI would Validate the data and by calling the Satandard BAPI BAPI_ALM_ORDER_MAINTAIN it will create the PM Order.
    Once the Order is created i am Calling the Function modules BAPI_ALM_NOTIF_CREATE,BAPI_ALM_NOTIF_SAVE,BAPI_TRANSACTION_COMMIT to create the Notifications for the Equipments in IT_OBJECTLIST structure imported by custom BAPI.
    To my surprise this sequence of function modules are not creating any Notifications in the Objects tab in Order.where as i called the same sequence of function modules in a report Program which is successfully creating the notification.
    i doubt calling BAPI function module to update Notification withing  BAPI Function module may not work.
    could you please help me how to proceed in this case.

    Hi,
    The functional location affected is set to the reference f/l unless a different value is specified.
    That field is not available in BAPI_ALM_NOTIF_CREATE, it is not available in the MODIFY bapi either - so not possible to create then modify.
    You can set a value for the field in exit QQMA0025 / EXIT_SAPLIQS0_017. This is called by the BAPI but you would need to find a way to get the required value from your calling program into the exit.
    -Paul

  • Function module to create log entry with notification

    Hi All,
      I need to create log entry with respect to functional location and it should be attached to notification in transaction LBK1.
    for creating log entry we have separate function module - DIACL_LOG_ENTRY_CREATE.
    for creating Notification also we have separate function module
    BAPI_ALM_NOTIF_CREATE.
    how to link this notification to log entry.
    is there any function module available.
    Its urgent.
    Points will be awarded.
    Regards,
    vinoth.

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Send ABAP Report as an Attachment with Workflow Function Module

    Hi all.
    Hopefully someone ever experienced with this requirements.
    My requirements to send ABAP Report result to user as an attachment. Together with this attachment user need to receive work item/notification. Single workflow task has been defined based on SELFITEM object type to send workflow notification and its attachment.
    Function module for this requirement is SWU_START_WORKFLOW. And this function module provide table parameter ATTACHMENT_LIST.
    My question how to pass this ABAP report result/ ABAP internal table into this ATTACHMENT_LIST?
    Thanks in advance

    check the help on the SUBMIT statement ther are options to write the report to memory or spool.
    Kind regards, Rob Dielemans

  • Function Module to Release Scheduled Jobs

    Dear All,
    I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
    Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
    Regards,
    kartik

    Dear Mr. Parupalli,
    That solved my problem. Thank you.
    Regards,
    kartik

  • How to avoid use of function module in case of background jobs?

    Hi ,
           I am working a file tranfer interface .Functionality is to extract file either apllication or presentation server , and process the file  through bapi , send the  result in their respective server. This program should run through batch jobs in background mode.
    I am using following function module :
      SUBST_GET_FILE_LIS : Get the file list from application server
    TMP_GUI_DIRECTORY_LIST_FILES : Get the file list from presentation server
    GUI_UPLOad : to extract file data   from presentation server
    GUI_downLOAD : to download data  to presentation server
    in case of background job these function modules will not work.... so how to resolve this issue...
    what are the methods we can apply?
    Thanks & Regards
    Sandeep

    Hi,
    This FM is used to get list of files from Application server (will work in Background). This cannot be used to list files from presentation server.  There is no way , by which you can process presentation server files in background mode.
    Regards
    Vinod

  • Error "Job already started" when calling a adobe form in Z function module

    Hi All,
    I have a error when calling a adobe form in a custom function module.
    I am using FP_FUNCTION_MODULE_NAME to get the adobe form function module and then i am using FP_JOB_OPEN function module to control the printing parameters such as no print preview or no dialog ..etc.. I dont have any exceptions during the call of FP_JOB_OPEN function module ..
    Later I am calling my function module which was generated for the adobe form and i am getting the error called " JOB ALREADY STARTED".
    I tried executing the same function module in se37 and the PDF form output was generated, and also by commenting FP_JOB_OPEN function module the PDF form output was generated.
    But i need the FP_JOB_OPEN function module to control the output based on the output type which triggers the form output such as the medium from nast record which says print or email or fax.. etc
    Please let me know how to handling this error.

    Just as a followup note. If you are testing a function module from SE37 and the test button you will get a value in SY-CPROG. You must override this value for everything to work.
    If you override the value of SY-CPROG with the main program that will be calling the function module you have no problem.
    John W.

  • Function Module to run as Background Job

    Hi All
    Could anyone tell how can i run a RFC function module as Background job,
    Right now, one external application calling this RFC FM, when this is getting executed, i can see a dialog process is occupied in SM50. Now o avoid this, i want when external application calls this RFC FM, it should get executed as a background job in SM50.
    Regards
    Munish Garg

    Hi Minish,
    Normally, we can call an RFC in background task as below:
    CALL FUNCTION func IN BACKGROUND TASK
                         [DESTINATION dest]
                         parameter_list
                         [AS SEPARATE UNIT].
    But I am not sure whether your external application can call this RFC in background. But you can create an another RFC and inside call this RFC in background.
    Then call the new RFC so that it will internally call the required RFC in background and Immediately after it will be closed.
    Regards,
    Selva K.

  • Which function module to delete job log?

    Hi, I submit report via jobname and jobcount. After I close job and run it, we can see jobname is still in job log by SMX. But client doesn't want to see it, so who can kindly tell me which function module can delete jobname from job log?
    Thanks a lot.
    Jack

    try        CALL FUNCTION 'BP_JOB_DELETE'
    If you have used JOB_OPEN before the SUBMIT to create the job, you can automatically delete the job upon successful completion by setting the parameter DELANFREP = 'X' in the JOB_OPEN function call.. this way the user will only see the logas for cancelled/aborted jobs..
    ~Suresh
    Message was edited by: Suresh Datti

  • Scheduled function module in background job

    HI all,
    I have created a function module(RFC) & Now I need to schedule it in background job, i have used fm job_open ,job_close  But through there i can only scheduled Reports  so pls gide me how to scheduled fm .
    regards,
    Anuj

    Hi Anuj,
    Check this one:
    Re: can i scheddule a function module(rfc)  in background
    Regards,
    Chandra Sekhar

  • Function Module for Job reschedule

    Hello Experts,
    Is there a function module for job rescheduling as i need to create a automation program where i need to select all jobs from excel sheet and reschedule at different time.
    Thanks and Regards,
    Nikhil Kanegaonkar.

    You could use the following FM
    - [BP_JOB_READ|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_read] (read first from TBTCO to fill field JOBCOUNT)
    - [BP_JOB_CREATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_create] (change schedule parameters first)
    - for recent versions [BP_JOB_COPY|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_copy]
    You should take a look at FM of the FG BTCH and SAP documentation like [Programming with the Background Processing System (BC-CCM-BTC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm]
    Regards,
    Raymond

  • Function module for background jobs email

    hi abaper's
                     i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
    thnks n regards
    pardeep kumar

    hi dear
    open this site
    https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM

  • Scheduling function module execution in background jobs

    Hi,
    I have requirement where in after obtaining all the required inputs from the user we will call an function module to execute it.
    The requirement is that the execution of fm shld happen in background and a log must be created showing the user whther it was successful or if it failed with the list of errors.
    Can you kindly give some input on how to schedule the execution of function module in background job and if scheduled how to create the logs to display the success or error message.
    Warm Regards,
    Naveen M

    Hi,
    Just create a simple program where you have to call this FM.
    Pass the values to FM either by declaring some internal table of selection screen and execute the program in background.
    For Message Log, you can use structurre BDCMSGCOLL
    DATA:   MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    After Call to FM, read from this internal table as follows
    READ TABLE MESSTAB WITH KEY MSGTYP = <Message Type>
                                            MSGNR  = <Message Number>.
    regds,
    Anil

  • Function Module to show all jobs in that Org Unit.

    Does any one know is there any Function Module which gives all the jobs that comes under that Org Unit. for example if org unit 10 has 2 Sub Org Units(11 and 12) and 3 jobs(20, 21 and 22) under it. and the Sub Org Unit 11 and 12 has 1 job each( 30 and 40). When you run for org unit 10 it should give all 5 jobs (20, 21, 22, 30 and 40).

    Hi Fayyaz
    Well you use a FM RH_READ_INFTY_1001 to discover the relationships between an ORG Unit and Jobs.
    Alternative, you can write a simple query to extract data from HRP1001 to find the jobs under an Org Unit. Because Jobs are related to an Org Unit and this relationship is stored in Infotype 1001/HRP1001.
    Reward Points, If helpful.
    Regards
    Waz

  • Jobs to run the function modules to extract the generic extarctors

    Gurus,
    I have a Datasource 'ZCMS_PP_TRAN' with extract structure 'ZBW_ST_CMSD_PP'. The extract structure is populated using the function module Z_BW_GET_CMSD_PP.
    But how do I schedule this FM or in general, are they run using std programs?
    Thanks,
    Simmi

    Hi Simmi,
       what ever it may be the DS(i mean Business Content DS, Generic DS).... these will extract the Data using Dynamic Function Calls(not always). Comming to Generic DS using FM, this will be called using Dynamic Function Module.
    In RSA3 or while extracting data from BW, you will pass request number, Update Mode, debugging option, selection fields, BW source System ID, DS Name.
    Based on these details system will extract the underlying extract structure and function module(or table/view/infoset).
    No job(Job created from BW while extracting data in the source system BI_requestid) created for Generic DS while extracting data in SAP.
    For Queue Delta, Background job will be created, it will move the data to Delta Queue.
    i will update the thread with related function modules. Try to debugg in RSA3, you could find all the information.
    all the best.
    Nagesh.

Maybe you are looking for

  • Application does not work on firefox 3.5

    If the application is not working in mozilla firefox 3.5 then we are not able to test it in any other browser through this tool. What should be the fix for this issue

  • ME1P Report

    Hi Experts, I want to have ME1P Purchase Order Price History SAP Standard Report want to export into Excel Format. How to do it?  Otherwise, I have to develop this report  or what? can anybody clarify the same. Thanks in advnace KK

  • 5200, No Sound On Tv Recordings!

    When i set up a schedule of around 30 mins, I get NO SOUND when i playback the recording. This is so annoying because this is what I bought the card for. I installed the latest drives from nvidia. I am running a 3GHz P4, with 512k ddr ram on an ABIT

  • Java.lang.error How to..

    I have serious problem..a lot of java games/applications show this error: java.lang.error (not found..) how can i make its work? my phone have midp 2.0..there isn't a soluction? pleeese help me

  • Debug VA01 at the point where output gets triggered

    Hi buddies, I need the point where output type ZOC1 is getting triggered while saving a sales order in VA01. I have put numerous breakpoints in the output type print program but it is not taking me there at the 1st instant when I save the sales order