Update Rejection note in Invoice using Program

Hi,
We have one requirement to Reject & Approve the invoice using the POWL report. I have completed all the approval process, but while in rejection we have done one enhancement in invoice that invoice can't be rejected without entering the value in the Reason for rejection. I have called the method in this following sequence. There is no exception but Reason for rejection doesn't updated.
/SAPSRM/IF_PDO_DO_LONGTEXT~ADD_LONGTEXT
/SAPSRM/IF_PDO_DO_LONGTEXT~UPDATE_LONGTEXT_BUFFER
/SAPSRM/IF_PDO_BASE~SUBMIT_UPDATE
Give me some suggestion how i can achieve this.
Regards,
Nishant

Hi,
I want to update the Rejection Note from Program in APPROVAL mode.
Below is the i wrote for update the REJECTION NOTE .
data     lV_USER_TYPE TYPE BBP_IV_USER_TYPE VALUE 'PROFI' .
             lv_mode = 'APPROVAL'.
             lv_decision = 'REJECTED'.
             lv_objecttype  = /sapsrm/if_pdo_obj_types_c=>gc_pdo_invoice.
       TRY.
         CALL METHOD /sapsrm/cl_pdo_bo_inv_adv=>get_inv_adv_instance
           EXPORTING
             iv_header_guid = I_GUID
             iv_wiid        = I_IV_WIID
             iv_mode        = lv_mode
             iv_subtype     = IV_SUBTYPE"ls_header_INV-subtype'
             iv_user_ID     = I_APPROVER
             iv_user_type   = lV_USER_TYPE
           RECEIVING
             ro_instance    = lr_inv_adv.
       CATCH /sapsrm/cx_pdo_no_authorizatio .
       CATCH /sapsrm/cx_pdo_parameter_error .
       CATCH /sapsrm/cx_pdo_status_error .
       CATCH /sapsrm/cx_pdo_incons_user .
       CATCH /sapsrm/cx_pdo_abort .
       CATCH /sapsrm/cx_pdo_lock_failed .
       CATCH /sapsrm/cx_pdo_error .
       CATCH /sapsrm/cx_pdo_be_comm_error .
     ENDTRY.
data lr_message TYPE REF TO /SAPSRM/IF_PDO_MSG_CONSUMER.
data lo_pdo_notes        TYPE REF TO /sapsrm/if_pdo_do_longtext.
data lr_message_update TYPE REF TO /SAPSRM/CL_PDO_MSG.
DATA:   lx_abort            TYPE REF TO /sapsrm/cx_pdo_abort.
CREATE OBJECT lr_message_update.
lr_message ?= lr_message_update.
lo_pdo_notes ?= LR_INV_ADV.
IF lr_inv_adv IS BOUND.
TRY.
*  TRY.
   CALL METHOD lo_pdo_notes->add_longtext
     EXPORTING
     iv_p_guid          = I_GUID
     iv_tdid            = 'NOTE'
     iv_tdspras         = SY-LANGU
     iv_tdformat        = 'X'
     iv_text_preview    = 'Reason For Reject'.
*     CHANGING
*      co_message_handler =
    CATCH /sapsrm/cx_pdo_abort .
   ENDTRY.
TRY.
CALL METHOD lo_pdo_notes->update_longtext
   EXPORTING
     iv_p_guid          = I_GUID
     iv_tdid            = 'NOTE'
     iv_tdspras         = SY-LANGU
     iv_tdformat        = 'X'
     iv_text_preview    = 'Reason For Reject'
*  CHANGING
*    co_message_handler = lr_message
       CATCH /sapsrm/cx_pdo_abort INTO lx_abort  .
*          mo_cll_message_handler->set_abort( io_pdo_abort_exception = lx_abort ).
       ENDTRY.
TRY.
DATA TEXT_ID TYPE TDID VALUE 'RREJ'.
CALL METHOD lo_pdo_notes->update_longtext
   EXPORTING
     iv_p_guid          = I_GUID
     iv_tdid            = TEXT_ID
     iv_tdspras         = SY-LANGU
     iv_tdformat        = 'X'
     iv_text_preview    = 'Price Difference'
*  CHANGING
*    co_message_handler = lr_message
       CATCH /sapsrm/cx_pdo_abort INTO lx_abort  .
*          mo_cll_message_handler->set_a1bort( io_pdo_abort_exception = lx_abort ).
       ENDTRY.
CALL METHOD lr_inv_adv->/SAPSRM/IF_PDO_BASE~submit_update( ).
*  CHANGING
*    co_message_handler = lr_message
  CATCH /sapsrm/cx_pdo_wrong_mode .
  CATCH /sapsrm/cx_pdo_abort .
ENDTRY.
         CALL FUNCTION '/SAPSRM/FU_WF_RFC_DECISION'
           EXPORTING
             iv_header_guid = I_GUID
             iv_mode        = lv_MODE
             iv_botype      = lv_OBJECTTYPE
             iv_wiid        = I_IV_WIID
             iv_decision    = lv_DECISION
             iv_approver    = I_APPROVER
           IMPORTING
             return_code    = return_code
           TABLES
             message_lines  = lt_message
           EXCEPTIONS
             error_in_pdo   = 1
             OTHERS         = 2.
         IF sy-subrc <> 0.
* Implement suitable error handling here
         ENDIF.
After execute this function module i got message REJECTION NOTE IS MANDATORY.
Regards,
Nishant

Similar Messages

  • Open note for S_ALR_87008272 using program RKAZUTR1

    Hi Experts,
    Please provide open note for S_ALR_87008272 using program RKAZUTR1, to run S_ALR_87008272 in Quality and Production client.
    Thanks
    Neeraja

    Hi,
    The t.code S_ALR_87008272 is used to maintain overhead percentages.
    Once the percentages maintained in Development system, those percentages will come automatically via request number.
    For that purpose you have to run this  program RKAZUTR1  via se38 t.code with request number.
    Regards
    Ravi Polampalli

  • Own Photoshop CS5.1 installed on two iMacs, when using second iMac, rarely used,got error message ~"not authorized to use program" on this second iMac I have two accounts one in my name one in my wife's both share photoshop...was in my wife's account when

    Own Photoshop CS5.1 installed on two iMacs, when using second iMac, rarely used,got error message ~"not authorized to use program" on this second iMac I have two accounts one in my name one in my wife's both share photoshop...was in my wife's account when I got message...never happened on my primary iMac on which I have my own account and one for guest account that doesn't share photoshop....what is wrong..am allowed to install program on two machines?

    Customer Care would have the authority to reset activations. We are basically users such as yourself and can't do this.
    Contact Customer Care
    Gene

  • Pages 09 (updated) will not start up using Lion OSX

    iWork Pages 09 (updated) will not start up using Lion OSX. It did work at one time but now it won't. I reinstalled iWork several times with updates but the applications say to reinstall or check the developer.  I'm using an i-Mac Intel with updated downloads for all applications.  Thank You in Advance for your thoughts to solving this concern.

    What else have you been doing just before this problem started? Any other updates on the computer? If you need to reinstall iWork which some has when upgrading to Lion after a complete uninstall.
    To uninstall correctly iWork, go to Yvans iDisk :
    <http://public.me.com/koenigyvan>
    Download :
    For_iWork:iWork '09:uninstall iWork '09.zip
    Expand the archive and run the script.
    Now you can instal iwork again and do the updates.

  • Windows update does not work after using System recovery disk

    I have a Toshiba Satellite c655 with WIndows 7 64 bit Home premium. The hard drive died on it, so I purchased a new hard drive and purchased the appropriate Recovery media from Toshiba. I followed the directions and installed the 3 disks on to the new hard drive. But Windows update does not work I get the following error: Windows update can not currently check for updates, because the service is not running. You may need to restart your PC    No matter what I try, I can not get it to work. And it will not let me install Windows Defender either. Any ideas or help would be appreciated. Thank you in advance for your time on this matter.
    Solved!
    Go to Solution.

    I get errors saying A problem is preventing the troubleshooter from starting.
    That makes two similarities to the following thread. Both Windows Update and Troubleshooters fail to work correctly.
       Trouble with reinstall of Win7 64 on a L505-ES5018
    The fix was to install a new hard disk driver.
       Intel Rapid Storage Technology
    -Jerry

  • 10.7.5 update does not let me use bluetooth

    I have the 10.7.5 update and my logitech mouse and keyboard are both bluetooth and just do not connect. It was working fine and it just tuned out the bluetooth a couple of days ago but started to work again after a hour but not i have restared my computer many times for a couple of hours and still doesn’t work.

    Im also having this issue. on my IMAC. I did the 10.7 .5 update. Since reboot the wireless keyboard and mouse wont connect. Asks me to input the "code" which Ive done many times with the USB keyboard. Mouse wont work either. It sees them both, tries to pair, and fails... HELP!!

  • The new Android ICS update will not let me use iCloud email

    I figured out how to use a @me.com account on my android, but with the new ICS update it keeps saying "Username or password incorrect" except that they aren't. I even changed them but it still says this. It is a different alert if I get the other settings wrong.

    I figured it out! https://discussions.apple.com/message/19273401#19273401

  • Cannot send report out when using "program rsrd_broadcast_starter"

    I create Program for sending report to many users with BEx Broadcasting concept.
    I have a loop for sending report out to many users.
    For the first time, the report will be sent out.
    But the second time, the report won't be send out.
    What's wrong with my code?
    Here is my coding.
    =============================================================================
          LOOP AT gt_variant INTO gs_variant.
    *Change E-mail of BEx Broadcaster
            SELECT SINGLE * FROM /bic/azopa_d0100 INTO wa_dso
            WHERE co_area = gs_variant-zco_area
            AND rspl_cha = gs_variant-zcost_center
            AND /bic/zreptype = gs_variant-zreptype.
            IF wa_dso-/bic/zbimail1 IS NOT INITIAL.
              mail = wa_dso-/bic/zbimail1.
            ENDIF.
            IF wa_dso-/bic/zbimail2 IS NOT INITIAL.
              CONCATENATE mail ';' wa_dso-/bic/zbimail2 INTO mail.
            ENDIF.
            IF wa_dso-/bic/zbimail3 IS NOT INITIAL.
              CONCATENATE mail ';' wa_dso-/bic/zbimail3 INTO mail.
            ENDIF.
            SELECT SINGLE *  FROM rsrd_sett_node_a INTO wa_email
            WHERE  setting_id = 'ZOPA_KPI_REPORT_BEXBC_PP'
            AND id = 'DI_EMAIL' AND rsr_index = '0'.
            wa_email-value = mail.
            UPDATE rsrd_sett_node_a FROM wa_email.
    *Using Program 'rsrd_broadcast_starter' to run BEx broadcaster name 'ZOPA_KPI_REPORT_BEXBC'
            SUBMIT rsrd_broadcast_starter WITH p_settng = 'zopa_kpi_report_bexbc_pp' WITH p_online = 'X' AND RETURN.
    *Send mail out
            WAIT UP TO 5 SECONDS.
            IF sy-subrc EQ 0.
              SUBMIT rsconn01 WITH mode = 'INT' WITH output = ' '.
            ENDIF.
          ENDLOOP.

    Hello,
    Perhaps the wait time is too low and there is contention? Have you tried to extend it?
    Why dont you just maintain all of the names in the broadcast setting zopa_kpi_report_bexbc_pp. This is the expected behaviour.
    Regards,
    Michael

  • Recent update download upset my entire itunes program. Can't use to sync iphone, ipad, etc nor run any other updates.  Get runtime error message, etc...and contact app support team.  Says itunes not installed correctly, pls reinstall. tried to no avail.

    A recent update download upset my entire itunes program. Unable to use to sync iphone, ipad, etc nor run any other updates.  Get runtime error message, Error 7 (windows error 1114)  etc...and contact app support team.  Says itunes not installed correctly, pls reinstall. tried to no avail.

    First try updating to iTunes 11.1.5.5, using an installer downloaded from the Apple website:
    http://www.apple.com/itunes/download/
    If you still get the errors after that, try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • Calculate Withholding taxes for VEndor Invoices using ABAP program.

    Hi All,
    I have to upload Vendor Invoices using FB60/Fb01 tcodes. I am able to post the Invoices using FB01/Fb60
    but I have to calculate extended withholding taxes also using this program for the Invoices.
    Is it possible to upload vendor Invoices and calculate withholding taxes using Program?
    If yes,
    Does anyone has any idea how do you calculate extended withholding taxes using any BAPI's?
    I have used these two BAPI's
    BAPI_ACC_DOCUMENT_POST
    BAPI_acc_invoice_receipt_post
    they are working fine but without withholding tax.
    This is a requirement for country India.
    Regards,
    Sushil

    Hi,
    Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
    For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
    Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
    Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
    If the key of Table2 is vendor no & vendor type, then do a read table for the key.
    The logic in pseudo-code:
    Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
         extract the vendor types in to itab Table1New.
         Select the vendor & types from Table2 by using the for all entries option (better performance).
         loop at Table1New
              check in Table2:
                   if the unique key is vendor no: check all fields for the vendor type from Table1New
                   if the unique key combo is vendor no & type: check by using a read table.
              If not found => add entry to Table2
         endloop.
    endselect Table1 (when using package size)
    I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
    Good luck!
    Best regards,
    Zhou

  • Contract Release Value is not updated with Confirmation or Invoice value

    The release value for a contract in SRM EBP shows the value of purchase orders created using that contract.  It does not take into account confirmation and/or invoice values.
    For example I create a PO for 10 items at £100/each using Contract ABC.  The total value of the PO is £1000 and the release value contract ABC would be £1000.  If I then only confirm and invoice 5 items (£500) for the PO, the release value of contract ABC stays at £1000 even though I would expect it to update to £500
    Therefore the release value of the contract could be incorrectly overstated if purchase orders are created against the contract but not actually invoiced/confirmed for their total value.
    Please could you confirm the correct functionality and how I could find out the the true invoice value of purchases made using a contract?

    Hi
    <u>Which SRM and R/3 versions are you using ?</u>
    <b>Meanwhile, please go through the following SAP OSS Notes, which will help in this case -></b>
    Note 622045 Net value in release overview of contract is incorrect
    Note 493519 Release quantities are not updated
    Note 1108322 BBP_CONTRACT_CHECK wrong calculation of values
    Note 1102886 Contracts: Lesser Field length for Target Value
    Note 1082548 Check of Released quantity and released value in contract
    Note 656181 Release synchronization of releases on services
    Note 874920 Currency not allowed to be changed for a 'Released' Contract
    Note 703771 Resetting release values during purchase order item deletion
    Note 643823 BLAREL: Incorrect values in service segment
    Note 519879 BBP_CTR_MAIN: No message when values in Contract are reset
    Note 520734 Target value not converted if currency is changed
    Note 528897 Documents not displayed in contract release order overview
    Note 430373 BBP_CON_MNT: No releases available
    Note 491993 Entry of contracts with target values
    Note 437491 Purchase contract: Incorrect update of the call-off values
    Note 406799 BBP_CON_MNT: Fields after contract release ready for input
    Note 398168 Purchase contract: Target value is not changed
    <b>Do let me know.</b>
    Regards
    - Atul

  • Not Able To Use Acrobat With Updates

    Hello,
    When I slipstream all the quarterly updates through 9.5.5 into an original installation of Acrobat Pro 9 Extended which is version 9.0 the installer loads as version 9.5.5 and successfully installs Acrobat as a version 9.5.5 but when I open Acrobat and accept the license agreement I immediately receive a popup message that says the program is broke and cannot be used due to license discrepancies to reinstall it then when I click OK or terminate the process that generated the message Acrobat closes. If I install Acrobat as version 9.0 and manually apply the updates through 9.5.5 Acrobat works with no problems. Any assistance in helping me resolve the problem would be appreciated.
    My reason for wanting to install version 9.0 as version 9.5.5 is I thought it might take up less space on my hard drive but it doesn't it still uses about 4.6GB of space which is significantly more than any other program on my computer. When I tried customizing the installation with the customization tool by selecting do not copy the installation files to the hard drive Acrobat still created over a gigabit of installer files in the installer folder in the Windows directory and created over a gigabit of update files in its folder under programs. Acrobat is quite a pig isn't it I am saddened to see that this is what hard drive space is being used for in world of larger hard drives. I would like to see programs like Acrobat function with 500 characters of code or less. That would be intuitive wouldn't it.
    Sincerely,  

    I have never heard of slipstreaming the updates with the original install, only with updates themselves. I suspect that may be related in some sense, but just a guess.

  • How to print the invoice(Billing document) using program RSNAST00

    Hi,
      I want to print the invoice using the program RSNAST00,
    but when i fill in selection screen with the following details,
    Output Application : V3
    Object Key : Billing Document Number
    Output Type : ZPFM
    Transmission Medium : 1
    But it is throwing an Information Message "0 outputs were processed in total (0 successfully,0 incorrectly)
    So please guide me, what are settings i have to do and what abap code i have to write to overcome this error.
    Regards,
    Shasiraj.C

    Hi,
      As you told I am using the function module RV_MESSAGE_DIALOG in my program when I directly execute my program its not printing invoice,but when i keep the break point and execute a pop up comes in which i click on the PRINT button that time it is printing the invoice.
    But I dont want to click on Print button manually, my code should automatically take care of printing also.
    Can guide me in this issue.
    Regards,
    Shasiraj.C

  • I have a problem in the program update is not showing me e-mail not my

    I have a problem in the program update is not showing me e-mail not my

    Open Terminal.app located in Utilities folder in Applications folder.
    Once Terminal is running use this command followed by hitting the return key.
    drutil eject<hit return key>
    CD/DVD should pop out.
    Lou Cioccio

  • 9.2.0 Upgrade (CPSID_50026) "Files in Use" - "Some files that need to be updated are currently in use" "Program Manager"

    I have no other applications open, when I try to update with 9.2.0, but I receive subject error message.  Task Manager shows NO Image Name called "Program Manager".  There is nothing else running, that is obvious to shut down.  Any suggestions, Please?
    rick

    Have these posted suggestions worked for anyone?  I have been using the same installation files on several different machines.  Most machines upgrade just fine but, I have a few that receive this error and I cannot seem to get past it:  "Some files that need to be updated are currently in use"  "Program Manager" is the program that the installer is complaining about.  Does anyone know what program "Program Manager" is?  I'm assuming it is an Adobe file but, why would it interfere with one of my installations and not all of them?
    I'm using the same installation files for all installs so, I don't believe that it could be my downloaded installation setup files.
    Thanks so much in advance for your assistance --

Maybe you are looking for

  • Ipod not working

    my son's ipod is not playing unless it is on the docker. i sent it to ipod and just read on the status page that there was no problem. does anyone have some help. i have trid everything

  • The heck do I create a ringtone on the latest itunes

    how the heck do I create a ringtone on the latest iTunes, I've tried for hours now an it's not working, never had a problem on earlier tunes???   an also when I right click the clip I've cut for ringtone I can't change it from a to r??  please help m

  • Nano shuts off during run then comes back on

    I purchased the Nike+ ipod kit in late December 2006. I love the product and it has been great for motivating me to run. I am currently at 400 miles and during the last week I have experienced issues with the kit and do not know what this is from. Th

  • OraclemtAsControl is not startingl

    I am getting below error hen i am starting iasconsole , Kindly help me C:\Documents and Settings\aruna>emctl start iasconsole Oracle Enterprise Manager 10g Application Server Control Release 10.1.2.0.2 Copyright (c) 1996, 2005 Oracle Corporation. All

  • Using a mouse on my i pad 2

    hi is it possible to use a mouse via the USB add on connection or Bluetooth on my apple iPod 2, and if so would this have to be an apple mouse.