G/L Document Comparing and Posting

I am developed a ALV report, wherein the requirement is i have many columns but out of which i have 3 major columns, 1 column is for Invoice Amount(wherein i am able to pick the wrbtr data of bseg) and 2nd colums is pmt made by customer(editable column) and 3rd is pending payment(1st col-2nd column).
This report is basically for collection recevied from customer, when end user enters the data in pmt recvd then automatically my 3rd colm is getting updated. For doing this i have created a button on application toolbar "POSTING" . so that when user selects rows from alv and clicks on POSTING button then the contents of these rows will go and fit into the F-28, for this i have recorded F-28 and here in f-28, the document number column is a read only column in table control, here i need to compare document number(selected from row) and document number of F-28 for correctly posting the payments like Complete Payment, Partial Payment and Residual Payment. But i could not able to do so? I am not able to compare selected row belnr with table control belnr (RFOPS_DK-BELNR) as this is a strucutre and no non-editable field.
Secondly, if i am trying to post the document through BAPI_ACC_DOCUMENT_POST, i am getting the following error.
E - RW - 609 - Error in document: BKPFF $ PEDCLNT710
E - RW - 014 - FI/CO interface: Line item entered several times.
However, in HEADER i am entering OBJ_TYPE = BKPFF, OBJ_KEY = $ AND OBJ_SYS = PDCLNT710
Can any experts, who has already faced such issues can post the solution. <removed by moderator>
In Adv Thanks
A Sustainer
Edited by: Thomas Zloch on Sep 9, 2011 7:32 PM

HI Max, I am using the following code.
REPORT  ZRFBIBL00.
PARAMETERS: p_mode TYPE char01 DEFAULT 'A',
p_bukrs TYPE bkpf-bukrs,
p_kunnr TYPE kna1-kunnr,
p_doc1 TYPE bkpf-belnr,
p_doc2 TYPE bkpf-belnr.
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
I_CLIENT = SY-MANDT
i_function = 'C'
I_GROUP = ' '
I_HOLDDATE = ' '
I_KEEP = ' '
I_MODE = p_mode
I_UPDATE = 'S'
I_USER = sy-uname
I_XBDCC = ' '
EXCEPTIONS
CLIENT_INCORRECT = 1
FUNCTION_INVALID = 2
GROUP_NAME_MISSING = 3
MODE_INVALID = 4
UPDATE_INVALID = 5
OTHERS = 6.
IF sy-subrc NE 0.
EXIT.
ENDIF.
DATA: l_auglv TYPE T041A-AUGLV VALUE 'EINGZAHL', "Posting with Clearing
l_tcode TYPE sy-tcode VALUE 'FB05', "You get an error with any other value
l_sgfunct TYPE RFIPI-SGFUNCT VALUE 'C'. "Post immediately
DATA: lt_blntab TYPE STANDARD TABLE OF BLNTAB WITH HEADER LINE,
      lt_ftclear TYPE STANDARD TABLE OF ftclear WITH HEADER LINE,
      lt_ftpost TYPE STANDARD TABLE OF ftpost WITH HEADER LINE,
      lt_fttax TYPE STANDARD TABLE OF fttax WITH HEADER LINE.
Batch Input Values
lt_ftpost-stype = 'K'."Header
lt_ftpost-count = 1. "number of Dynpro
lt_ftpost-fnam = 'BKPF-BLDAT'.
CONCATENATE sy-datum6(2) sy-datum4(2) sy-datum(4) INTO lt_ftpost-fval SEPARATED BY '.'.
APPEND lt_ftpost.
lt_ftpost-fnam = 'BKPF-BUDAT'.
CONCATENATE sy-datum6(2) sy-datum4(2) sy-datum(4) INTO lt_ftpost-fval SEPARATED BY '.'.
APPEND lt_ftpost.
lt_ftpost-fnam = 'BKPF-BLART'.
lt_ftpost-fval = 'DA'. "Same type as documents cleared via F-32
APPEND lt_ftpost.
lt_ftpost-fnam = 'BSEG-BETRG'.
lt_ftpost-fval = '7000'.
append lt_ftpost.
*lt_ftpost-fnam = 'RF05A-NEWBS'.
*lt_ftpost-fval = 40.
*APPEND lt_ftpost.
*lt_ftpost-fnam = 'RF05A-NEWKO'.
*lt_ftpost-fval = 208024.
*APPEND lt_ftpost.
Documents to be cleared
lt_ftclear-agkoa = 'D'. "Account Type
lt_ftclear-xnops = 'X'. "Indicator: Select only open items which are not special G/L?
lt_ftclear-agbuk = p_bukrs. "Example company code
lt_ftclear-agkon = p_kunnr. "Example Customer
lt_ftclear-selfd = 'BELNR'."Selection Field
lt_ftclear-selvon = p_doc1.
lt_ftclear-selbis = p_doc1.
APPEND lt_ftclear.
lt_ftclear-selvon = p_doc2.
lt_ftclear-selbis = p_doc2.
APPEND lt_ftclear.
CALL FUNCTION 'POSTING_INTERFACE_CLEARING'
EXPORTING
i_auglv = l_auglv
i_tcode = l_tcode
I_SGFUNCT = l_sgfunct
I_NO_AUTH = ' '
IMPORTING
E_MSGID =
E_MSGNO =
E_MSGTY =
E_MSGV1 =
E_MSGV2 =
E_MSGV3 =
E_MSGV4 =
E_SUBRC =
tables
t_blntab = lt_blntab
t_ftclear = lt_ftclear
t_ftpost = lt_ftpost
t_fttax = lt_fttax
EXCEPTIONS
CLEARING_PROCEDURE_INVALID = 1
CLEARING_PROCEDURE_MISSING = 2
TABLE_T041A_EMPTY = 3
TRANSACTION_CODE_INVALID = 4
AMOUNT_FORMAT_ERROR = 5
TOO_MANY_LINE_ITEMS = 6
COMPANY_CODE_INVALID = 7
SCREEN_NOT_FOUND = 8
NO_AUTHORIZATION = 9
OTHERS = 10.
IF sy-subrc NE 0.
RETURN.
ENDIF.
CALL FUNCTION 'POSTING_INTERFACE_END'
EXPORTING
I_BDCIMMED = 'X'
I_BDCSTRTDT = NO_DATE
I_BDCSTRTTM = NO_TIME
EXCEPTIONS
SESSION_NOT_PROCESSABLE = 1
OTHERS = 2.
IF sy-subrc NE 0.
RETURN.
ENDIF.
But in the above code, i am not able to pass the Amount for a particular document, Could you please let me know from the following tables, which table field can carry the amount for a document, which i passing from my alv report, which then decide whether its complete payment, partial amount or residual payment by comparing the amount of my alv report with the amount of the document (f-28) screen.
t_blntab
t_ftclea
t_ftpost
t_fttax
Will be very thankful, if you revert.
Thanks,
A Sustainer

Similar Messages

  • Document Date and Posting date are refelected in different ways

    Hi All
    stange thing is happening ::::
    For a perticular company code the Document Date and Posting Date is same in FBL5N but it is different in FB03 . Any clue y it is happening this ways ????
    Making me crazy ... please help.
    Thanks in advance
    Shweta Bhardwaj

    Hi,
    Pl check se16- table bkpf.
    Should be the one here.
    BLDAT is document date and
    BUDAT is posting date.
    In FBL5n / Fb03 u could do a F1 and display technical settings to ensure you compare same with same.
    Reg
    Hein

  • Changing document date and posting date by SE16N

    Hi All,
    an user has posted some customer documents (with tax codes) with wrong document date and posting date.
    I have to modify these data by se16n.
    In which tables I have to fill in?
    Thanks
    Gandalf

    Hi,
    It is not advisable to change the document date and posting date. Instead, try to reverse the document and post the correct one.
    Regards,
    Jigar

  • MIGO -- document date and posting date

    Dear all,
    When i call Tcode MIGO then by default it is picking document date and posting date as 25.8.9
    I want document date as current date.....
    guide me

    Check your System date..
    also check  u have the option in the header - seting-default values in MIGO Trxn

  • Error in documents parking and posting

    Hello,
    After I parked the document of vendor payment using F-65 , While I validate and post the documents using FBV0 I met a error as following:
    " Formatting error in the field BSEG-PRCTR; see next message
    Message no. 00298
    Diagnosis
    During batch input or when executing CALL TRANSACTION... USING a screen field was filled with an invalid input format.
    System Response
    Processing was terminated.
    Procedure
    The screen field has the technical name BSEG-PRCTR . The cause of the error is described in the following message.
    Correct  the appropriate BDC data."
    How can i add the field profit center in F-65 of in FBV0 while posting the parked document ?
    Thanks

    Hi Tarek
    at first please check field status transaction with OB14, OB41.
    Please also check in transaction OBC4 for the relevant field status variant and the relevant field status group in "Additional account assignments" that "Profit center is not set as required.                           
    do you have an asset line inside the document ?
    When a classicaly parked document or a document parked by the complex  posting via ENJOY is posted, a CALL TRANSACTION USING is run through. It can be compared with a batch-input session in the background.
    If a document is parked with an asset line, it might be that in the asset line account assignments were derived by parking the document, although they are not open for entry. For making sure, that the CALL TRANSACTION USING is not failing for such lines, the settings of the asset  accounting have to be disregarded and the fields have to be opend.
    Then only the fieldstatus of posting key and G/L account are regarded. Since the fieldstatus of PRCTR is defined as required, the posting fails. If it was optional, everything would have worked properly.                                                                               
    Kindly revise your field status customizing
    Kind Regards
    davide

  • Document date and posting date

    now i am posting of business transaction from apl2009 to mar 2010 in last period i am posting of  transaction  i am giving document date 31.03.2010 posting date 05.04.2010 ledger a/c number 1234 amount value 1000 Rs.giving all the details i will post the document. This amount value is affected based on the document date or posting date   can  u tell me briefly explain.

    Hello,
    Document date is just for the purpose of record, or you can treat it as an invoice date.
    SAP always check with posting date and see whether the periods are being opened for that particular date or not.
    Therefore, Posting date is the main date when posting the entry. The entry will get posted on document date only. This is nothing do with the document date and both may differ.
    Regards,
    Ravi

  • Default key date, Document date and posting date needs to be changed automa

    Hi Experts,
    The user wants to create a variant for Foreign currency valuation, wherein the default key date, Doc date and Posting date needs to be changed every month automatically. Is it possible?
    Please let me know your thoughts.
    Warm regards,
    Murukan Arunachalam

    Hi
    Please follow this process.
    Only specify fields that should be changed
    Select these fields by entering an X in the checkboxes
    Enter a U in the UPDATEFLAG field
    Always specify key fields when changing the data, including in the checkboxes
    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
    Maintain quantities and dates in the schedule line data.
    1. Minimum entry:
    You must enter the order number in the SALESDOCUMENT structure.
    You must always enter key fields for changes.
    You must always specify the update indicator in the ORDER_HEADER_INX.
    2. Commit control:
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • FBL1N - Park Document List and POsting selected lines.

    Hi everyone,
    We just recently upgraded to ECC 6.0.  We used to list park documents via FBL1N.  Once a document was ready to be posted we could list the Park Docs on FBL1N and then the ones that needed to be posted were selected   then click on the Post Document icon button.  That button is now turned off.  Does anyone know how to turn this button back on so that we may be able to post park documents?
    Thanks for your help.
    Dan Goodhart
    Reposted this in ERP Financials!
    Edited by: Daniel Goodhart1 on Jul 1, 2008 4:30 PM

    Moved the thread to ERP FInancials so there is no need to keep this open in this forum.

  • Document parking and posting

    Dear Experts,
    Please guide me,  i have one issue, my client is asking one user park the document and another user will post the document, 
    how to map it,   in f-02 can we implement this process. 
    please guide me,
    Regards
    Chandu

    use level wise release authorisation for parking document
    fin a/c -.> fin global settings -> Document -> Document Parking (configure the complete node)
    use this help  :
    http://help.sap.com/saphelp_46c/helpdata/en/01/a9ceb5455711d182b40000e829fbfe/content.htm
    Rajesh

  • Error in document date and posting date

    hi guru's
    while doing vendor creation in XK01, i m not getting the data screens like address, ..etc.i m getting error..posting period not open". what does it mean..
    What date i need to give in both fields...?
    can anybody send a set of data for me to create a vendor to test for my bdc/lsmw?
    can any help me step by step vendor creation in xk01,
    I am getting this below....
    Posting period 001 2008 is not open
    Message no. F5201
    Diagnosis
    Period 001 of fiscal year 2008 is not open for posting for the variant of posting period 1000.
    System Response
    Processing cannot be continued.
    Procedure
    The error can have several causes. In order to eliminate the error, proceed as follows:
    1. Check whether the posting date was entered correctly. The system determines the posting period by means of the date.
    2. Check whether the required posting period is open for posting for the variant of posting period 1000 and account type +. Make sure that the period is open for posting.
    To do this, specify a period interval in which the required period for the variant of posting period 1000 and account type + is contained.
    Proceed
    thanks
    Edited by: Raji on Jan 23, 2008 8:21 AM
    Edited by: Raji on Jan 23, 2008 8:37 AM

    Goto
    T.code: OB52...open the posting period for your  posting period variant...
    Regards
    s.Baskaran

  • How to identify Parked and Posted Documents in GL Line Item Report

    Is there any way to identify parked and posted documents in GL Line Item Report S_ALR_87012282? If i tick the parked documents in the further selection tab in the selection parameter, report will list all documents (parked and posted).
    There is no available field in the layout. Is there any other way?
    Thanks!

    HI,
    The other way to know the parked document details
    use tcode: FBV3 - Display
    OR
    you can go to SE16 and enter table name VBKPF -Document Header for Document Parking
    BSTAT = V
    V = parked document
    and ececute u will get the details of parked document.
    Edited by: Manohar Mathkunti on Sep 13, 2008 11:11 AM

  • Period and posting month

    hi,
    i need to manually post entry where document date and posting date in march and period in april. is that possible?
    i tried to enter differently but system changes the period to same as posting month.
    please advise.
    thanks

    Hi,
    If posting date is 09.04.2009 and your fiscal year is (March to April) your posting period is 1.
    The system is doing the correct thing.
    What you are doing is not possible.
    Rgds
    Harmees

  • GR/IR from miro document and posting date.

    Hi experts,
    Is there any proper way to selecting data.
    My purpose is getting GR/IR on Miro Document and Posting date basis.
    THE CODE IS.
    TABLES : bkpf, rseg, bseg.
    DATA : BEGIN OF it_bkpf OCCURS 0.
            INCLUDE STRUCTURE bkpf.
    DATA : bbelnr TYPE bkpf-belnr,
          bgjahr TYPE bkpf-gjahr.
    DATA : END OF it_bkpf.
    *data : it_bkpf like bkpf OCCURS 0 WITH HEADER LINE.
    DATA : it_rseg LIKE rseg OCCURS 0 WITH HEADER LINE.
    DATA : it_bseg LIKE bseg OCCURS 0 WITH HEADER LINE.
    DATA : bbelnr TYPE bkpf-belnr.
    DATA : bgjahr TYPE bkpf-gjahr.
    DATA : bawkey TYPE bkpf-awkey.
    data : dmbtr1 type bseg-dmbtr.
    data : dmbtr2 type bseg-dmbtr.
    PARAMETERS : p_budat LIKE bkpf-budat.
    SELECT SINGLE * FROM bkpf
      WHERE budat = p_budat
      AND blart = 'RE'.
    WRITE :/ bkpf-awkey(10).
    WRITE :/20 'I/R'.
    WRITE :/20 sy-uline(30).
    SELECT * FROM bseg
      WHERE belnr = bkpf-belnr
        AND gjahr = bkpf-gjahr.
      IF bseg-shkzg ='H'.
        bseg-dmbtr = bseg-dmbtr * -1.
      ENDIF.
        dmbtr1 = dmbtr1 + bseg-dmbtr.
      WRITE :/20 bseg-belnr, bseg-dmbtr.
    ENDSELECT.
    bbelnr = bkpf-awkey(10).
    bgjahr = bkpf-awkey+10(4).
    SELECT SINGLE * FROM rseg
      WHERE belnr = bbelnr
      AND gjahr = bgjahr.
    SKIP 2.
    CONCATENATE rseg-lfbnr rseg-lfgja INTO bawkey.
    SELECT SINGLE * FROM bkpf
      WHERE awkey = bawkey.
    WRITE :/20 'G/R'.
    WRITE :/20 sy-uline(30).
    SELECT * FROM bseg
      WHERE belnr = bkpf-belnr
        AND gjahr = bkpf-gjahr.
      IF bseg-shkzg ='H'.
        bseg-dmbtr = bseg-dmbtr * -1.
      ENDIF.
        dmbtr2 = dmbtr2 + bseg-dmbtr.
      WRITE :/20 bseg-belnr, bseg-dmbtr.
    ENDSELECT.
    dmbtr1 = dmbtr1 - dmbtr2.
    skip 2.
    write :/ dmbtr1.

    self solved

  • Multiple Forms in a Flash Document and Posting Using ASP

    Hello everyone!
    I have some what of a dilemma on my hands. I am creating
    multiple forms in one document using Flash and need them to post
    using ASP script. I have been researching this for the last six
    days, and I have had NO luck. I have noticed that all the
    information that I have found is for one form, not more than one.
    What I have so far is the Flash document, with 4 forms. The
    basic idea is that a user chooses from a drop down menu (the
    combobox) a location, and depending on the location chosen, it
    takes the user to another frame in the flash document. The forms
    (all their own movie clip) contains a name field, a department
    field, and either a manager name a userID field or an employee
    number as well as the basic buttons for submitting the form or
    resetting the form.
    So far what I have working is the drop down menu (combobox)
    taking me to the proper frame and it shows the appropriate form.
    The reset button clearing the form (deleting any information that I
    have imputed into the input fields), but I have absolutely NO idea
    how to get the submit button to work (I did manage to get it to
    send me a message if there was nothing in one of the input fields),
    and NO idea how to get the information to the ASP file.
    Where there are 4 forms do each of them have to have their
    own ASP file attached to them, or can I use one?
    If anyone knows a site that deals with multiple forms in one
    SWF and posts using ASP that would be greatly appreciated, or if
    you know some actionscript that could be helpful.
    Thank you all in advance.

    That would be part of my problem, I really don't know ASP,
    and I am flying by the seat of my pants.
    The current script I have for the ASP file is:
    <% @Language = "VBScript" %>
    <%
    Option explicit
    Dim strfullName
    Dim strdeptName
    Dim strmanagerName
    Dim strobjeemail
    Dim strlocation
    strfullName.Request.Form("fullName_txt")
    strdeptName.Request.Form("deptName_txt")
    strmanagerName.Request.Form("managerName_txt")
    strlocation.Request.Form("locationName")
    Set strobjemail = CreateObject("CDO.Message")
    strobjemail.From = "[email protected]"
    strobjemail.To = "[email protected]"
    strobjemail.Subject = "Program from " + strlocation
    strobjemail.Body = "This user has completed this progrmam
    from " + strlocation & Chr(13) & Chr(10) & "Name: " +
    strfullName & Chr(13) & Chr(10) & "Department: " +
    strdeptName & Chr(13) & Chr(10) & + "Manager: " +
    strmanagerName
    strobjemail.Send
    Set strobjemail=nothing
    %>
    The AS code that I have so far is:
    function formValidationChecks(){
    if (fullName_txt.length==0){
    status_txt.text = "Please enter your Name";
    else if (deptName_txt.length==0){
    status_txt.text = "Please enter your Department";
    else if (managerName_txt.length==0){
    status_txt.text = "Please enter your Manager";
    else {
    status_txt.text = "Thank You!";
    variables.fullName_txt = fullName_txt.text;
    variables.deptName_txt = deptName_txt.text;
    variables.managerName_txt = managerName_txt.text;
    varLoader.load(varSend);
    trace("-----");
    trace("Name: "+fullName_txt.text);
    trace("Department: "+deptName_txt.text);
    trace("Manager: "+managerName_txt.text);
    trace("Form validated");
    submit_btn.onRelease = function(){
    status_txt.text = "";
    if(formValidationChecks()){
    var lv = new LoadVars();
    lv.fullName_txt = form.fullName_txt.text;
    lv.deptName_txt = form.deptName_txt.text;
    lv.managerName_txt = form.managerName_txt.text;
    lv.sendAndLoad("mail.asp", lv, "POST");
    reset_btn.onRelease = function()
    fullName_txt.text = "";
    deptName_txt.text = "";
    managerName_txt.text = "";
    So far my reset button clears everything, and the submit
    button is tracing the content in the form fields, but it's not even
    grabbing the asp page.
    Any suggestions? Even pages that have tutorials that are in
    the form of a video.
    Thanks

  • I just signed up for Adobe Reader and want to create a document I can post  on my facebook page.  I do not see Acrobat on my microsoft word.  How do I do this?

    I just signed up for Adobe Reader.  I wanted to be able to create a document and post it on my facebook page.  How do I do this?

    Hi terryjeanlaw,
    Using Adobe Export PDF, you can export PDF files to Word document (.docx and .doc),  Excel document (.xlsx), Powerpoint document (.pptx), Rich Text Format document (.rtf) and Image (.jpg, .tiff, .png). In order to convert to PDF, you need to either purchase PDF Pack (Reliably Create PDFs, Convert PDFs, & Merge PDFs Online | Adobe PDF Pack) or Adobe Acrobat XI (PDF creator, create PDF | Adobe Acrobat XI).

Maybe you are looking for

  • What Can I Do About This Error?

    I have 2 form programs. The first program is the main menu. The user pushes a button and the program transfers control to a second form program. On this second screen, the user enters an SSAN. At the bottom of the screen there is a message which says

  • Exporting PDF results in inconsistent Colours in inDesign

    Hi Everyone! I'm trying to export a document for digital print which consists primarily of a embeded PSD. I have two spreads, one with objects on top of the PSD file and one without. The PSD backgrounds on these two spreads are nearly identical, but

  • Want to open a 2 year contract

    i'm tired of my father complain about the high cell phone bill so i plan to sign a 2 year contract. i want to get an iphone 4 but i am not due for an upgrade until october of this year. right now under my father's plan, i have 5000 texts a month whic

  • Problem in Pricing routine

    Hi Sap Gurus, Currently I am dealing with one pricing problem.Pricing in item level is working but unfortunately pricing in Header level is not working.Any thoughts or concerns will be highly rewarded and appreciated.Thanks!                        ch

  • How to send a notification or warning to my iphone because my iphone was lost ?

    How to send a notification or warning to my iphone because my iphone was lost ? Without icloud because i think the person oledi sign out .