Field WRBTR in FB03 and Table BSEG

Hi,
   I am trying to retrieve the amount (field WRBTR)from the table BSEG for the line item  . In this table the
amount is shown 2.00
When I go to FB03, i see the amount as 2.00-
Can anyone let me know how should i declare the amount field in my program?
Thanks

Hi
the amount is always stored with absulte value, the sign is defined by SHKZG (Debit/Credit Indicator).
SHKZG = S => SIGN = +
SHKZG = H => SIGN = -
So
IF BSEG-SHKZG = 'H'.
  BSEG-WRBTR = BSEG-WRBTR * -1.
ENDIF.
Max
Message was edited by: max bianchi

Similar Messages

  • How to remove fields from view V_QCMBSEG for table BSEG

    Hi
    By mistake have appended 5 fields in standard table BSEG,  after that i have deleted that appended structure from table, while deleting from different views network got disconnected i lost connection from server.
    So process get terminated and those fields left in view V_QCMBSEG.
    Because of this table partially activated.... is there any way to delete it
    Thanks

    its not activating ...its displaying error
    Field BSEG-ZZCHANNEL is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZPROD is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZPROJ is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZRECODE is still being used as a view field in view V_QCMBSEG
    Field BSEG-ZZSTATE1 is still being used as a view field in view V_QCMBSEG

  • How to declare a field in a structure and table

    Hi, I have a doubt in declaring a field inside a structure.
    types: BEGIN OF mrm_rbkpv.
            INCLUDE STRUCTURE rbkp_v.
    types: h_rbws LIKE rbws OCCURS 0,
           end of mrm_rbkpv.
    data : e_rbkp_v type mrm_rbkpv.
    Now I want I to refer to field WT_WITHCD inside table H_RBWS.
    eg : if e_ebkp_v-h_rbws-wt_withcd = 'X ' is right or wrong??????
    POints will rewarded
    Thanks in advance

    hi jaysree,
    types: BEGIN OF mrm_rbkpv.
    INCLUDE STRUCTURE rbkp_v.
    types: h_rbws LIKE rbws OCCURS 0,
    end of mrm_rbkpv.
    data : e_rbkp_v type mrm_rbkpv.
    if e_ebkp_v-h_rbws-wt_withcd = 'X '  - > this will work perfectly.
    rgds
    anver
    if hlped mark points

  • Linking table BSEG and PA0001 to display PA0001-SNAME

    I am working on a report where I am facing problem with field length compatibility.
    I have to pass value of field BSEG-HZUON to PA0001-PERNR and display SNAME in the output.
    But the field length of HZUON and PERNR does not match each time, hence SNAME is displayed as blank in the output for these cases.
    Please suggest a solution to this problem or possibility of using some other field as a linkage between tables BSEG and PA0001.

    Hi,
    Yes, you are right. You can not link based on these fields.
    Possible solutions:
    1. Within a SELECT and ENSSELECT on bseg
        move hzuon to a workfield
        SELECT on pa0001 using the workfield
    2. SELECT all BSEG data into an internal table (with an additional field PERNR)
        Loop over the internal table filling the pernr.
        SELECT all PA0001 data into an other internal table with the FOR ALL ENTRIES
        Combine the internal tables.
    Succes.

  • ABAP Query: FI Tables - BSEG and BKPF

    Dear All,
    I have tried to use SAPQuery - SQ01 to join 2 SAP tables (BSEG and BKPF) by creating an Infoset (SQ01 >> Environment >> Infosets >> Create)
    However, there is always an error message for the table join when I generate the infoset. Tables BSEG and BKPF are joined together by conditions BSEG-BELNR & BKPF-BELNR; BKPF-BURKS & BKPF-BURKS; BSEG-GJAHR and BKPF-GJHAR.
    The error message prompted is, "You cannot use comparisons with column references in pool and cluster". Is the message trying to say that BELNR, NURKS and GJAHR are column references in pool and cluster, thats why we can't join the tables?
    The purpose of the infoset is to extract accounting documents. I will need to extract accounting doc data from DEV, QA and Prodcution Server.  If I use SAP QuickViewer, everytime I go to a differenct server I will need to create the QuickViewer in the system before I can use it. But if i use SAP Query, i will need to create once and transport the SAP Query to another server.
    Kindly advise if there is a way I can extract accountng document by using SAP Query?
    Million Thanks in Advance.

    Hi Mark,
    I appreciate your response.
    Im tyring to extract information for open GL items. Thus the relevant tables would be BSIS. But I find that  some fields such as Purchase Order Number; Purchase Order Line Item, Asset No.,Asset Sub-No which Im interested in do not exist in BSIS. But these fields can be found in Table BSEG?
    If I have to link BSEG and BKPF, how should i go about doing it?
    Kindly advise.
    Thanks in Advance!

  • Adding a BSEG field to the FB03 dynamic selection screen

    Hello,
    We have a requirement wherein we want to add a field from BSEG in the dynamic selection screen of FB03.
    We found that the logical database behind this is BRF.  So we created a u2018CUSu2019 selection view for the logical database and added the field from BSEG to the functional group
    and checked the checkbox u201CPreselectu201D for it to appear automatically in the FB03 screen.
    But we still couldnu2019t see the field in FB03 dynamic selection.
    On analysis, we found that only tables are that are defined in the nodes (Extras  Selection views) can be used to create the dynamic selection and BSEG was not available
    as one of the node.  So we added BSEG as one of the node by adding the below code to the SELECTION of the logical database.
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE BSEG.
    Even after that, we couldnu2019t see the field from BSEG in the dynamic selection.
    Are we missing anything here?
    I see many threads here on similar lines but no one has posted the exact step. Any help is highly appreciated.
    Thanks a lot.
    Regards,
    Suganya

    Hi
    If you want to take the line item details than you can refer these t-codes rather than customizing.
    S_AC0_52000887 - Receivables: Profit Center
    S_AC0_52000888 - Payables: Profit Center
    S_ALR_87012332 - G/L Account Statements
    Here by using the dynamic selection you can get the results. Use object list display and select the layout for more fields.
    Thanks

  • Table name and field name for accounting and material document in MM

    Hi
    Table name and field name for accounting and material document in MM
    how can we diffreentiate the accounting document in MIGO and MIRO ?

    Hi,
    For Goods reciept documents you can search from the tables  MKPF-Header: Material Document and MSEG-Document Segment: Material,
    and for Invoice documents you can search in  tables   BKPF-Accounting Document Header and BSEG-Accounting Document Segment.
    For differentiating the Accounting documents in MIRO and MIGO based on posting key and document types for GRN -document key is -WE and for MIRO document is -RE.......
    Hope this may help you.....................

  • BAPI to update Business Area in table BSEG and BSAD

    Hi,
    Is there any BAPI that will update the field Business Area in table BSEG and BSAD?
    Thanks,
    Ekit
    Moderator: Please, search SDN

    Hi,
    You can not update the business area in the posted documents.
    You need to reverse them and have to recreate.
    Regards,
    Gaurav

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • Table BSEG not active and am failing to activate it

    Hi experts
    I am failing to activate standard table BSEG and its giving me a short dump referring to temp tample QCMBSEG.

    hi
    if you are in SPDD phase of Upgrade and you are not able to activate the table then just check in table any customize field are added or any kind of customization has done or not, if yes then make sure those field should exist in Higher version also.
    and after that just dicuss with your Bassis team there is one phase called ACT_700 where they can do the mass activation of all Dictionary objects.
    Hope this will help.

  • Field and table

    Hi,
    Can any one tell me the difference
    1) We can unarchive repository after right clicking on specified repository
    or right clicking on server.
    What is the difference between two?
    2) Can any one explain me with example what is Qualifier table , qualified record, Display Field, Remote key (which we can see in destination field during field/value mapping). It is not clear to me which source fields we should map with which destination field.
    3) I am some doubt with look up table, fields and taxonomy field Can any one give me simple example rather than link.How can we create all this?
    Thanks in advance.

    Hi Pappu,
    1) We can unarchive repository after right clicking on specified repository
    or right clicking on server.
    What is the difference between two?
    Ans : The only difference between the two is when you unarchieve the repository by right clicking on the server it will ask the name of the repository and creates the new one while in other case it overwrites the existing repository on which you have right clicked for Unarchieving.
    2) Can any one explain me with example what is Qualifier table , qualified record, Display Field, Remote key (which we can see in destination field during field/value mapping). It is not clear to me which source fields we should map with which destination field.
    Ans : Qualifier Table:
    Consider the simple example given below:
    If one Product is to be sold in different countries with different price depending on the country then in such case if you kept all this information in the main table then it creates the redundancy
    E.g.
    Product     Country     Price
    100     India     50
    100     US     60
    100     UK     40
    Now if you model the above data using Qualified table in which Country will be the non-qualifier and price will be qualifier fields then
    Product                                       Country     Price
    100                                             India     50
                                                      US     60
                                                      UK    40
    i.e. you are eliminating the redundancy by storing the repetative information in another table and just forming the link between main table record and its corresponding qualified table records.
    Qualified Records:
    Records stored in the qualified tables are known as qualified records like India 50 is the qualified record in above example.
    Display Field:
    If any field is declared as the Display field then the data of that field will be visible in the main table in MDM Data Manager.
    E.g. Consider the lookup table name Countries with the structure shown below:
    CountryName     Code
    India     Ind
    United States    US
    then when you select the drop down list say while entering data then you will get
    India,Ind
    United States,US
    Otherwise if only code has been set as the Display Field then only code will appear in the drop down list
    Ind
    US
    Remote Key:
    Remote key is used when you want to communicate with many systems like say you want to send particular MDM records to R3 and some records to BW system.Then you have to enable the Remote Key property of the main table and select the remote system say R3 if you want syndicate the records only for R3 system.
    3) I am some doubt with look up table, fields and taxonomy field Can any one give me simple example rather than link.How can we create all this?
    Ans:
    Lookup table:
    These tables are used when you want to select the data from some fixed set of records like countries.
    Create the lookup table countries and assign the table to the field(lookup flat) of main table then when you enter data into that field you will get the drop down list.
    Taxonomy table:
    Taxonomy table is used when there exists some fields whose occurance depends on the value of other some field.
    E.g. Say there a main table field named Product which consists of values like Shoes and Bottles.When you select Shoes then field Brand appears and when you select Bottles field Quantity appears.Now if you create 3 fields named Products Brand and Quantity then for product field value Shoes quantity will be null and similarly for Bottles Brand field will be Null.Imagine the scenario with lacs of records.
    Now when you use taxonomy table to model the above design it will be as shown below:
    1. Create the field Product in the main table with type Lookup Taxonomy.
    2. In the Data Manager create two attributes named Brand and Quantity.
    3. Link the value Shoes with the Brand and Bottles with the quantity.
    Whenever you select Shoes, Brand field will appear automatically and similarly for other case.
    Reward if found useful
    Regards,
    Jitesh Talreja

  • Field and Table for Pension Plan

    Can anyone tell me what are the field name and table name in Pension plan

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field and Table for PGI status updation

    Hi All,
    I want to know in which field and table the PGI status will get updated.
    i.e. once we do the PGI for a delivery in which table will this PGI status gets updated.
    Thanks in advance for help.
    Harini

    Hi Harini,
    In Table VBUK you 3 different status related fields for  sales documents.
    Over all status field name GBSTK ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its complete open)
    B  Partially processed     ( This means the sales doc is partially processed)
    C  Completely processed  ( This means the sales doc is completly processed)
    Delivery status  and over all delivery status field name LFSTK and LFGSK respectively, these 2 fields will be same always ( here it gives the total status of praticular sales document) here you see options
    A  Not yet processed      ( This means its completly  open)
    B  Partially processed     ( This means the delivery doc is partially processed)
    C  Completely processed  ( This means the delivery doc is completly processed)
    So overall status can be  different then delivery or overall delivery status.
    If sales document has 100 quantity for 1 material, if delivery is done for 50 quantity.
    Then over all status field name GBSTK will be B  Partially processed and delivery and overall delivery will be C  Completely processed  .
    Regards
    vK

  • Field  and Table name for purchaser

    I want to know the field and table name for purchaser id and purchaser name.
    Plz help me.

    Dear
    Purchaser name are define in Header level data in Purchase Order EKKO & Purchase ID define as a Purchasing Group
    Purchser Name EKKO-ERNAM
    Purchase I D  EKKO-EKGRP
    Regards
    Aamir

  • Field name and table

    Dear Friends ,
    I want to display discount , P&F , excise , tax , fright , octori , insurance  so what is the fiels name for all fields and table name .

    You have to create the report bu fetching the report from the table EKPO - Doc condition no KNUMV. Use this no in the table KONV to get all your requirements aginst the field KSCHL - Condition types.

Maybe you are looking for