FBE2: BAPI or FM for Changing and Deleting Payment Advice

Hi,
I am looking for BAPI or FM for changing & deleting payment advice as we can accomplish from FBE2.
This is EC 6.0 upgrade issue for not be able to post using CALL TRANSACTION in background mode.
I tried the below FM's in the Function group  FARMATCH, but all have them have the follwing code to select payment advice Header Table [AVIK].  
SELECT * FROM AVIK INTO TABLE LT_AVIK WHERE (LT_WHERE) AND
                                              AVSID LIKE '09%'.    "This is not the case for my requirement
FARMATCH_CHANGE_PAYMENT_ADVICE               
FARMATCH_DELETE_PAYMENT_ADVICE               
I found another set of FM's  REMADV_CHANGE  &  REMADV_DELETE but I am not sure if i can
achieve the same functionality of change and delete that we can do using FBE2.
If anyone had similar scenario, Appreicate your feedback.

Below is a sample code.
I am able to delete the details....
Take a look...:)...imp to add wait for few seconds
REPORT z.
PARAMETER: vbeln TYPE vbak-vbeln.
PARAMETERS: fplnr TYPE fplnr.
DATA: t_zfpla TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_zfplt TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fpla_new TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fpla_old TYPE STANDARD TABLE OF fplavb WITH HEADER LINE.
DATA: t_fplt_new TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
DATA: t_fplt_old TYPE STANDARD TABLE OF fpltvb WITH HEADER LINE.
*DATA fplnr TYPE fplnr.
IF NOT vbeln IS INITIAL.
  SELECT SINGLE rplnr INTO fplnr FROM vbak WHERE vbeln = vbeln.
ENDIF.
CALL FUNCTION 'BILLING_SCHEDULE_READ'
  EXPORTING
    fplnr = fplnr
  TABLES
    zfpla = t_zfpla
    zfplt = t_zfplt.
LOOP AT t_zfpla.
  MOVE-CORRESPONDING t_zfpla TO t_fpla_old.
  t_fpla_old-updkz = 'D'.
  APPEND t_fpla_old.
ENDLOOP.
LOOP AT t_zfplt.
  MOVE-CORRESPONDING t_zfplt TO t_fplt_old.
  t_fplt_old-updkz = 'D'.
  APPEND t_fplt_old.
ENDLOOP.
BREAK-POINT.
*CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
   fpla_new = t_fpla_new
   fpla_old = t_fpla_old
   fplt_new = t_fplt_new
   fplt_old = t_fplt_old.
DATA fpltr TYPE fpltr.
CALL FUNCTION 'BILLING_SCHEDULE_MAINTAIN'
  EXPORTING
  I_FPLA           =
  I_FPLT           =
   i_upd_fpla       = 'X'
   i_upd_fplt       = 'X'
    i_fplnr          = fplnr
IMPORTING
  E_DATALOSS       =
  E_UPD_FPLA       =
  E_UPD_FPLT       =
   e_fplnr          = fplnr
   e_fpltr          = fpltr
TABLES
    fpla_new = t_fpla_new
    fpla_old = t_fpla_old
    fplt_new = t_fplt_new
    fplt_old = t_fplt_old.
WAIT UP TO 2 SECONDS.

Similar Messages

  • Can u tell me any predefined BAPI for change and creation of Material

    Hi,
        Can anybody tell me  predefined BAPI for change and creation of Materialmasterand Pricing?
    Thanks & regards,
    Gopianne.

    you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
    When changing material master data, you need enter only the material
    number.
    In the header data, you must select at least one view for which data is
    to be created. Depending on the view selected, you must maintain other
    required parameters. If you do not enter values for all of the required
    parameters, the method is ended with an error message.
    The corresponding fields in the tables (such as CLIENTDATA) must first
    be supplied with data by the calling program. An indicator must also be
    set for each of these fields so that the data is written to the database
    by the method. This requires the calling program to supply the
    corresponding field with the indicator in a checkbox table (for example,
    CLIENTDATAX). Checkbox tables exist for tables that do not contain any
    language-dependent texts (MAKT, MLTX), International Article Numbers
    (MEAN), or tax classifications (MLAN). Several data records for a
    material can be created in these tables.
    regards
    vivek
    reward points if it helps

  • Disabling 'Change' and 'Delete' button in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments  ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    Probably you have uncommented the call to super class when you reimplement the method on child class (z class)
    I just implement the same thing now and it worked for me. Take a look:
    1 - Modify the SGOSATTR table by SM30, just write a Z class (in my case CL_GOS_SRV_ATTACHMENT_CREATE) .
    2 - Create/inheridt a subclass (not a copy) in SE24 of the standard class.
    3 - Implement the method CHECK_STATUS in the z class. Note that the call to method on super class came commented. You only uncomment if you want to also execute a standard code in the super class.
    Here is my code:
    method CHECK_STATUS.
    NOTE - In my real implementation I have uncommented the code below because I want do standard code be executed before my own check.
    *CALL METHOD SUPER->CHECK_STATUS
    EXPORTING
       IS_LPORB  = IS_LPORB
       IS_OBJECT = IS_OBJECT
    IMPORTING
       EP_STATUS = EP_STATUS
       EP_ICON   = EP_ICON
      Check for BUS2012 = Bussinnes Object for Purchase Order
      IF IS_LPORB.TYPEID = BUS2012
      Check authorization and disable create attachment item if the user does not have authority...
    IF IS_LPORB-TYPEID = 'BUS2012'.
    AUTHORITY-CHECK OBJECT 'Z_MM001' ID 'ACTVT' FIELD '01'.
      IF sy-subrc <> 0.
        ep_status = mp_status_inactive.
      ENDIF.
    ENDIF.
    endmethod.
    Regards,
    Alexandre

  • Disabling 'Change' and 'Delete' buttons in Attachment List in ME52N

    Hi Friends,
    The reuqirement is this:
    A user attaches doucments ( using the Generic Object Services to attach document ) while creating/changing Purchase Requisition (ME51N / ME52N).
    Now when any user goes to see the docuemnts attached to the PR, he selects the 'Attachement List' from the context menu, he should only be able to read it and should not be allowed to change or delete the document. For this we need to disable the 'change' and 'delete' buttons from the toolbar.
    Awaiting your response.......
    Regards,
    Fawaz

    Hi,
    I have solved the issue Alhamdulillah by the foll. method:
    1. Copied CL_GOS_SRV_ATTACHMENT_LIST to ZCL_GOS_SRV_ATTACHMENT_LIST
    2. In ZCL_GOS_SRV_ATTACHMENT_LIST there is a method called: CHECK_STATUS. I overwrote with my check;
    on_mode_changed( 'D' ). --- For display
    on_mode_changed( 'E' ). --- For edit mode.
    3. In SGOS tcode, added VIEW_ATTA to point to ZCL_GOS_SRV_ATTACHMENT_LIST
    Regards,
    Fawaz

  • Will downloading firefox change and delete my current internet?

    i have a apple mac laptop and i want to download firefox for games on facebook but will downloading firefox change and delete my current internet?
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_4_11; en) AppleWebKit/533.16 (KHTML, like Gecko) Version/4.1 Safari/533.16

    In short, no.
    You can set Firefox to be the default browser, but this is a free choice.
    Installing Firefox will in no way interfere with other installed browsers.

  • Insert ,Change and Delete  records  in OO ALV

    Hi All,
    This is regarding the functionlaties  Insert ,Change and Delete records  in OO ALV ,
    I have gone through the threads posted here and checked the standard  program BCALV_EDIT_04,
    but still I am not able to capture the Deleted and Inserted records,
    as  I am new to OO ALV,can some one help me out pls.
    Thanks and regrds,
    Sree.

    Hi Sree,
    A lot of material is available on SDN.
    Please see this link. This link contains good example of insertr, delete records in OOPS ALV.
    [OOPS ALV.|Re: Insert ,Delete & Add a row in ALV;
    May it helps you.
    Regards.
    DS.

  • Search file for text and delete the found text.  How?

    I need to know how to search a file for text and delete the found text. I think grep will let you do this but not sure of the syntax.

    Hi Dmcrory,
       In addition to what Camelot and nobody loopback point out, one must also consider the fact that UNIX text tools are largely line based. You also fail to tell us for what kind of text you are searching. If you are looking for multiple words, there's a very good chance of finding the expression wrapped onto different lines. With hyphenation, even single words can wrap to multiple lines. Tools that search line-by-line will miss these unless you use multiline techniques.
       Multiline substitutions require that you write "read-ahead" code for the command line tool that you're using and that you take that into account in the substitution. Given how you want the results to be printed out, you may also want to preserve any newlines found in the match, which is even more difficult. That could bring up the subject of line endings but that's a completely different topic.
       I apologize if this sounds discouraging. Multiline searches aren't needed that often and in most of those cases, exceptions can be dealt with by hand. I just didn't want you to get surprised by it. To give you an idea of how easy basic substitution is, have a look at Tom Christiansen's Cultured Perl: One-liners 102 and One-liners 101. Both have some "in-place" substitution examples.
    Gary
    ~~~~
       MIT:
          The Georgia Tech of the North

  • Hey guys my iphone 5 sync and at step 6, it say waiting for changes and then it cancel syncing.

    hey guys my iphone 5 sync and at step 6, it say waiting for changes and then it cancel syncing.

    You meant iTunes 11.1.2?
    Try disable anti-virus and firewall and try again. You can switch back on after you've finished.

  • Bapi or method for opening and closing quantity of material

    Hi Friends,
    Is there any Bapi or Method for Opening and Closing Balence quantity of material
    plz tell me if any.
    Thanks And Regards.
    Devalla T Kr.

    Hi ,
    try this one.
    https://www.sdn.sap.com/irj/scn/wiki?path=/pages/viewpage.action&pageid=15856
    from this code u need to ignore Ztables.
    regards
    Prabhu

  • Bank Fees for Incoming and Outgoing Payments

    Hi All,
    What's the best way to record the bank fees for incoming and outgoing payments? Can it be done directly in the payment, or can it only be done as a manual journal entry?
    Many thanks,
    Myran

    >
    Poonkodi Kaliappan wrote:
    > Hi,
    >
    > In Outgoing/Incoming payment payment means if you enter the actual amount in the bank transfer tab in the cash tab delete the cash account and select bank charges (expense) account put bank charge in total field and added it. In accounts point of view check this please.
    Hi,
    Thanks for your response. I tried doing as you suggested. In Bank Transfer I reduced the Total amount by the sum of the bank charge ($20), and then I selected the bank expense account in G/L Account under Cash, and entered the sum $20. Now the Overall Amount equals the amount of the invoice being paid.
    However as I entered the bank charges account I got the following message:
    A cash account is required. Choosing a different account may cause inaccuracies in the cash flow report
    Can you tell me if I can ignore this?
    Many thanks,
    Myran

  • Bapi or FM to create,change and delete Contact persons for vendors

    Dear Experts,
    We are replicating the Contact persons details from SUS(SRM) to ECC, When a Contact person is create,changed or deleted the data should be replicated in ECC. We are doing custom development to do this, I need to know is there any function module or Bapi which I can use to create , change or delete the contacts persons for a vendor.
    I tried using BAPI_ADDRESSCONTPART_CHANGE, BAPI_ADDRESSORG_SAVEREPLICA for changing but its doesn't covers few fields like time zone etc. For deletion I tried  WY_KNVK_SINGLE_DEL_FROM_BUFFER its too not helping me .
    Please let me know is there any bapi or fm to do these process or we can go for BDC.
    Thanks & regards,
    Santhosh.R

    Hi Santosh,
    Can you please tell me what Business Scenario is asking you to consider the Time Zones .
    If you know the Customer Number you can very well get the country and there are various FM's to get the time zone based on a country .
    Now Call the FM (as wrote by you ) based on the TIme Zone condition,
    Please enlighten me if i am incorrect.
    Thanks
    Sri

  • Event for Material Change and Delete

    Experts,
      Is any Standard events available to trigger the workflow when the material is changed or deleted from the material master.

    First check any event is getting Triggered or not. If yes job done use it if not then find user Exit from which you can trigger event by writing code.
    You can make use of FM
    SAP_WAPI_CREATE_EVENT
    SWE_EVENT_CREATE
    to trigger custom event.
    You can check this code
    FUNCTION zwf_process_honorarium .
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_EMP_NUMBER) TYPE  PERNR_D
    *"     VALUE(I_EMP_NAME) TYPE  ENAME
    *"     VALUE(I_BEGIN_DATE) TYPE  BEGDA
    *"     VALUE(I_CURRENT_SAL) TYPE  ANSAL
    *"     VALUE(I_HON_SAL_GRD) TYPE  TRFGR
    *"     VALUE(I_HONORARIUM_SAL) TYPE  ANSAL
    *"     VALUE(I_JUSTIFICATION) TYPE  CHAR100
    *"     VALUE(I_PERCENT_DUTY) TYPE  INT1
    *"     VALUE(I_END_DATE) TYPE  ENDDA
      INCLUDE <cntn01> .
      DATA:i_emp_details TYPE STANDARD TABLE OF p0001,  "Employee Details
           wa_request    TYPE p0001,                    "Workarea for Employee details
           v_country_grp TYPE molga,                    "Country SubGrouping
           v_object_key  TYPE sweinstcou-objkey,        "Key for the buisness object ZWOBUSHONO
           v_request_det TYPE zwf_ms_honorarium.        "PCR data
      CONSTANTS: c_bo_hono     TYPE swo_objtyp VALUE 'ZWOBUSHONO',
                 c_event_hono  TYPE swo_event  VALUE 'HonReq',
                 c_infy_type_1 TYPE infty      VALUE '0001'.
    Event Container declaration
      swc_container i_event_cont.
      swc_create_container i_event_cont.
    Reading the INFO TYPE 0001 to obtain the
    Employee details
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = i_emp_number
          infty           = c_infy_type_1
          begda           = sy-datum
          endda           = sy-datum
        TABLES
          infty_tab       = i_emp_details
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
    SY-SUBRC check is not required as the error
    handelling will be done by WorkFlow rule
    resolution.
    Filling up the PCR data in structure v_request_det
    which will be passed to event container.
      v_request_det-emp_number     = i_emp_number.
      v_request_det-name           = i_emp_name.
      v_request_det-begin_date     = i_begin_date.
      v_request_det-current_sal    = i_current_sal.
      v_request_det-hon_grade      = i_hon_sal_grd.
      v_request_det-hon_grd_sal    = i_honorarium_sal.
      v_request_det-justification  = i_justification.
      v_request_det-percent_duty   = i_percent_duty.
      v_request_det-end_date       = i_end_date.
      CLEAR wa_request.
      READ TABLE i_emp_details INTO wa_request INDEX 1.
      IF sy-subrc = 0.
      Retrieving the Country SubGrouping for the employee
        SELECT SINGLE molga
          FROM t001p
          INTO v_country_grp
         WHERE werks = wa_request-werks
           AND btrtl = wa_request-persk.
      ENDIF.
    Sending the relevant data to event container
      swc_set_element i_event_cont 'RequestData'     v_request_det.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'PersonalArea'    wa_request-werks.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'CountryGrouping' v_country_grp.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      swc_set_element i_event_cont 'EmpSubGrp'       wa_request-persk.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
    Raising the event to trigger the workflow
      v_object_key = i_emp_number.
      CALL FUNCTION 'SWE_EVENT_CREATE'
        EXPORTING
          objtype           = c_bo_hono
          objkey            = v_object_key
          event             = c_event_hono
        TABLES
          event_container   = i_event_cont
        EXCEPTIONS
          objtype_not_found = 1
          OTHERS            = 2.
      IF sy-subrc <> 0.
    No Processing needed.
      ENDIF.
      COMMIT WORK.
    Thanks
    Arghadip

  • BAPI or FM for changing Purchase Order

    Hi,
    Does anybody know a BAPI or FM to change Purchase Order item details. I looked for  a BAPI but only found for creating and listing.
    thanks.

    I think this is becuase the BAPI for PO change has not been "released". If you use transaction BAPI, then click the filter button, then select "All", the PO change bapi will appear int he MM-> purchasing-> purchase order hierarchy. (BAPI_PO_CHANGE)
    Although it is not officially "released", neither is the function module to do the same task. We use the BAPI on a regular basis, and it works fine. I think unreleased just means you will get no support if you use it, and SAP can change it at any time.
    I am not sure what makes a BAPI go from un-released to released...

  • Need different processes for Update and Delete buttons

    I'm using a customized version of the Issue Tracker sample application. I've added a table called project_person(project_id,person_id) so that a project can have multiple people assigned to it and so that one person can have multiple projects. I have a form report that lists all of the projects with an edit link which opens one project. On the individual project page, there are page items for each of the columns in the project table and a item for the person assigned to the project--this item is pulled from the separate project_person table. I have two buttons--Delete and Apply Changes. If you click on Apply Changes, the project table should be updated and then the project_person table if the assignment was changed. If you click on Delete, it should delete the project_person record first and then delete the project record. I created a new conditional pl/sql process that updated two tables if 'Apply Changes' button is cliicked. I then created a separate conditional process when the Delete button is clicked. This conditional process checks to see if a record in the project_person table exists, and if so, delete the record. Then delete the project record.
    The update process works fine. The delete process reloads the list of projects with a success message at the top without actually doing a delete and I have no idea why. Does anyone have any suggestions?
    I am not using the automatic row processing, but should I? Or is it ok to have the two separate conditions for the two different buttons?

    Hello again Miah,
    Check the "Sequence Number" for your processes. Typically, APEX will increment by 10, each time you create a Page Process as I recall. You can set this to be any number you want; even if you duplicate the sequence number (ie: you can have multiple Sequence 10 processes).
    Make sure that your Delete process is firing properly and walk through the logic in the source code to be sure that any "IF" or "WHERE" logic is satisfied. For example:
    Begin
      delete from emp_table
        where 1=2;
    End;If this was your page process code - you would receive a SUCCESS message because the PL/SQL code executed successfully, even though nothing will be deleted since 1 will NEVER equal 2.
    So, check Delete Source carefully.
    {size:14}{color:green}Can you post the code from your delete page process here?{color}{size}
    Good luck,
    Don.
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone! :)
    Edited by: dfcii© on Oct 27, 2009 10:55 AM

  • Bapi/Fn Module for changing Routing

    Hi All,
    Currently I am working on creation and change of Routing using BAPI's . I could find the routing create bapi BAPI_ROUTING_CREATE and it is working fine.
    Can some one help in identifying the BAPI/Function Module for modifying /changing the Routing. For changing details in routing currently we are using t code CA02.
    Thanks ,
    Vengal Rao.

    Hi Joerg,
    Thanks for the function module. A small issue I am facing. when executing it some data in it I am getting error message
       as follow: HIGH_MSGTY   -   E , ERROR_FROM     -   1, ERROR_TO       -      1, OBJ , D_IND         -  0000000001 .
    Please guide me how to identify this error message.
    Thanks,
    Vengal Rao.

Maybe you are looking for

  • Error Propagation on a 2 way receive port

    HI, we have a 2 way receive port . The subscribing send port makes a web service call to a third party and the received response goes back to the client via the received port. All good if things are working! In case of any exception on the send port

  • How can I invoke the web service manually in websphere?

    Hi I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD. My webservice

  • Problem in saving contract

    Hi, Can anybody help me as i am creating the contract and saving the contract while activating the contract I am getting the error "Generation error in object cash flow for Contrct 2000/4". I have already check the cash flows in rental object as well

  • AIM service error wont allow me to stay connected

    An AIM service error occurred. The server message was: Serv:RequestTimeout.. It tells me this when i try to talk to someone.. It tells other people i am available and they instant message me but i dont recieve them.. I need help, this is a brand new

  • I accessed the page protected by ADF security using direct url access attac

    hi, I played with my application which is based on SRDemo code (with added ADF security handling protection of resources) using direct url access scenarios. I was able to access a protected page as authenticated but not authorized user. I'll try to e