Queries - FI Document FI/Fiscal Data

Hi,
I've created an infoset (SQ02) which connects the table BSEG to BSET with two additional fields:
ZHWBAS with the following code:
SELECT FROM HWBAS BSET INTO ZHWBAS
  WHERE BUKRS = BSEG-BUKRS
    AND BELNR = BSEG-BELNR
    AND GJAHR = BSEG-GJAHR.
ENDSELECT.
ZHWSTE with the following code:
SELECT FROM HWSTE BSET INTO ZHWSTE
  WHERE BUKRS = BSEG-BUKRS
    AND BELNR = BSEG-BELNR
    AND GJAHR = BSEG-GJAHR.
ENDSELECT.
Unfortunately, if a document has more than one records in BSET, with my query I can only extract one record. How can I extract all the records of BSET associated with the specific FI document?
Thanks.
Best regards.

Hi,
excuse me but i'm not an expert of ABAP.
i've tried with the LOOP AT, but SAP requested "VERSION..." after BSET...
I don't know how set this problem.
Thanks.
Antonio

Similar Messages

  • Hide document or posting date?

    in fb50 screen
    there is a posting date and document date is there any way to hide any one of them coz
    the users forget to change both of them (change one of them and forget the other)

    Hi,
    Document date is the date of creation of original document.
    Posting date is the date when you want the document to be actually posted. Choosing posting date depends on the period that is open for posting. So, the period and fiscal year updating the accounts specified in the document or cost element are derived from the posting date.
    You need both of them. Its business decision which dates has to be filled in each.
    Users have to be oriented to get used to this and input the right date as per their business need.
    Hope you find this helpful.
    BR
    Munair

  • 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

  • Error message: "This document contains photoshop data which appears to be damaged."

    I saved the file I was working on by choosing "Save" from the "File" menu. Unfortunately after 10 min as I saved my work  my PC had "issues" and needed to be manually shut off. I was trying to open the psd file after restarting my computer and I get this error message: "This document contains photoshop data which appears to be damaged. Continue and ignore the photoshop data?" I clicked okay and then I get just a black screen. No Layers or any pictures.
    I have tried to preview in Graphic Converter, in Illustrator, in ACDSee, etc... Nothing... I just get a black screen. Also, I have tried file recovery programs: Stellar Phoenix PSD Repair V1.0 and Advanced PSD Repair v1.4
    The program Stellar Phoenix PSD Repair V1.0 was able to recover only BMP picture 3.4 KB, it is so tiny that you can't see anything on the picture.
    I also have tried to install plugin "psdrecover", for Adobe Photoshop. Unsuccessfully for some reason. The plugin does not want to be installed into the "plugins" folder. I did follow the instructions.
    I am using Photoshop 6 version and Windows 7 operating System.
    I am in dire need of help. I've been working on it for days. Is there any way to recover that file back?

    I hate to be the bearer of bad news, but you're likely out of luck.  We almost never hear of anyone recovering image data from a damaged PSD.
    Some thoughts:
    1.  Set up backups.
    2.  Get in the habit of saving your master file in several different locations as you work on it.
    3.  Consider upgrading to Photoshop CS6, which auto-saves your work in the background.  I'm not sure whether it would have recovered the data in your particular case, but it's possible.
    4.  Don't feel bad - go back and do the image again, and I'll bet it comes out even better in less time.
    -Noel

  • Stop Creation of Billing Document in Future date

    Hi Experts
    We create Billing Document in VF01 on basis of Outbound delivery, system create Billing Document in current date.
    but when we choose future date that time also system create billing Document l in future date .
    Issue : While create Billing Document in future date system should not allow to do the same.System should give error message while creating Billing document in future date.
    please reply as early as possible
    Regards
    Pash@SD

    Hello
    Refer following link:
    - Restrict from entering future billing date
    Thanks & Regards
    JP

  • How to get document library column data through Programmatically

    HI,
    I have one scenario..here i have to get the particular document library column data...Like fetching List data.
    In LIST We will do LIke this:
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
                using (SPWeb web = site.OpenWeb())
                    SPList list = web.Lists["ListName"];
                    SPListItem item = list.Items.Add();              
                    item["Title"] = txtTitle.Text;
    item.update()
       But here we want to fetch  data from document library column data....
    I did following way....can any one suggest me....
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
                using (SPWeb web = site.OpenWeb())
                    SPDocumentLibrary documentLib = web.Lists["DocumentName"] as SPDocumentLibrary;
                    SPListItem items = documentLib.Items.Add();
    Thanks.....

    Hi,
    The code that you have posted is adding data to the list or document library. Do you want to add or fetch data from or to document library?
    You can refer following link for Inserting/Updating documents in document library:
    http://blogs.perficient.com/microsoft/2009/04/working-with-documents-stored-in-sharepoint-document-library-programmatically/
    For fetching data from document library, you can use following code:
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    string documentLibName = "Doc_Lib_Name";
    SPFolder docLibrary = web.GetFolder(documentLibName);
    foreach (SPFile file in docLibrary.Files)
    var customColValue = file.Item["Custom_Column_Name"];
    Hope this helps!
    Regards, Shruti

  • GR document and posting date issue for initial stock upload are overidden

    Hi all
    Loading initial stock into the system using standard idoc message type MBGMCR and basic type MBGMCR02.
    We are trying to post the intial stock upload with posting and document dates in past with this idoc. The Idoc is accepted with these dates but while posting the system is overiding these dates and posting the document with system date. Any clue as to what is happening?
    Regards,
    Amit

    Hi Jurgen
    I am aware about the posting being possible till the last period.
    But the system over-riding the posting and document dates in the IDoc even if I chose previos day's date in the current period. The dates in the IDoc are correct to be in the past. The IDoc is accepted by the system with the document and posting dates in the past.
    But dates in the document after posting are system dates. Very unsual. Please let me know the reasons.
    Thanks for the reply.
    Cheers,
    Amit

  • Document on XML date rules and date management

    Hi,
    Could you Please send a document on XML date rules and date management. I really in need of it. You may send it to [email protected]

    Hello
    Could you please email this to me:  [email protected]
    Thanks in advance
    Kevin

  • IWS 6.0 SP1, document contained no data

    Hello all,
    I'm working on iWS6.0 SP1 on Solaris 8 and when I start the administration
    console (Netscape Communicator, port 7777) I see this Netscape error: "the
    document contained no data. Try again later or contact the server
    administrator", and the adminitratotion server restarts. Log errors shows
    this output:
    [13/Dec/2001:09:11:05] warning ( 680): for host 194.158.64.17 trying to GET
    /https-admserv/icons/dgLeftTab.gif, send-file reports: error sending
    /usr/iplanet/ws6.0/bin/https/admin/icons/dgLeftTab.gif (Operation not
    applicable) status=1:5
    [13/Dec/2001:09:11:05] warning ( 680): for host 194.158.64.17 trying to GET
    /https-admserv/icons/spacer.gif, send-file reports: error sending
    /usr/iplanet/ws6.0/bin/https/admin/icons/spacer.gif (Operation not
    applicable) status=1:5
    [13/Dec/2001:09:11:10] failure ( 655): Child process admin thread is
    shutting down
    [13/Dec/2001:09:11:10] info ( 684): Installing a new configuration
    [13/Dec/2001:09:11:10] info ( 684): [LS ls1] http://www.govern.ad, port 7777
    ready to accept requests
    Thanks in advance

    Greg Redman wrote:
    I upgraded from iWS 4.1 SP7 to 6.0 back in August. After some
    migration problems with config files were resolved, everything was up
    and running. No changes were made to the ACL or server.xml files to
    get everything running. Because of the migration problems, however,
    we went back to iWS 4.1 and waited for the SP1 release.
    I just went through the SP1 migration and everything is up and running
    except the none of my images are showing up on the HTML pages being
    served. For every "GET" of an image file I'm seeing an error in the
    error log the says ...(no access rights). Has something changed in
    SP1 that requires ACL type changes ?Can you show us an example of the error? What about the request/response
    (what's being sent back to the browser)?
    Joe McCabe Some men are alive today simply because it is against the
    Moz' Pit law to kill them. -- Ed Howe

  • In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User data for Message Sources.  Anyone know what this is and if it can be deleted?

    In using Office Mac 2011 I noticed that there is 3 gigs of data under Documents/Microsoft User Data for meassage sorces.  Does anyone know what these files are and can they be deleted?

    Hi SDP1,
    Do you use Outlook or Entourage? If so, that's where all of your emails are stored. If you don't use either of those applications I'd go digging through the folders and see where all the space is tied up. Check the Identifies folders, that's probably where everything is located.

  • Prompt - Fiscal Date Display YYYYMM  format

    All
    I have a request and using Fiscal Date as a prompt. I want to show a drop down list in this prompt but displaying only YYYYMM date format. What is the syntax to re-format the prompt to show this format. I am trying to show the drop down list as a Sql Result...
    I appreciate anyone's input.

    Hi usermtm,
    I am going to assume you have a DATE_DIMENSION that has a year and month column, if this is not an accurate assumption, let me know what columns you do have available.
    Assuming that you have a YEAR column of type integer and a MONTH column of type integer, the following is the proper syntax.
    CAST(YEAR AS VARCHAR(4)) || RIGHT('0' || CAST(MONTH AS VARCHAR(2)),2)
    The year needs to be casted to a four character varchar. The month also needs to be casted to a varchar, but since values 1-9 are only two digits, I concatenate a '0' to the front. I use the RIGHT function along with the concatenation of a leading zero to simulate a RPAD (if someone knows how to get RPAD to work, let me know).
    Good luck and if you found this post useful, please award points!
    Best regards,
    -Joe

  • Purchasing document item change date

    Hi GUrus,
    Could some one please explain me what is purchasing document item change date. while checking item changes for one PO i am getting this. it is showing one old value and one new value. only i wanted to know where is that date in side a PO.
    Thanks
    Sha

    Hello ,
    When you go to item level changes , sap shows the change history for that particular line items .
    So it will show all the values which is been changed . In terms of date , the old date is the date at which the line item must have been creaated or changed and the new date is the last change date by the user .
    For e.g .if the line item is changed multiple times , then it will show with respect to each date the change history . For better viewing and understanding you can sort the changes by date & find out what was the last change details .
    Hope its clear .
    Lawrence Fernandes

  • CO Document Transfer: Planning Data to General Ledger

    Hi,
    I have run kp06 for cost center planning.
    Subsequently when i was transferring the planning data to General Ledger system is not creating any documents.  could some one through light on this
    regards
    AV

    hi,
    I hv run the fagl_co_plan. 
    The message as follows.
    Log: CO Document Transfer: Planning Data to General Ledger
    Processing type                        Test run
    Date                                   21.07.2010
    Time                                   19:45:54
    Check for rcrds                        Yes
    No. of documents not posted                     0
    No. of docs posted with messages                0
    No. of docs posted correctly                    0
    regards
    vs

  • GR Document number & posting date in drill down option? (Reporting)

    Dear Experts,
                          As im new to reporting,i had a requirement from my client..the question is
    This is with regards to report Order Values on Posting Date (0PUR_C01_Q00021) 
    Can you add GR Document number & posting date in drill down option?
    i guess if i keep both of the in free characteristic,it will be the result,please suggest me on this
    Thanks & Regards,
    Srikant

    Dear Experts,
                            My Client requirement is he want GR Document number and GR Positing Date in the drill down option,im not able to find them in the query designer level. the query is under the cube 0PUR_C01. any suggestions will be a great help..
    Thanks and Regards,
    Srikanth

  • Document creation statistic data

    Hi,
    I've been task to create report that will show some kind of statistic about document creation, by date, username etc in our ERP system. First thing I came up with is to pull documents header data and count them in query designer.
    I know i need data from EKKO and VBAK tables for purchasing and sales, any other?
    Also if you have any better suggestion ...?
    Regards,
    Mijodrag

    So you mean to say that you need to create a report which will give you the count of creation date based on different type of orders.
    You have only considered--Purchase orders and sales orders..How about Production orders and Planning orders.
    Please think about them as well.
    Regards,
    AL

Maybe you are looking for

  • Cannot login to my phone since iOS7

    Using the same 6 digit PIN since before the update, after iOS7, I can no longer log in. Think it was previously because I had a custom one due to being connected to work emails, but that hasn't seemed to have copy across - fundamental flaw? I no long

  • Can Pages Create Forms?

    In other word processors (Open Office 2.2, to be precise - and probably word, but I don't use it so I don't know) you can create a form that can be edited by whoever reads your document - ie, you can create something like: First Name: Last Name: Occu

  • Order stuck in processing

    I placed an order for a Samsung Galaxy S5 with a new Edge plan on 7/25/2014 and it has said processing since then. My card was charged and I received a confirmation email and a second email stating my order was complete but a tracking number was not

  • Firefox and opera freeze after update.

    Hi, I updated he system last night and since then neither of firefox, firefox nightly or opera will play and video. I tried Cnn and Youtube. Both cause the browsers to freeze totally. It's not KDE because I also tried under E17 and it happens there a

  • Searching a standard field in Z Programs

    Hello All! A quick question: how can I find which Z programs are used a determined field (i.g.: LFA1-STENR). Points will be rewarded... Thanks! Michel Khouri