Sitemap

Amicuk Programming Answers

Doubt about the flow...

-0001-11-30   Views:0

Advertisement

HI all i have the following piece of code, please explain me how the logic works..   LOOP AT T_BAL INTO V_H_BALANCES.     MOVE V_H_BALANCES TO V_TEMP_BALANCES.     AT END OF MATNR.       SUM.       MOVE V_H_BALANCES-KSPEM TO V_TEMP_BALANCES-KSPEM.   

HI all
i have the following piece of code, please explain me how the logic works..
  LOOP AT T_BAL INTO V_H_BALANCES.
    MOVE V_H_BALANCES TO V_TEMP_BALANCES.
    AT END OF MATNR.
      SUM.
      MOVE V_H_BALANCES-KSPEM TO V_TEMP_BALANCES-KSPEM.
      MOVE V_H_BALANCES-SPEME TO V_TEMP_BALANCES-SPEME.
      MOVE V_H_BALANCES-BOTH_QTY TO V_TEMP_BALANCES-BOTH_QTY.
      APPEND V_TEMP_BALANCES TO T_TEMP_BALANCES.
    ENDAT.
    CLEAR V_H_BALANCES.
  ENDLOOP.
and my T_BAL internal table contains these feilds.
TYPES: BEGIN OF TY_BAL,
       WERKS TYPE MARD-WERKS,
       MATNR TYPE MARD-MATNR,
       LGORT TYPE MARD-LGORT,
       SPEME TYPE MARD-SPEME,  " Owned Blocked
       KSPEM TYPE MARD-KSPEM,  " Consigned Blocked
       MEINH TYPE MARM-MEINH,
       MAKTX TYPE MAKT-MAKTX,
       MATKL TYPE MARA-MATKL,
       MVGR4 TYPE MVKE-MVGR4,
       PRAT2 TYPE MVKE-PRAT2,
       COST  TYPE MBEW-VMSAL,
       STPRS  TYPE MBEW-VMSAL,
       PEINH TYPE MBEW-PEINH,
       PH_MATNR TYPE MVKE-MATNR,
       MENGE(16) TYPE P DECIMALS 0, "STPO-MENGE,
       TOT_SPEME(16) TYPE P DECIMALS 0, "MARD-SPEME,
       TOT_KSPEM(16) TYPE P DECIMALS 0, "MARD-KSPEM,
       BOTH_QTY(16) TYPE P DECIMALS 0, "MARD-SPEME,  "SPEME & KSPEM
       END OF TY_BAL.
thanks in advance.

The replay answer
Advertisement
Hi,
In this piece of code, the developer is trying to do the following:
- Loop at every record of the internal table(T_BAL) and get it into  a work area (V_H_BALANCES ).
- Mode the field contents of the work area(V_H_BALANCES ) into another work area (V_TEMP_BALANCES).
- Then for every change of MATNR field he is adding all the numeric fields.
- Then transfering all the fields ( i.e. added fields ) in to another work area (V_TEMP_BALANCES) .
- Adding this new set of record( added values ) from one internal table ( V_TEMP_BALANCES)to the other internal table (T_TEMP_BALANCES).
The result would be somthing as :
Old Internal table(T_BAL):
werks matnr   lgort
0001  screw1 20
0001  screw1 30
0001  screw2 10
0001  screw2  20
Then after you run this piece of code then, the contents of the new interna table (T_TEMP_BALANCES) would be :
werks matnr   lgort
0001  screw1 50
0001  screw2 30
Hope that makes the picture a lil clear.
Award points if founf useful.
Best Regards.
Ashish Singhal.

Go to See the other 2 answers

Doubt in Cash flow Statement Query

Category:DefaultRelease time:2015-10-11Views:130

Hi all,     In FI module i am trying to create query 'Cash flow statement' using infocube 0figl_c01. For 'cash inflow' i restricted to debit postings for G/L account char. with two account number (200602 & 200611 as given by finance dept.) But the va[More]

Doubt about the flow...

Category:DefaultRelease time:-0001-11-30Views:130

HI all i have the following piece of code, please explain me how the logic works..   LOOP AT T_BAL INTO V_H_BALANCES.     MOVE V_H_BALANCES TO V_TEMP_BALANCES.     AT END OF MATNR.       SUM.       MOVE V_H_BALANCES-KSPEM TO V_TEMP_BALANCES-KSPEM.   [More]

BDOC message flow and its architecture

Category:DefaultRelease time:2015-10-11Views:130

Hi Expert, It can be a simple question but i have a doubt regarding the flow of messages using SAP CRM middleware. The scenario is like: 1. Message flows from ECC to CRM through a BDoc. (It can be opposite way also) 2. The BDoc fails in CRM due to so[More]

How to extract the actual cash flows into the needed cash flow structure ba

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts,    I've doubt on Cash flow.    My requirement is extraction of actual cash flow  into needed cash flow     structure based on SAP Liquidity calculation module. I am new to this SAP liqudity planning module. so i need some documentation re[More]

[solved] Mount/unmount extremely slow (relatively)

Category:DefaultRelease time:-0001-11-30Views:130

When I first installed my system, mounting and unmounting took a relatively unnoticeable amount of time.  Now, mounting a single volume takes about a minute or more per volume, even for tmpfs volumes.  I don't seem to see any other performance proble[More]

Objective settings

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am working on appraisal wherein i need expert help. Our requirements is: T otal number of columns in the form is 7 1.Criterion group [job knowledge, skills & behaviour,...] 2.Criteria  [ eg. within job knowledge - employee has complete job know[More]

Process Chain Flow doubt

Category:DefaultRelease time:-0001-11-30Views:130

Hi, There is a process chain of flow start>Infopackage>DTP>ActivateDSO_->InfoPackage1>DTP1>ActivateDSO1_ Only doubt starts where it is underlined. why the infopackage1 has been linked after the Activate DSO eventhough no dependency for D[More]

Doubts about checkings in FLOWS for a DataObject.

Category:DefaultRelease time:-0001-11-30Views:130

Hi to all. If I have a DO with 3 methos, getlist, getldetail and modify. Getlist returns one register . For that register, getdetail returns 2 children. The method modify, modifies the two children in R3. If I create o modify o delete the key registe[More]

Some doubts on UCCE CVP comprehansive call flow.

Category:DefaultRelease time:-0001-11-30Views:130

hi, What is the configuration on CVP that forwards call to ICM. as i am not able to find any configuration in OAMP or CVP that target to ICM. the flow is as follows- VG-CUSP-CVP-VRUPG-ICM-CCMPG-CUCM Thanks and Regards- PKHi, There is no much configur[More]

Work Flow Doubt

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts, I have a custom business object(An extension of the standard one BUS2012). Say I have a method abc. I have defined some importing parameters for this method. To get the data from the workflow container, i have used the following statement[More]

Doubts about security, work flow and BPF

Category:DefaultRelease time:-0001-11-30Views:130

Hi Anybody can tell me a resume about how to do this next problem below? I suppose that with BPF, have 2 tasks(A,B). And A has 2 subtasks (A1,A2). For example: A1 is used to introduce information                     A2 is used to apply business rules[More]

Hot
Hi all, here i create one new company code and business area and done all procedure related with it. but now when i create sales order this time i done delivery but when i post this order this time system give me a error like "NO DIRECT POSTING IS PO [More]
I am having trouble burning a DVD that will not freeze. All of them come out and are read by DVD players of all kinds, but it gets about 3 minutes into the video, and it freezes. I saved as Image to Disk, and it went through the Burning process flawl [More]
I have a problem with iCloud sync and files on my iPhone and iPad. I could use and open my files in Numbers App on my devices always. But today I can not. This happened to ALL my files. I also can not open and use on PC in iCloud website. I have atta [More]
Greetings, I have I believe gotten t understand just about all I need for now about building web sites with iWeb and its templates (for now). Works well. I am publishing to my .Mac account (for now). Now, I want to fully understand how photos albums/ [More]
I am stuck. I can not figure out how to get the microsoft office that is on my (admin) profile dock onto the dock for the other users on my mac. Can anyone help me out?ebony -- So, when you open your main Applications folder, there is no Office app t [More]
Hello All. Okay, so I am new the Mac community. This fall I am planning on buying a Mac, but I was wondering if someone could tell me the different specs I would need for school work and gaming.  Would it be better to get the Macbook Pro 15" or 13&qu [More]
HI, We are looking at ways to make a automatic clearing with special G/L indicator for bill of exchange. Does anyone who knows the way to make this recording from f.13 or similar tcode? Thanks Best RegardsDear Emanuele, In reference to your question [More]
Hallo Experts, I am working on a hierarchy structure. I use the activate Hierarchy Display in the Query Designer. I try to expand my query till level "2". But I actually want only the 2 level report and the 1st level should be hidden. Can anyone [More]
how to get temperature from digital camera in polarising microscope using t95 controller without adc.dll  Ask the manufacturer of your camera- What kind of answer do you expect?Read other 2 answers [More]
Hello there! I've got a problem: There is a user test_user, and there is a form test_form, test_user has an access to this form as write, and has an access directly to all lowest level dimensions used in this form. In pages there are two members: uni [More]