How to know if records in BSIS/BSAS are for customers or vendors?

Hello Experts,
I am getting records from BSIS and BSAS, now I need to know those records(from BSIS and BSAS)
which are for customers or for vendors since that is my filter. Thank you and take care!

Hi Guys,
Sorry I can't see my radiobuttons so I can't assign points but I will do so later.
Anyway, What I did was based from the records that I got from BSIS/BSAS, I did
a select statement from BSID and BSAD. Please see my code below:
*   Get G/L line items(Open items)
    SELECT bukrs hkont belnr
           buzei gjahr budat
           blart dmbtr shkzg
      FROM bsis
      INTO TABLE gt_bsis
       FOR ALL ENTRIES IN gt_t012k
     WHERE bukrs = gt_t012k-bukrs
       AND hkont IN lr_hkont
       AND budat <= p_budat.
*   Get G/L line items(Cleared items)
    SELECT bukrs hkont belnr
           buzei gjahr budat
           blart dmbtr shkzg
      FROM bsas
      INTO TABLE gt_bsas
       FOR ALL ENTRIES IN gt_t012k
     WHERE bukrs = gt_t012k-bukrs
       AND hkont IN lr_hkont
       AND budat <= p_budat.
    APPEND LINES OF gt_bsis TO gt_bsis_bsas.
    APPEND LINES OF gt_bsas TO gt_bsis_bsas.
    IF NOT gt_bsis_bsas[] IS INITIAL.
      *   Get customer line items(Open items)
    SELECT bukrs belnr gjahr blart
           buzei budat dmbtr shkzg
      FROM bsid
      INTO TABLE gt_bsid_bsad
       FOR ALL ENTRIES IN gt_bsis_bsas
     WHERE bukrs = gt_bsis_bsas-bukrs
       AND gjahr = gt_bsis_bsas-gjahr
       AND belnr = gt_bsis_bsas-belnr.
*   Get customer line items(Cleared items)
    SELECT bukrs belnr gjahr blart
           buzei budat dmbtr shkzg
      FROM bsad
      APPENDING TABLE gt_bsid_bsad
       FOR ALL ENTRIES IN gt_bsis_bsas
     WHERE bukrs = gt_bsis_bsas-bukrs
       AND gjahr = gt_bsis_bsas-gjahr
       AND belnr = gt_bsis_bsas-belnr.
    ENDIF.
Then later on, I will loop through GT_BSIS_BSAS then I will check the current document
if it exists in GT_BSID_BSAD by using READ statement. Is this correct? Thank you guys!

Similar Messages

  • How to know the list of reports that are in usage

    Hello,
    How to know the list of reports that are in use from the last 3 months by the users on Bw server.How basis team will help me in this regard?
    Regards,
    Anand.

    Hi,
    Pl look at following tables if you need any further detailed information
    Table Name  Use of the table 
    RSZELTDIR
    Directory of the reporting component elements
    RSZELTTXT  Texts of reporting component elements 
    RSZELTXREF  Directory of query element references .
    To get a list of query elements built on that cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSRREPDIR
    Directory of all reports (Query GENUNIID) .
    To get all queries of a cube.filter by: OBJVERS = 'A', INFOCUBE= [stage:cubename] 
    RSZCOMPDIR  Directory of reporting components.
    To get query change status (version, last changed by, owner) of a cube. 
    RSZRANGE  Selection specification for an element 
    RSZSELECT
    Selection properties of an element
    RSZCOMPIC
    Assignment reuseable component <-> InfoCube 
    RSZELTPRIO  Priorities with element collisions
    RSZELTPROP  Element properties (settings)
    RSZELTATTR  Attribute selection per dimension element 
    RSZCALC  Definition of a formula element 
    RSZCEL   Query Designer: Directory of Cells 
    RSZGLOBV
    Global Variables in Reporting 
    RSZCHANGES  Change history of reporting components
    Thanks and regards

  • How to know whether a vacation rule is set for a user

    Hi,
    How to know whether a vacation rule is set for a user or not in the BPM process. Can anyone help me in this.
    Thanks,

    In Linux a user has to have read permission on a file to even see that it exists. As a result, if a user (or a group to which they belong) doesn't have read access to the file File.exists() will return false. Windows which doesn't have as tightly controlled access to files will admit that a file exists whether it can be read or not.
    PS.
    This is proof that I should never answer a question off the top of my head when I haven't had my red bull yet. This is wrong. You will be able to see it if you have read and execute on the directory.
    thumps self in head
    Message was edited by:
    puckstopper31

  • How to stop PR creation from PM work order for a particular vendor?

    Hello Experts,
    We have following scenario for breakdown maintenance activities.
    When a machine breaks down, a breakdown order is created in SAP. The external manintenance services are planned in the order. When the order is released, a single PR (with multiple item numbers corresponding to number of services) is created by SAP. The PR has a release strategy. When PR is released, PO is created followed by the SES.
    The practice followed AS -IS for breakdown outside business hours:- If the breakdown happens outside business working hours, the person releasing the PRs is not available & hence PR can not be released resulting in no PO & no subsequent SES.
    In this case, the maintenance is completed by the external agency & the work order is TECO. The next day, TECO is reveresed, new PR is created, released, converted into PO, & then SES.
    TO-BE process:- Client expects that, for certain vendors identified, PR should not get created at all from the breakdown order. (The list of  vendors will be maintained seperately). For these vendors, a framework order will be created at the start of fiscal year & SES will be created as & when required agaainst the framework order.
    My concern is :- How to stop PR creation from PM work order for a particular vendor? OR delete the created PR?
    Highly appreciate your quick response.
    Thank you.
    Amit
    Note:- My ABAP consultant has checked following BADI's, but could not find it useful.
    IWO1_ORDER_BADI
    ORDER_COSTING_CK
    DATA_EXTENSION_CK
    VALUATION_CK
    ME_REQ_OI_EXT
    IWO1_PREQ_BADI
    ME_CHECK_SOURCES
    ME_REQ_POSTED
    IWO1_ORDER_BADI

    Dear Amit
    I am giving a different dimension to your question check if it fulfills your requirement -
    As we know Vendor selection comes at a later stage only after your PR creation, approval & RFQ etc. & PR generation from maintaine. order is controllled through control key PM03.  While triggering PR from order you have to specify Material group, Purchase group and vendor. Try to control it through authorisation as all these are authorisation objects. The persons executing breakdown order shall no t be given this authoriations
    shakti

  • How to get last Record ior Total rows in For Loop Cursor ?

    Hi Friends
    I would like to know , the last record in for loop cursor, i have the code in following format
    cursor c1 is
    select * from emp;
    begin
    for r1 in c1 loop
    v_total_rec := ? ( i would like to know total rows in the cursor , say for example if cursor has 10 rows, i want10 into this variable )
    v_count := v_count +1;
    dbms_output.put_line(r1.emp_name);
    end loop;
    end;
    Hope i am clear
    Any suggestions?
    Thanks
    Ravi

    Even though cursor loops are generally a Bad Idea ^tm^ as Dan says, here's an example of how you can get the information you wanted within the query itself...
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    cursor c1 is
      3      select emp.*
      4            ,count(*) over (order by empno) as cnt
      5            ,count(*) over () as total_cnt
      6      from emp
      7      order by empno;
      8  begin
      9    for r1 in c1 loop
    10      dbms_output.put_line(r1.ename||' - row: '||r1.cnt||' of '||r1.total_cnt);
    11    end loop;
    12* end;
    SQL> /
    SMITH - row: 1 of 14
    ALLEN - row: 2 of 14
    WARD - row: 3 of 14
    JONES - row: 4 of 14
    MARTIN - row: 5 of 14
    BLAKE - row: 6 of 14
    CLARK - row: 7 of 14
    SCOTT - row: 8 of 14
    KING - row: 9 of 14
    TURNER - row: 10 of 14
    ADAMS - row: 11 of 14
    JAMES - row: 12 of 14
    FORD - row: 13 of 14
    MILLER - row: 14 of 14
    PL/SQL procedure successfully completed.
    SQL>

  • TS1424 misc charges from itunes? How do I find out what the charges are for?

    Misc charges from itunes?How do I find out what charges are for?

    View your purchase history:
    http://support.apple.com/kb/HT2727
    If you are still unsure, contact iTunes support and ask:
    http://www.apple.com/support/itunes/contact/

  • How to know the record status

    dear all
    i am new in adf. i have an entity object named Employee and an updatable view object named Employeevo.
    i created a simple .jspx page to display the employee in af:form.
    the page bindings contains CreateInsert operation. user can insert new record or update a record or delete it. mh question is:
    how can i detect the record status? in other eords how can i know whether the record is in insert mode or update mode. in oracle forms ,there is a system variable ":SYSTEM.RECORD_STATUS"that can return NEW-CHANGED-QUERY.what is the equilivant for this in ADF.
    thanks in advance

    Hi.
    you can override the dodml in the EntityImpl to test what DML operation is being performed.
    @Override
    protected void doDML(int operation, TransactionEvent transactionEvent) {
            if (operation == DML_INSERT) {
                //an Insert
            } else if (operation == DML_UPDATE) {
                //an Update
            } else if (operation == DML_DELETE) {
                //a Delete
    }http://docs.oracle.com/cd/E15051_01/web.1111/b31974/appendix_mostcommon.htm
    http://www.orastudy.com/oradoc/selfstu/fusion/web.1111/b31974/appendix_formstriggers.htm

  • How to know whether record is already there in lsmw to create or change

    Dear Freinds,
                How can we know whether a record is already exisitng in the database ,
    for us to decide to do the LSMW in INS or MOD.
    I mean to say if  for a record already exisits in the database (ex pa0002) and we are doing a LSMW , How can we check a record already exsits in the database and modify of  that record and if doesn't exits go for create option. Please let me know in which step we can do this validation?
    Regards
    syamla

    Hi Atish ,
            How can i do this , you said we can check whether we have to insert(INS) or Change(MOD) for a record in the database at Convert Data , At convert data i cannot
    do the change as it is Standard program.
    If you have any  piece of code please let me know how i can do the same.
    regards
    syamala

  • How to know the record status changing from NEW to INSERT while keying-in a field

    Thanks to Kevin Clarke & Steven Declercq for helping me out with my previous queries.
    Can any one out there tell me how to intercept when the reocrd status is changing from NEW to INSERT (while a field is being keyed-in in a blank(new) record).
    Thanks
    Brijesh

    Hi Kevin,
    Thanks.
    Unfortunately, I could'nt find a trigger named 'ON-DATABASE-RECORD'.
    Are you sure it exists?
    Cheers
    Brijesh

  • How to trigger data recording to a text file for multiple channels for a certain voltage threshold?

    I am working with 6 channels, from each of which I am obtaining voltage values ranging from 0.6-6 V.  I am using the DAQ Assistant to acquire and write the data to a text file.  However, I only want the data to be written to the text file when the difference in voltage (DeltaV) from one data point to another is greater than or equal to 0.04 V.  I am acquiring the data at a sampling rate of 64 Hz.  Any ideas on how to accomplish this?  I have attached my current VI. 
    Attachments:
    Data Triggering.vi ‏116 KB

    Faizah wrote:
    I am obtaining voltage values ranging from 0.6-6 V.  
    I only want the data to be written to the text file when the difference in voltage (DeltaV) from one data point to another is greater than or equal to 0.04 V.  
    Your code does not do what you describe above..
    I just want to make sure I understand your request...
    Let's say you have the following signal:
    0.00
    0.01
    0.00
    0.03
    0.02
    0.01
    0.03
    0.04
    0.07
    0.05
    0.08
    0.03  < delta greater than 0.04, so start recording
    0.11
    0.21
    0.45
    0.93
    2.87
    5.85
    5.86 < delta less than 0.04, so stop recording
    5.87
    5.89
    6.00  < delta greater than 0.04, so start recording
    5.85
    5.86  < delta less than 0.04, so stop recording
    etc..
    Is the above what you are describing?  
    Right now, your code does this:
    0.00
    0.01
    0.00
    0.03
    0.02
    0.01
    0.03
    0.04
    0.07
    0.05
    0.08
    0.03 
    0.11
    0.21
    0.45
    0.93
    2.87 < threshold greater than 1 so reset timer
    5.85 < threshold greater than 1 so reset timer
    5.86 < threshold greater than 1 so reset timer
    5.87 < threshold greater than 1 so reset timer
    5.89 < threshold greater than 1 so reset timer
    6.00  < threshold greater than 1 so reset timer
    5.85 < threshold greater than 1 so reset timer
    5.86  < threshold greater than 1 so reset timer
    4.35 < threshold greater than 1 so reset timer
    2.21 < threshold greater than 1 so reset timer
    1.09 < threshold greater than 1 so reset timer
    0.98 
    However, you did not provide a set start time  to the Elapse Time (I never use Express VI's so I'm not sure what will happen..) However, something does not appear correct with the logic.  I'd have to check.

  • How to know value of a feild in IDOC for further proccessing

    Hi Guys ,
    I am receiving different sets of IDOC's  in XI with same structure but different Instances.There is feild called company ID in every IDOC._I need to count the number of Idoc's received from a particular companyID and group them_.
    I came to know that i can use an RFC call that will give me the count.To call RFC i need to know the company ID, based on which the RFC call can be made.
    Can you help me in understanding how to retrieve company ID from Incomming IDOCs, and call RFC based on ID to get count of IDocs with that Comp Id.?
    My kind appreciations to all  .....
    Srinivas Karnam

    Hi,
    You need to go for RFC lookup. You need to pass the values i.e. company code to RFC during mapping
    Refer
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231
    The specified item was not found.
    OR
    You can go for BPM. Here you need to loop the Receiver step and collect the IDOCs, then add one counter based on co-relation of Company ID field.
    Thanks
    Swarup

  • How to know which sql query is taking time for concurrent program

       Hi sir,
    I am running concurrent program,that is taking time to execute ,i want to know which sql query causing performance
    Thanaks,
    Sreekanth

    Hi,
    My Learning: Diagnosing Oracle Applications Concurrent Programmes - 11i/R12
    How to run a Trace for a Concurrent Program? (Doc ID 415640.1)
    FAQ: Common Tracing Techniques in Oracle E-Business Applications 11i and R12 (Doc ID 296559.1)
    How To Get Level 12 Trace And FND Debug File For Concurrent Programs (Doc ID 726039.1)
    How To Trace a Concurrent Request And Generate TKPROF File (Doc ID 453527.1)
    Regards
    Yoonas

  • How to know in wich tab you currently are in the pcui?

    Hi everyone,
    Does annyone knows if there is an indicator that indicate you the current tab where the user is working in?
    I want my BSP to do different action depending on wich tab the user is in.
    I'm working in the BSP CRMD_BUS2000126 for the activities.
    Thanks!

    I will move over my posting from the ABAP forum as well in case it is a help to anyone:
    This is probably a question better suited to the BSP forum. I also noticed that your application name starts with CRM. I'm not familiar with CRM and its particular take on BSP, but I can tell you how I do this in my BSP applications:
    First I use the phtmlb:containerTabStrip to create my tabstrip. I use an application class attribute to store my selectedIndex (the current selected Tab).
    <phtmlb:containerTabStrip id                    = "TabStrip15"
                              collapsed             = "FALSE"
                              collapsible           = "FALSE"
                              firstVisibleItemIndex = "1"
                              hasContentConnector   = "TRUE"
                              maxVisibleItems       = "5"
                              onCollapse            = "myCollapse"
                              scrollableItems       = "TRUE"
                              selectedIndex         = "<%= application->SELECTED_date2       %>" >
    Now I use MVC, so in my DO_HANDLE_EVENT method of my controller class I trap the tabstrip event and query for the selected tab:
    data: event_id type string.
      event_id = event.
      if htmlb_event is not initial.
        event_id = htmlb_event->id.
      endif.
      data: model type ref to zcl_bsp_m_eqi_selection.
      data: appl type ref to zcl_eq_bsp_eqi.
    ****Get a pointer to the Model Object.
      model ?= get_model( 'MS' ).
    ****Get a Pointer to the application Object
      appl ?= application.
      if event_id cs 'tabstrip15'.
        data: event1 type ref to if_htmlb_data.
        event1 = cl_htmlb_manager=>get_event_ex( request ).
        if event1->event_type eq cl_phtmlb_containertabstrip=>co_phtmlb_event_tab_selected.
          appl->selected_date2 = event1->event_server_name.
        endif.
      endif.

  • How to know if linux-uvc module is loaded for chicony webcam?

    i have a integrated chicony webcam...iam not sure how to find if linux uvc module is working

    lsmod should do the job, yea
    lsmod | grep uvcvideo
    If that's working, you can try your cam with luvcview

  • How to know which Smart-Form is being used for Purchase Order print output

    Hi Gurus ,
    How to find which Smart-Form and and methods/program being used for Purchase Order print output in SRM  ?
    In ECC we have tcode NACE where we can check all the details.Is there something similar in SRM ?
    Please help.
    Regards,
    Saurav

    There is no similar transaction in SRM for your purpose. Usually if the customers customize the smartforms, they would choose to use their own form by implementing BADI BBP_OUTPUT_CHANGE_SF. Take a look into your system and see if this BADI is implemented. If so, debug it (by pressing "Print Preview" for a PO for example) and find out what form it is using. Or, if the BADI is not implemented, by default, the system uses form BBP_PO.

Maybe you are looking for