Urgent interesting req

Hi friends ,
i have a req like this the I_BSID int table is having records like this
year/month posting dt assignmnet amount in loccurrency
opening balance as that of 04/01/2007 is last month end balance i.e march           0.00
2007/04     2007/04/03 ar0r             15020.23
2007/04     2007/04/07 0110                            125.32-
                  sub total                      15020.23    125.32
closing balance             = open + ( 15020.23 + 125.23- )            
Here i don;t have data for say month 05
could you let me know how to update z table from month 05
below logic is working for month 04 but not for 05 as the int table is not having values for month 05
Kindly let me know how to update  z table for month 05 so that to get cumulative balance
     closed open balance
apr 1500   1000 500
may 0.00    0.00 500 ( pre apr balance + (0.00-0.00)
Kindly let me know how to do it.
LOOP AT i_bsid.
      wa_bsid = i_bsid.
      IF wa_bsid-shkzg = 'S'.
        z_newitems = wa_bsid-dmbtr + z_newitems.
      ELSE.
        wa_bsid-dmbtr = 0 - wa_bsid-dmbtr.
        z_closeditems = wa_bsid-dmbtr + z_closeditems.
      ENDIF.
      AT END OF budat+4(2).
        CONCATENATE wa_bsid-budat0(4) wa_bsid-budat4(2) INTO v_spmon.
        i_ztable-mandt      = sy-mandt.
        i_ztable-spmon      = v_spmon.( year / month )
        i_ztablekunnr      = wa_bsid-kunnr.
        i_ztable-bukrs      = wa_bsid-bukrs.
        i_z-tablez_newitems = z_newitems.
        i_z-z_closeditems = z_closeditems.
        i_z-z_balance = z_newitems + z_closeditems.
        APPEND i_ztable.
        CLEAR: z_newitems,z_closeditems.

At end of the internal table, after you update month 04 - you need to calculate how many months left to update. Just use Do statement to calculate and add to internal table.

Similar Messages

  • Urgent(interest calculation)

    Hi,
       I am sunita.
       PLZ tell me solution interest calculation . i am getting problem f.52 int run . this a/c has no interest terms.
                 There is no interest terms.
                                     THANK YOU
                                                                                    REGARDS,
                                                                                    Sunita.

    hi Raju,
           i have maintained interest indicator and ,reffrence indicator , time dependent terms.
       Till i am not getting.
                                 Thanking YOU
                                                                                    Regards,
                                                                                    .Sunita

  • Urgent help req : work item id not getting passed in the method

    Hi ,
    I have created a subtype zcats of business object CATS and delegated it .
    I have created a new method Approve1 ( with attributes  SYNCRONUS & DIALOG )  in zcats which is similar in coding  to Approve method of CATS ( DIALOG) .
    I have include the method Approve1 of business object zcats in a standard task .
    The problem is that when the eorkflow gets triggered ,  the workitem id is not getting passed in the method APProve1 of zcats.
    Can someone please help me with this .
    Points would surely be awarded .

    BEGIN_METHOD APPROVE1 CHANGING CONTAINER.                 
      DATA: WORKITEMID_IMP LIKE OBJECT-KEY-ITEMID.              
      DATA: WI_CHCKWI LIKE SWWWIHEAD-WI_ID.                     
      DATA: WORKITEM TYPE SWC_OBJECT.                           
       <u> WORKITEMID_IMP = OBJECT-KEY-ITEMID</u>.                     
        SWC_GET_ELEMENT CONTAINER '_WORKITEM' WORKITEM.         
        SWC_GET_PROPERTY WORKITEM 'WorkitemReference' WI_CHCKWI.
        IF SY-SUBRC EQ 0 AND NOT WI_CHCKWI IS INITIAL.          
          WORKITEMID_IMP = WI_CHCKWI.                           
        ENDIF.                                                  
        CALL FUNCTION 'CATS_WF_APPROVAL'                        
          EXPORTING                                             
            WORKITEMID_IMP = WORKITEMID_IMP                     
          TABLES                                                
            CONT_IMP = CONTAINER.                               
      END_METHOD.                                               
    hi ,
    the above is the code in the method .
    At the first step of execution underlined above , the work item id is appearing blank .
    I think that the value is not passed to the container , but i am not sure og how to pass data to this conatiner

  • Urgent Help Req.: Exception=ORABPEL-11162 Error while reading native data

    Hi All,
    I am getting below error: Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7|http://forums.oracle.com/forums/] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    Let me also give you the brief scenario of what I am trying to achieve.
    INTERFACE FUNCTIONING:_
    I have an interface which reads the records in a file in a chunk through ChunkRead adapter and and after one successful reading if chunk it calls the DB adapter to insert the records in the table.
    Now these records are committed and next chunk is read and the process goes on till all the records are read.
    After this the API is called which does the processing of these records.
    Inserting records in the DB is a XA transaction which means if anything goes wrong while inserting the data, the records which are added earlier are rolled back.
    ISSUE:_
    Now the issue comes when I do the negative testing. Since my file is based on fixed length schema., I change the length of last record from 15 to 13. (say total are 10 records)
    Now what happens is when chunkread tries to read the record of 15 length it gets only 13 characters and hence ignores the records.
    But the chunkread reads all other 9 records correctly and sends this to DB adapter which now inserts them correctly in the DB.
    But being a global transaction I want that if any record is missing from DB in comparison to those in file then whole transaction should roll back.
    So I am unable to make this whole process as global transaction. This is because the ChunkRead adapter inspite of detecting the error doesn&rsquo;t throw it back.
    Moreover if this problem occurs in say next chunk then also I am unable to find out how to rollback the whole transaction. Because the first chunk was correct.
    So basically two concerns are there:+
    How to detect that chunkread adapter has missed one record?+
    Secondly, If it&rsquo;s detected then how should I rollback the transaction that caused earlier records to enter into database?+
    Please let me know if anyone has faced this issue earlyer and how it got resolved. Any pointers regarding this would be of great help.
    Also attached is the chunkread log for reference.
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage errList=[oracle.tip.pc.services.translation.xlators.nxsd.ErrorList@a5213b]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage badCount=[1]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.467-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: Rejecting message fileName=/rh01/s01/n01/Distributions/B2B/Gentran/In/855/Test.txt, startLine=4, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    }</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    PFB the version details :
    SOA suite version : 10.1.3.3.1 and JDEV : 10.1.3.3
    Edited by: SOA Team on Oct 6, 2008 10:48 PM

    Just a thought, you could set the terminator for the last field as {eol} instead of length, this means that it should read the last field regardless of the length.
    Depending on the logic of Db adapter the error could be traped due to incorrect length.
    If the file starts each row with a constant(s), e.g. 01 then you can terminate the previous line on that, this is the better option but relys on the file format.
    The other option is a little thing call compensation, ouch. Basically this allows you to back out commited rows but you have to provide all the logic, it is generally something people avoid because of the complexity.
    cheers
    James

  • Oralce apps urgent help req.

    oracle apps using forms is it possible refresh,clear form or exit from one form to another form.
    becoz i am using 2 forms called Form A and Form B. Form A is main form and calling Form B.
    If i change parameters in Form A, i want to display in Form B also.. but Form B contains only
    prev parameters.
    How can i refresh Form B with latest parameters while i pass parameters dynamically from Form A.
    otherwise, can i use do_key('exit_form') from FORM A ? i want to close FORM B from FORM A.

    Hi had a simular question
    synchronous mediator collate response
    Responses suggested that this was not possible in mediator and needed to be done in BPEL
    Robert

  • Customised error page  Urgent help req: !!!!!!!!!!!!!!!!!!!!!!

    Hi Friends ,
    I have a doubt here .
    Is there any way to customize error page in HTMLDB.
    and How can we change error page conditions , like if its an authorization error (not a valid user ) and process error in a page etc..\
    Thanks,
    Kalesh.

    Hi Friends,
    Can anybody help for this..............................
    Thanks,
    Kalesh.

  • Fresher, urgent help req

    I am new in this area. Pls send me some documents and reading material at [email protected] Points awarded.
    Thanks
    Murali

    Hi Murali,
    You can always check the documents at the following location.
    https://websmp101.sap-ag.de/solutionmanager
    Its a one stop shop for all the information on solution manager.
    Let me know if its not enough to clarify ur queries
    Also let us know if u r looking at some specific docs.
    Br,
    Sri

  • Urgent help req

    Purchased MacAir book a month ago. On holiday remote location. Can't log in, don't think logged out correctly. Spining coloured wheel been going round for hours.

    Press the power button for about 10 seconds.
    Computer should shut down.

  • MM Goods Received Info req??

    Hi
    Is there any way to find out the GR No-MBLNR  for good received (Mov type - 101) against any Dilivery Doc No(PO is unknown).
    Is there any SAP FM exits for this?
    I have to track the GR status for the Dilivery Doc No(VBELN).
    Urgent Help Req!!!
    rgds
    vipin

    i am looking the same,but unable to identofy the data?
    in MKPF there are 2 fileds:ref doc : XBLNR & delivery: le_vbeln,so I am confuse which shd i take to chk the accurate one.
    Secondly for that deliv/ref no-its shows the MBLRN irresp of any mov type i think so?.
    and i am not able to acces the MSEG table with that ref/dilv no.Is any where in MSEG can i find out the MBLRN for particular deliv no for all mov type??
    that can solve my  prob?but i am unable to find the filed for dilv in MSEG.
    its only works with MBLRN i guess.
    So how to do??

  • Update internal table data from table control

    Hi GURUS,
    I need help regarding one of my requirement.
    I need to display data from the internal table on the screen and when the user selects a record/multiple records from screen and clicks on approve button i need to update one of the field from N to Y in the corresponding Ztable. Once the record is updated from Ztable , that should no longer be visible for the user on the screen.
    I am using table control wizard to display data. I am able to update the Ztable, but that record is not refreshing from the user screen. Any suggestions would be approved.
    Also please let me know if table control is the best way to do this/ alv grid control??

    hi
       REFRESH CONTROL Control-Name FROM SCREEN '0100'  -> use this command to refresh the table control
    to know more, read into
    https://forums.sdn.sap.com/click.jspa?searchID=2934287&messageID=673474
    Re: URGENT HELP REQ IN TABLE CONTROL WIZARD
    if helpful, reward
    Sathish. R

  • How to do IF... ELSE Scenarios through PLDs

    Hi All,
    Do Help me on how i can use If... Else conditions in Formula Editor of PLD. I have an urgent report req that has to be sorted immediately based upon this.
    Thanks & Regards,
    Siju Dasan

    hi Siju Dasan,
    Now, depending upon the result, i want another formula like if ' a != b ' then
    do something
    else
    do something
    you can achieve this by using the "Link to Field" Function on the PLD
    Now, depending upon the result, i want another formula like if ' a != b ' then
    do something using the Link TO Field
    else
    do something Using the Link TO Field
    Hope it helps...
    FIDEL

  • Message bar expanded by default

    Dear All:
    We wish to change the message bar to expanded by default, instead of collapsed by default.
    I've been searching how to do it, but I could not find any information about it.
    How can we personalize the webclient so that the message bar is shown expanded by default?

    Hi Jordi Escoda Ruiz,
    This is an interesting req which peeking my interest. So, i debugged and end up with vain.
    Having said, I observed, CL_BSPWD_BASICS_ERRORVIEW_BASE is the class for formatting the messages.
    Also,  In your user data (transaction SU3) add the parameter BSPWD_USER_LEVEL with the value 9. This will display all messages including technical information within the message area of the WebClient UI.
    9     Only Collect in Trace Mode
    8     Administrator
    6     Experienced User
    3     Office-Based Sales Employee
    1     Customer
    0     None
    I know this may not be answer to your question, but it can help you to find your answer.
    Cheers, Satish

  • Third Party/Android Apps Cant access Internet when connected through Data Network

    hi..
    when i try to access features of third party/android app though data network it shows no internet connection but when connected to wifi, it works properly.
    issue is with only third party/android apps not with apps downloaded from bb world
    urgent update req in this matter

    Tidbits i Wonder if the FCC got things cleared up with the 700 or 800 Blocks that Law Enforcement was supposed to get i know when i sold my scanner it was gearing up to be cluster.. because who was getting what an where..i know when i listen to it some now it's way different than it was on Analog.. I miss also listening to the Railroad and hearing the Amtrak Engineers when they're coming threw here..
    This post was of off topic a bit please excuse and to move back on the thread thanks Tidbits for sharing your Info!  To add it's fun to use the good stuff but good stuff no matter what & were has that little price tag to go with it.. b

  • Plz expalin the functionality of bapi_hu_change_header

    hi all,
       its very urgent, my req is to update the goods movement  status by using the bapi function module and i have to use the fields vegr1 and nambe. if' handling unit is blocked ' this status achieved by setting the value  'R' in the VEGR1 on VEKP table. The initial value of this field must be written to the altranate driver field NAMBE.whenstatus- moving 'from blocked to unrestricted' the handling unit should be reset the original status before the move to blocked. take the value in the NAMBE field and update the VEGR1 FIELD. so plz give solution how can do this with THIS FM.
    KIRAN MADDURI

    also,when i create an empty HU from vlo2n ,the fields packing object and object key are set as
    Outbound Delivery     0080000581          
    but when i use BAPI they are
    Non-Assigned Handling Unit     0000000084          
    will this create the discrepancy with quantity?

  • Very Interesting problem, need urgent resolution

    Hi Guys,
    I have very weird and interesting problem which I have to fix urgently. Appreciate any help you guys can provide.
    I have one query which runs in All our database enviornments but Prod. Our UAT is refreshed by Prod Fortnightly so I am sure that it is not a data problem. I even tried for very small dataset making sure to select same data in UAT and Prod.
    Error:
    ORA-00932: inconsistent datatypes: expected NUMBER got -
    Query:
    select level ,--works if we reomve this
    xmlelement("L1", XMLATTRIBUTES(resource_name as "L1" ,resource_id as "p_resource_id",resource_manager_id as "p_rm_id",FTE, project_hrs ,
                 misc_hrs , total_hrs, avg_tot_hrs, Perc_utilization))
          from (  SELECT   resource_id,
               resource_name,
               resource_manager_id,
               trim(to_char(round(SUM (FTE),1), '999,999,999,999.9')) FTE,
               trim(to_char(round(SUM (project_hrs),1), '999,999,999,999.9')) project_hrs,
               trim(to_char(round(SUM (misc_hrs),1), '999,999,999,999.9')) misc_hrs,
               trim(to_char(round(SUM (total_hrs),1), '999,999,999,999.9')) total_hrs,
               trim(to_char(round(SUM (total_hrs)/decode(SUM (FTE),0,1,SUM (FTE)),1), '999,999,999,999.9')) avg_tot_hrs,
               trim(to_char(ROUND (SUM (project_hrs) * 100 / decode(SUM (expected_project_hrs),0,1,SUM (expected_project_hrs)), 1), '999,999,999,999.9'))
                  perc_utilization
        FROM   (    SELECT   CONNECT_BY_ROOT resource_name AS resource_name,
                             CONNECT_BY_ROOT resource_id AS resource_id,
                             CONNECT_BY_ROOT resource_manager_id AS resource_manager_id,
                             employee_type_code,
                             FTE,
                             project_hrs,
                             misc_hrs,
                             total_hrs,
                             avg_tot_hrs,
                             expected_project_hrs
                      FROM   (    SELECT   r.username resource_name,
                                           resource_id,
                                           resource_manager_id,
                                           employee_type_code,
                                           fte,
                                           project_hrs,
                                           misc_hrs,
                                           total_hrs,
                                           avg_tot_hrs,
                                           expected_project_hrs
                                    FROM   TIME_UTILILIZ_ORG_SUM_L3M_MV r
                              START WITH   resource_id = 129523
                             CONNECT BY   PRIOR r.resource_id = r.resource_manager_id)               
                CONNECT BY   PRIOR resource_id = resource_manager_id)
    GROUP BY   resource_id, resource_name, resource_manager_id)
              start with resource_id =129523 connect by prior resource_id=resource_manager_id; --works if we remove thisIf we remove outermost connect by, it runs so not a xmlelement problem as well. Any idea?
    Edited by: 783830 on Jul 22, 2010 6:58 AM

    I'm not sure if this will help you, but:
    with my_tab as (select 1 resource_id, 0 resource_manager_id, 1 project_hrs from dual union all
                    select 2 resource_id, 1 resource_manager_id, 1 project_hrs from dual union all
                    select 3 resource_id, 1 resource_manager_id, 1 project_hrs from dual union all
                    select 4 resource_id, 2 resource_manager_id, 1 project_hrs from dual union all
                    select 5 resource_id, 2 resource_manager_id, 1 project_hrs from dual union all
                    select 6 resource_id, 0 resource_manager_id, 2 project_hrs from dual union all
                    select 7 resource_id, 6 resource_manager_id, 2 project_hrs from dual union all
                    select 8 resource_id, 7 resource_manager_id, 2 project_hrs from dual),
    --- end of mimicking some data
        results as (select resource_id,
                           project_hrs,
                           prior resource_id prev_resource_id,
                           level lvl,
                           sum(project_hrs) over (partition by connect_by_root (resource_id)) tot_project_hrs
                    from   my_tab
                    connect by prior resource_id = resource_manager_id),
       results2 as (select resource_id,
                           connect_by_root resource_id top_resource_id,
                           project_hrs,
                           prior resource_id prev_resource_id,
                           level lvl
                    from   my_tab
                    connect by prior resource_id = resource_manager_id
                    start with resource_manager_id = 0)
    select r1.resource_id,
           r1.project_hrs,
           r1.tot_project_hrs,
           r2.top_resource_id,
           r2.prev_resource_id,
           r2.lvl
    from   results r1,
           results2 r2
    where  r1.resource_id = r2.resource_id
    and    r1.lvl = 1
    order by resource_id;
    RESOURCE_ID PROJECT_HRS TOT_PROJECT_HRS TOP_RESOURCE_ID PREV_RESOURCE_ID        LVL
              1           1               5               1                           1
              2           1               3               1                1          2
              3           1               1               1                1          2
              4           1               1               1                2          3
              5           1               1               1                2          3
              6           2               6               6                           1
              7           2               4               6                6          2
              8           2               2               6                7          3

Maybe you are looking for

  • Displaying workitem/task execution online rather than in SAP inbox

    Hi All, I am using the workflow WS01000045 when implementing the ESS scenario - Employment and Salary Verification. The user has the option of printing or faxing these details. When the user clicks PRINT the step 81(Print Employment and Salary Verifi

  • Connecting to the Internet via Ethernet

    Hey, I am trying to connect to the internet on my G4 Yikes for the first time using my apartment's ethernet connection. How do I set this up? Does it do it automatically? Thanks for any help!

  • What is error 0xE8000003 and how to fix it ?

    when i plug my iphone 4 on my brand new Imac 27", i have this message. What can I do ?

  • Mutiple Output forms for same PO

    Hi We need mutiple Output forms for same PO. Say PO 1 needs one output called Draft PO & second Output called Final PO. How to achive this? Regards, NNK

  • Database issue

    Hi All, I have a small problem with the database (mysql) that i have set up. So to start off the website is for a funeral directors, within this site is a page where people can donate (http://www.milesfunerals.com/donations_2.php ), they put the name