Zprogram for epayment approval

Hi all ,
I have a requirement of creating a zprogram to create a epayment approval based on the values fetched from the .net web service.
Regards,
Hajeera

Hi,
DATA: Begin of imara occurs 0,
matnr like mara-matnr,
mtart like mara-mtart,
mbrsh like mara-mbrsh,
meins(3) type c,
end of imara.
data: begin of imakt occurs 0,
maktx like makt-maktx,
end of imakt.
DATA: wamas_con LIKE edidc,
imas_data LIKE edidd OCCURS 0 WITH HEADER LINE,
icom_con LIKE edidc OCCURS 0 WITH HEADER LINE.
PARAMETERS: e_matnr LIKE mara-matnr,
e_msgtyp LIKE edidc-mestyp,
e_rcvprn LIKE edidc-rcvprn.
retrive app. data from DB
SELECT matnr mtart mbrsh meins FROM mara INTO TABLE imara WHERE
matnr = e_matnr.
SELECT maktx FROM makt INTO TABLE imakt WHERE
matnr = e_matnr.
*Master idoc control record
wamas_con-rcvprt = 'LS'.
wamas_con-rcvprn = e_rcvprn.
wamas_con-idoctp = 'YMATMAS1'.
wamas_con-mestyp = e_msgtyp.
master idoc data records
LOOP AT imara.
imas_data-segnam = 'Y1MARA'.
move imara to imas_data-sdata .
APPEND imas_data.
ENDLOOP.
LOOP AT imakt.
imas_data-segnam = 'Y1MAKT'.
imas_data-sdata = imakt.
APPEND imas_data.
ENDLOOP.
CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
EXPORTING
master_idoc_control = wamas_con
OBJ_TYPE = ''
CHNUM = ''
TABLES
communication_idoc_control = icom_con
master_idoc_data = imas_data
EXCEPTIONS
ERROR_IN_IDOC_CONTROL = 1
ERROR_WRITING_IDOC_STATUS = 2
ERROR_IN_IDOC_DATA = 3
SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
COMMIT WORK.
Regards,
Priyanka.

Similar Messages

  • Zprogram for travel Approval

    Hello All,
    I have a requiremnt of creating a travel approval process using zprogram.
    any help will be appritiated.
    Regerds,
    Hajeera

    Get an customized WF developed. Routing to any person and any number of mails can be generated

  • Report for pending approval absences

    Dear all Gents ,
    I want to create report for all types of employees absences which are pending approval and approved and every thing , any one has a select statement for this please ?
    thank you

    You have to query : per_absence_attendances table for applied leave
    and HR_API_TRANSACTION Table for pending approval leave.
    Thanks

  • Email Notifications through workflow for all Approved and Rejected Orders

    hi,
    i have to send Email Notifications through workflow for all Approved and Rejected Orders to the user who have submitted the order for approval.how could it be done.please send ur solutions.
    regards
    yesukannan

    Hi,
    An option would be use Oracle Alert. Create an event based alert on the table where you have order approvals or rejections. This alert will be raised after inserting or updating this table. Create an action linked to this alert, and choose message as action type.
    This setup can be done under Alert Manager Responsibility.
    Regards,
    Ketter Ohnes

  • What is the IDOC for Final Approval of PO

    Hi,
    Can any one tell me ..
    1. what is the IDOC for Final Approval of Purchase Order?
    2. Is there any Separate IDOCs for GRN(Goods Receipts
    Note) in Transaction MIGO. Like Creation of GRN,
    Changing of GRN, Cancelling of GRN, Transfering materials to Scrap or Cost center (Changing of Movement types in MIGO).
    regards,
    Khaja.

    Khaja,
    1. There is no separate IDOC for final approval of a PO. IF you have configured a release stratgey for a PO, the PO IDOC will be transmitted only upon the final apporval of the PO.
    2. Yes there should be a IDOC for Goods Receipt.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • In which table can i get all the SC for an approver.

    Hello, i need to get a list of all SCs that an approver X has in his inbox.How can i do this(table preferably)?
    thx in advance

    Hi,
    You can do the following :
    Run FM   SAP_WAPI_CREATE_WORKLIST by giving the User Id as Input. This will return all the workitems WIS[] for the user irrespective  of the Business Objects.
    Use this result and filter by reading the records from  table sww_contob. you can give the object type to this as 'BUS2121' . and lv_cont_obj_name ='REQREQ'   and map the work id with WIS[].
    This would give you all the records meant for approval for an approver.
    Best Regards,
    Sapna

  • Digital Signatures for cProjects Approval

    Hi Folks,
    I am on cProjects 4.5 and from what I understand there are 2 options for this based on whether or not I check the "Signature of Approval with User Certificate" box in Project Type config.
    Unchecked - user is prompted for cProjects password and this works fine. Only issue for us is, we are on the portal and most likely cProjects password will be different and unknown to user. As per note 928527 this is standard behavior and tough luck for anybody on the portal.
    Checked - use is given the ability to digitally sign the PDF approval document. When I select "sign" on the PDF I am given the ability to create a new ID or use an existing ID from a file, server etc. I created a new ID and signed the document. Once I do this and click the transfer button the system appears to hang. The progress indicator appears and keeps going.
    Therefore my questions are:
    1. Is there any additional config I need to do in cProjects. ADS or anywhere else?
    2. How exactly does adobe digital signatures work? If anybody simply create a signature how does that provide any verification of authenticity?
    Appreciate any help.
    Thanks,
    Lashan

    Hi,
    please see teh Configuration Content for cProjects 4.5 available in SAP Solution Manager and also as PDF attachment to SAP Note 1035436.
    There it says:
    Making Settings for the Approval
    Use
    You can use user certificates for digital signatures of approvals.
    Prerequisites
    ● You are using Microsoft® Internet Explorer 6.0 or higher.
    ● You have a user certificate that is suitable for digital signatures (for example, the single
    sign-on certificate).
    ● You have installed Adobe® Reader and Adobe Document Services.
    Procedure
    To verify the signature, enter the corresponding root certificate in the certificate list of the
    Personal Security Environment (PSE, transaction STRUST). For more information, see the
    documentation for the activity and the Adobe Document Services u2013 Configuration Guide NW
    2004s on SAP Service Marketplace at service.sap.com/adobe u2192 Media Library u2192
    Documentation.
    In fact, what is described in the ADS documentation referenced above is that you have to install
    the certificate also on the ADS.
    Kind regards,
       Florian

  • Workflow for Document Approval

    Hi all,
    I'm a newbie to SolMan and is trying to figure out how to implement a workflow for document approval. A similar question has probably been posted in the past, but I can't find a definite solution, only some hints.
    Basically, what we're trying to achieve is the following:
    When a document is uploaded using SOLAR02, and the creator of the document changes the status to ready for sign-off, we would like to trigger a workflow which will send an email to a couple of persons who are responsible to approve the document. We already implement the digital signature, we just want to add an automatic email notification to be sent to the approvers.
    Based on my research, it seems that this is not supported by SolMan and hence we have to do a custom development.
    There's an object key called SOLMANDOC and we should raise an event (something like SIGNATURE_PROCESS_START) to send an email notification to the approvers. Can somebody confirm whether my understanding is right ? Does anybody know the name of the BADI that we can modify to achieve our goal ? 
    FYI, we're using SolMan Rel 7.01 SP 19.
    Thanks in advance
    Lara

    Hi Phil,
    I'm facing with problems with creating a simple 2 steps release strategy.
    the problem is I cant approve the last step of the release.
    This is what I did:
    In spro Digital Signature->Signature strategy:
    in "Define Authorization groups" I create this entries:
    1. EING
    2. VERIF
    in "Define Individual Signatures" I create this entries:
    1.  S1   EING
    2.  S2   VERIF
    in "Define Individual Strategies: I create this entries:
    SigStrat: ZSIGSTR
    Signature Method: R
    Display comment: X Required
    Display Remark: X
    Display document: X
    Verification: not checked
    in "Assign individual signatures"
    CtrIn  Indiv.SIG.      AGrpDIG
    1          S1               EING
    2          S2               VERIF
    Display Predecessor for Ctrln is 2 is 1
    for "Display release statuses"  an entry with one line with the value 1
    and in "Display individual signatures there 2 entries 1 and 2.
    in spro "Define Document status schemes"
    stat scheme "ZSIGSTR"
    4 status:
    Status                 init status      Sequence    Low     High       lock         Signature schma  End status         Cancel status
    COPY_EDITING       X                  10           10       20          -                    
    REVIEW                                     20           10        40        X                    ZSIGSTR         RELEASED    DECLINED
    RELEASED                                30           10        40        X                   
    DECLINED                                  40           10        20             
    I created two roles with object c_sign_bpr one with the value "EING"   and the other with the value "VERIF"
    I assign this status scheme to a document type in my project.
    I tried to release a document the first step was the author of the document move the status to "REVIEW" and I got a window that i need to enter my password and it worked ok.
    The problem is in the second step that I need to release the document (now is in a REVIEW status) When I press on the icon in order to release I didn't get the option to release only to cancel there is no "V" option in the small window.
    Can you please tell me if I did a correct customization? also can you tell me if my problem is maybe missing authorization? Can you direct me to reading material or to an example?
    Best regards
    Lior Grinberg
    Edited by: Lior Grinberg on Nov 28, 2011 6:22 PM

  • Reminder mail for workflow approval

    Hi All,
    We have a scheduled task which sends Reminder mails for workflow approval which has been pending for more than 5 days.
    Recently I created new workflow definitions and reminder task stopped sending mails.
    I checked task and it has IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder.
    How to check this class and do i need to make changes somewhere else to send reminder mails?
    Regards,
    Prabhat

    Hi Prabhat,
    I am working on creating a scheduled task for sending reminder emails. I need help on IapiTaskIfc Class com.frictionless.custom.wkfreminder.sendWorkflowReminder. Can you please share sendWorkflowReminder class to me, so that I can get idea about the code written for sending reminder emails? It would be great help.
    To check the class, you need to get the jar from server and decompile it. You can get some idea by looking at the java class file then.
    Thanks,
    Saloni

  • Query for PO Approval

    Dear Sir / Madam;
    Please Help, We try to made Query for PO Approval with condition if PO Type "ITEM" have to approve by Purchasing Manager, but for PO Type "SERVICE" have to approve by General Affair Manager.
    We Create Query for this condition " SELECT *  FROM OPOR  WHERE T0.[DOCTYPE]='I'
    We already create the stage, and this query is not work. But if try to set the total Doc greater than 1000000, it is work.
    Dear Sir / Madam, please help me to send me the right query ?
    Thanks for your help
    Regards
    Petrus

    Hi,
    I suggest to add select distinct 'true' or select 'true' for in your query like previous answer.
    Here are the solutions for your problem:
    A. for doc type is not as same as service :
    SELECT distinct 'true' FROM OPOR T0
    where $[OPOR.doctype] = N'S'
    B. For doctype is not as same as item:
    SELECT distinct 'true' FROM OPOR T0
    where $[OPOR.doctype] = N'I'
    Both have been tested and work well.
    Rgds,

  • Zprogram for idoc

    hi gurus,
    send me the sample coding
    i need a zprogram for idoc using master_idoc_distribute
    please send me any sample program

    Hi,
    DATA: Begin of imara occurs 0,
    matnr like mara-matnr,
    mtart like mara-mtart,
    mbrsh like mara-mbrsh,
    meins(3) type c,
    end of imara.
    data: begin of imakt occurs 0,
    maktx like makt-maktx,
    end of imakt.
    DATA: wamas_con LIKE edidc,
    imas_data LIKE edidd OCCURS 0 WITH HEADER LINE,
    icom_con LIKE edidc OCCURS 0 WITH HEADER LINE.
    PARAMETERS: e_matnr LIKE mara-matnr,
    e_msgtyp LIKE edidc-mestyp,
    e_rcvprn LIKE edidc-rcvprn.
    retrive app. data from DB
    SELECT matnr mtart mbrsh meins FROM mara INTO TABLE imara WHERE
    matnr = e_matnr.
    SELECT maktx FROM makt INTO TABLE imakt WHERE
    matnr = e_matnr.
    *Master idoc control record
    wamas_con-rcvprt = 'LS'.
    wamas_con-rcvprn = e_rcvprn.
    wamas_con-idoctp = 'YMATMAS1'.
    wamas_con-mestyp = e_msgtyp.
    master idoc data records
    LOOP AT imara.
    imas_data-segnam = 'Y1MARA'.
    move imara to imas_data-sdata .
    APPEND imas_data.
    ENDLOOP.
    LOOP AT imakt.
    imas_data-segnam = 'Y1MAKT'.
    imas_data-sdata = imakt.
    APPEND imas_data.
    ENDLOOP.
    CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
    EXPORTING
    master_idoc_control = wamas_con
    OBJ_TYPE = ''
    CHNUM = ''
    TABLES
    communication_idoc_control = icom_con
    master_idoc_data = imas_data
    EXCEPTIONS
    ERROR_IN_IDOC_CONTROL = 1
    ERROR_WRITING_IDOC_STATUS = 2
    ERROR_IN_IDOC_DATA = 3
    SENDING_LOGICAL_SYSTEM_UNKNOWN = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    COMMIT WORK.
    Regards,
    Priyanka.

  • Authorization object for "add approver" in contracts

    Hello, Experts,
      I am looking for authorization object for adding approver in contracts.
    But without adding authorization for changing contracts.
      Regards,
        Rami Kleiman - HP

    1. you can try to restrict  the authorization object ( Manager Role-- /SAPSRM/MANAGER) for contracts to display ( remove the change).
    2. you can also change the personalization object key "BBP_WFL_SECURITY" to None ( but i, think this will affect all the objects like shopping carts purchase orders etc..)
    Thanks
    velu

  • What is the standard method to integreate with AME for the approval process

    I have developed a new OAF page and registered under Employee Self Service menu.
    What is the standard method to integreate with AME for the approval process.
    Appreciate your early response

    Any one used AME with the new OAF pages?
    Please share , how you use AME with OAF page

  • Some users continue to get overdue notices for an approval workflow.

    Some users continue to get overdue notices for an approval workflow that has already completed and approved. How to stop the overdue notices. And there are no tasks running in the task list.
    Thanks
    Ramanjjilu Naidu

    Rama,
    Usually these happen from restored/QA env which give us false impression.
    Check similar thread - 
    SharePoint
    Approval workflow Overdue emails after workflow completion
    Overdue
    task reminder even after task /library deleted
    Task
    overdue emails even after deleting all tasks
    Workflow
    Task overdue notifications
    Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

  • BAPI for Timesheet Approval

    Hi, Does anybody know approval / rejection BAPI for timesheets in HR ?
    Thanks.
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Jun 4, 2009 5:16 PM

    hello,
    For cats approval, I  used this solution:
    * declaretion
    data: catrecort       type CATS_APPROVAL_IN_TAB,
               wacatrecort   type CATS_APPROVAL_IN,
               MESSAGE_HANDLER  TYPE REF TO CL_MESSAGE_HANDLER_CATSXT,
               esito                type XFELD.
      data: MSG_CUMULATION  Type CATSXT_MSG_CUMULATION.
      data: GR_MSG          type ref to CL_MESSAGE_HANDLER_CATSXT.
    * rows to approve
      LOOP AT i_catsdb into wa_catsdb .
        MOVE-CORRESPONDING wa_catsdb  to wacatrecort.
        wacatrecort-TARGET_STATUS = p_stauts.
        APPEND  wacatrecort to catrecort.
      ENDLOOP.
      MSG_CUMULATION =  'X'.
      if gr_msg  is INITIAL.
        create object gr_msg
          EXPORTING
            im_cumulate_messages = msg_cumulation.
      endif.
    *approve
      CALL FUNCTION 'CATS_APPROVAL'
      EXPORTING
        MESSAGE_HANDLER           = gr_msg
        AUTH_CHECK                       = ' '
        RECORDS                              = catrecort
      IMPORTING
    *     PROCESSED_RECORDS                =
       RECORD_ERROR                     = esito
    EXCEPTIONS
       UPDATE_ERROR                     = 1
       NUMBER_RANGE_ERROR       = 2
       LONGTEXT_ERROR                 = 3
       MESSAGE_HANDLER_NOT_ACTIVE       = 4
       OTHERS                           = 5.
      if sy-subrc ne 0.
        MESSAGE s002(ZPECI) WITH TEXT-015.
      else.
        commit work.
    endif.
    Bye Bye
    M.

Maybe you are looking for

  • Java.sql.SQLException: ORA-12899

    Hi All, I am working on IDOC to JDBC scenario.We want to POst the data from SAP to Oracle Data base. So i have used the hasQuot for Date elements.http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2002.I [original link is broken] [original link is

  • Deleting Virtual Raw Disk

    My understanding says that asmtool fake OS files as hard disk and get Oracle to recognise them as usable storage, as though they were hard disks? am i right ? as i have created the OS files using OS command in windows 7 and Mimicked these files using

  • Date field in my WD4A

    Hi all, I am developing an application in WD4A, i am developing an application which is nothing but a time and expenses entry, user selects the starting date fo a week which is monday always, after selecting the starting date, i have a table with 7 c

  • Joining to domain on same computer account name

    Hi,  I have a critical server. I need to reinstall it with clean installation an same name. I don't have permissions to delete computer account from AD, but I have permissions to add to domain. If I remove server from domain reinstall it and will joi

  • Dynamic Action - Field Overlapping

    Dear Colleagues, I have written Dynamic Actions for Extension Of Probation & Confirmation. However when i am executing confirmation action, system replaces the Extension Of Probation field in IT0041. Please advise how to go about it. Regards, Garima