Batch split posting to Profitability Analysis
Hi All,
I am doing a batch split and when i create the invoice, i am getting two line items (corresponding to two batches with appropriate values). But there is only a single profitability analysis document being created for this, with the total values from both the batches. Say, i have split into two batches 2000 and 1000, then when i check the profitability doc. the batch number is showing as 2000 with the total quantity in 2000 and 1000 batches. Is this the way the standard is or is there any customizing that needs to be done to rectify this and create two Profitability analysis docs. for each batch that was created?
Thanks in advance.
Has the batch been created as a characteristic and included into your PSG characterisics (KEQ3)?
Cheers.
Similar Messages
-
Cost became doble in profitability reoport when picking using batch split
Hi friends,
When we do picking use batch split, cost(material external price) shows double in profitability report. everything else looks normal.
What did we miss?
Thanks in advance,
LindaDid you check the copy control settings in VTFL? At item level, check the box cumulate cost and test again.
Regards, -
Customizing Monitor in Profitability Analysis
Hello SAP-team!
What functions are provided by the Customizing Monitor in Profitability Analysis?
ps: thanks to SAP-community!
EugeneHi,
Customizing monitor in Profitability analysis as follows..
General topics:
35288 Technical Documentation CO-PA
69384 Account-based Profitability Analysis
199467 New act assignment table as of Release 4.5
2. Master data:
a) Characteristics and value fields:
13377 Naming conflicts in characteristics and value fields
21207 Deleting a charctrstc/value field from an op.concern
40336 Maintaining foreign keys for characteristics
76493 Changing texts of characteristics or value fields
b) Characteristics derivation and submission of characteristics values
32719 Customer hierarchy in CO-PA
33968 SD/CO-PA: Characteristics from sales document tables
36557 SD/CO-PA: Transfer partner functions to CO-PA
62690 Product hierarchy in CO-PA
93652 Info: Variant configuration in CO-PA
134889 Info on derv. of char:Why not all flds avail.?
148609 Char.deriv.:deriv. rule vals miss.aft.upgrade&trnsp.
172740 Techn.docum.charct. derivtn as of Release 4.0
c) Valuation
40408 Valuation for record types 'B' and 'C'
62536 Valuation using conditions in Profitability Analysis
67240 Info: Valuation with material cost estimate
111232 INFO: Valuation for materials valuated separately
144337 INFO rounding differences: Valuation with costing
142628 Behaviour of user exit in periodic valuation
3. Actual data transfer:
20254 Values from SD are not transferred to CO-PA
37114 Incorrect setup/reversal of provisions
33178 +/- sign logic in CO-PA (SD/FI interface)
52849 Transfer of conditions with +/- signs
39635 Profitability segment by substitution exits
64768 FI/CO-PA: Problems with exchange rate differences
87704 Cost-of-goods-sold Reconciliation: FI to Co-PA
83702 Acct assignmt logic sales order proc. - REM
111309 Transfer of quantities into CO-PA
185826 Enhancement COPA0005
a) Correction of data inconsistencies
69370 Clearing data inconsistencies in CO-PA
70718 Correctn of data inconsistency for order recpt
140457 Correcting data inconsstncs in incoming orders
126937 Correction of billing data inconsistency
93051 Restructure of the segment level from line items
4. Planning:
67191 Useful tips on the CO Planning Processor
72110 KE11: Long runtimes/timeout
77476 Information: Top-down planning
124598 CO-PA Planning: FAQs
5. Information system:
21773 Performance in reporting (summarization data)
83204 Usage strategy for summarization levels
136216 Fast rollup for summ. levels for costing-based CO-PA
6. Tools:
134430 Euro conversion and CO-PA
19015 Termination during external data transfer
19410 Characteristic validation during external data transfer
44658 Error with batch input for KE21
40994 Transport Profitability Analysis (CO-PA) to 3.0
52636 CO-PA Customizing transport
128862 Transport Customizing CO-PA in 4.0A/B
131664 Transport of operating concern structures 4.0
144015 Client copy and CO-PA/EC-EIS
65999 Information: Supported ALE scenarios in CO-PA
94458 CO-PA Realignments: documentation
113050 Segment table repair after realignments
127334 Missing archiving of profitability segments
199959 Change assignmt for operating concern
67839 Generating parts of an operating concern environment
69829 Delete operating concern in Release 3.0
106314 Delete operating concern in Release 3.1
562043 - Transfer actual costs to Profitability Analysis
544241 - INFO:Customizing Monitor new fnc 'Report Overview'.
429517 - INFO: Currency translation Billing document -> CO-PA
428563 - Material cost estimate valuatn: Translaton for posting date
400237 - CO-PA INFORMATION: Line item in company code currency
199959 - Information: change assignmt for operating concern
199467 - Info: New act assignment table as of Release 4.5
185826 - Information: Enhancement COPA0005
172740 - Info.:Techn.docum.charct.derivtn as of Release 4.0
148609 - Char.deriv.:deriv.rule vals miss.aft.upgrade&trnsp.
144337 - INFO rounding differences: valuation with costing
144015 - CC-INFO: client copy and CO-PA/EC-EIS
142628 - Behaviour of user exit in periodic valuation
140457 - Info:Correcting data inconsstncs in incoming orders
136216 - Fast rollup for summ.levels for costing-based CO-PA
134889 - CO-PA Info on derv.of char:Why not all flds avail.?
134430 - Information: Euro conversion and CO-PA
131664 - INFO: Transport of operating concern structures 4.0
128862 - INFO: Transport Customizing CO-PA in 4.0A/B
127334 - Missing archiving of profitability segments
126937 - INFO: Correction of billing data inconsistency
124598 - Info: CO-PA planning: frequently asked questions
113050 - Segment table repair after realignments
111309 - INFO: Transfer of quantities into CO-PA
111232 - INFO: Valuation for materials valuated separately
106314 - Delete operating concern in Release 3.1
94458 - CO-PA Realignments: documentation
93652 - Info: Variant configuration in CO-PA
93051 - Restructuring the segment level from line items
83702 - INFO: Acct assignmt logic sales order proc. - REM
83204 - Usage strategy for summarization levels
77476 - Information: top-down planning
76493 - Changing texts of characteristics or value fields
75334 - INFO:Downloading CO-PA correctn package fm SAPSERV
72110 - KE11: Long processing times / timeout
70718 - INFO:Correctn of data inconsistency for order recpt
69829 - Delete operating concern in Release 3.0
69384 - Information: Account-based Profitability Analysis
69370 - INFO: Clearing data inconsistencies in CO-PA
67839 - Generating parts of an operating concern environment
67240 - Info: valuation with material cost estimate
67191 - Info: Useful tips on the CO Planning Processor
65999 - Information: Supported ALE scenarios in CO-PA
64768 - FI/CO-PA: Problems with exchange rate differences
62690 - Info: product hierarchy in CO-PA
62536 - Info: Conditions in Profitability Analysis
52849 - INFO: Transfer of conditions with +/- signs
52636 - INFO: CO-PA Customizing transport
44658 - Error with batch input for KE21
40994 - INFO:Transprt Profitability Analysis (CO-PA) to 3.0
40408 - Info: Valuation for record types "B" and "C"
40336 - Info: maintaining foreign keys for characteristics
39635 - Info: finding the profitability segment using a substitution
37114 - Incorrect setup/reversal of provisions
36557 - Info SD/CO-PA:transfer partner functions to CO-PA
35288 - Profitability Analysis: Technical Documentation
33968 - SD/CO-PA: Characteristics from sales doc tables
33178 - INFO: +/- sign logic in CO-PA (SD/FI interface)
32719 - INFO: Customer hierarchy in CO-PA
21773 - Performance in Reporting (Summarization data)
21207 - Deleting a charctrstc/value field from an op.concern
20254 - INFO: Values from SD not transferred to CO-PA
19410 - INFO: Char.validity check f.external data transfer
19015 - Termination during external data transfer
13377 - INFO: Naming conflicts in charactrst. & value flds.
Thanks
Prasada -
Batch split not happening during delivery
Hi Experts,
I have enough of stock for a material with different batches (with different expiry dates). When I create an order for qty 100, system confirms it on a certain date taking 1st batch nearest to expiry date, as per the search startegy set in the cponfiguration.Please note here that the batch that system picks has got only 50 qty in stock, but it shows whole 100 qty against it. Probably because Batch split is not possible during sales order creation, hence system showing whole qty against one batch.
Now, when I try to create delivery, it shows only 50 qty of the same batch in delivery document. I select the line item and go to the "Batch split" tab to effect batch split, but system does not allow. It says "Batch already specified for material".Here is the detail for your analysis-
Batch in item 000010 already specified for material 2000978
Message no. VL221
Diagnosis
The batch was either predefined in the sales order that the delivery is based on or it was assigned to the delivery item manually. Therefore, you can no longer carry out a batch split for the delivery quantity of the items.
Procedure
In order to make the batch split possible, you can cancel the assignment of the delivery item to the batch, if the delivery's processing status allows.
Kindly advise.
Thanks in advance,
RandhirThanks Mr. P Gomatheeswaran,
Now batch is not being determined during sales order creation, that's fine.While creating delivery,when I select line item and go to Batch split tab I can see batches being split in two, which is OK. But when I try to put Picking quantity as delivery qty, system says "Picked quantity is larger than the qty to be delivered".(Message no. VL019).
Also Storage location field is grayed out.
Regards,
Randhir -
WS_DELIVERY_UPDATE doesn't create batch split in IBD
Hello,
I am using the FM WS_DELIVERY_UPDATE to update the Inbound delivery and post GR against it. The problem I am facing is that when there is a batch split for a line item, the same is not being reflected in the IBD. The GR happens successfully but the only problem is batch split of items not happening.
Can anyone help me with what parameters I might be missing?
Below is the call that i make to the FM
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = lv_vbkok_wa
delivery = lv_vbeln
if_error_messages_send_0 = 'X'
TABLES
prot = lt_prot
vbpok_tab = lt_vbpok.
regards,
PriyankThis Might help you
Re: Delete handling unit -
Dear all,
I need a batch split in return deliveries.
The return(V1) and return delivery(V2) is already created.
Via EDI I got the message with the batch split information(Message type WHSCON, Basic Type: DELVRY1).
After processing the EDI-Document the delivery is goods issue posted without batch split and the quantity in the main item is changed to zero.
Any idea how I can get the correct batch split in the delivery before the goods issue posting?
Kind regards
FrankHave a look at the following notes:-
Note 489476 - Batch split for returns delivery
Note 2001614 - Return delivery creation via VL60 fails for batch split items
G. Lakshmipathi -
No batch split performed for delivery, instead 2 items
Hi,
I have batch managed materials and during creation of the delivery, the system does not create a batch split, instead it created 2 seperate line items for each batch.
This is causing problems during EDI invoicing (intracompany): the same item multiple times in the deliveyr means the same item multiple times on the invoice and the EDI invoice cannot be posted.
Any configuration available to get the batch split instead of seperate items?
Thanks,
MZIts a std batch split process.
as per above in example, if the order qtty is 351 TO, then system will determine 2 batches, if in VCH2, number of splits maintained more than 1.
What exactly you are expecting?
*at delivery level it should determined two batches separately & pickup complete from the batch*
pick up complete from the batch - means what. its incomplete. -
No Single batch split item created in delivery during picking
Hello,
When there is only one batch split item, SD_DELIVERY_UPDATE_PICKING is not creating batch split item (90001) if delivery quantity is equal or less than picking quantity...I didi search for SAP Note (1360407) and found one which is applicable only to P3A Component.
Instead of batch split it updates at item level itself. Now if again i post an IDOC with 2 batch split, then it adds both picking quantity and update the same line item itself.
This is much worse. Any one faced this issue before???
Thanks to update me
Regards
HariWhen the batch is the same, regardless of the number of times the same batch is picked, the update to the delivery will be to the same header line item. The batch split (delivery line split with parent and child line items) will occur only when there are multiple batches picked against the same header line item. Since this behavior is standard SAP I'm doubtful that this can be changed via an exit or BADI (I couldn't find one to influcence this).
-
No posting in profitability document
Hi
I have created a new sales pricing condition in DV1 and have missed a step somewhere that assigns it so it posts a profitability document and shows up in the CO PA. Here are the steps that I did set up:
DV1K924795 DV1K New Order Reason Licensing
SPRO > Sales & Distro > Sales > Sales Documents > Sales Document Header > Define Order Reasons. New one is #375 Licensing.
DV1K924799 DV1K New Pricing Condition for Licensing Revenue
SPRO > Sales & Distro > Basic Functions > Pricing > Pricing Control > Define Condition Types. New one is ZLIC Licensing Revenue.
DV1K924801 DV1K Add new pricing cond ZLIC to Pricing Procedure ZCHCRE
SPRO > Sales & Distro > Basic Functions > Pricing > Pricing Control > Define and Assign Pricing Procedures > Maintain Pricing Procedures. I added it to ZCHCRE as step 69.
DV1K924803 DV1K Define Account Key ZLC for License Revenue
SPRO > Sales & Distro > Basic Functions > Account Assignment/Costing > Revenue Account Determination > Define and Assign Account Keys.
The new key is ZLC License Revenue.
SPRO > Sales & Distro > Basic Functions > Account Assignment/Costing > Revenue Account Determination > Assign GL Accounts > General. In sales org 1000 & 3500 assigned gl 43099.
DV1K924809 DV1K Assign new Price Cond ZLIC to COPA
SPRO > Controlling > Profitability Analysis > Flows of Actual Values > Transfer of Incoming Sales Orders > Assign Value Fields > Maintain Assignment of SD Conditions to CO-PA Value Fields. I added ZLIC to VVCRE.
I can create a sales order and bill it. It posts to the correct GL but it does not post a profitability document and it does not show up in CO PA when I run report Profitability by Customer out of KE30. Please let me know what I missed and I will add it to my steps in case I ever have to create another.
Regards
kaushalHi Prabal da
Welcome to SDN!
If you are talking about consumption postings generated from back flushing from MFBF - Then the CO object is the Prod order or Cost Collector in such cases
Since, CO Object is already found, OKB9 does not work in this
Check your Prod order or Cost collector... The GI postings would already be lying there
If I have not understood your case properly, do let me know
br, Ajay M -
Profitability Analysis for Project and Project Team
Hello Experts,
Need your ideas and expertise to the below business case, could be simple or complicated, please provide some insight.
the business case is like this. 2 specific project teams are available. there can be around 10 projects executed in a year. So in our PS we can have project team allocated to a project. workforce planning is done for the project for effective utilization, it is like 2 projects with 2 teams assigned. till now it is fine. the business calls for that 1 st team is assigned to another project only after closure of the assigned project.
Let us assume P1, P2,...P10 are the projects in a year. Assume T1, T2 are the teams available. Initially T1 is assigned to P1, T2 is assigned to P2.
Business confirms that T1 will be assigned to P3 only after completion of P1. This requirement is also straight. Assume that team T1 has executed 6 projects and team T2 has executed 4 projects.
The requirement is profitability analysis at project level i.e at P1, P2, ...P10 which is also pretty straight. Business requirement is also to have profitability analysis against each team i.e for T1 and T2. it is like each team has a project lead and team assigned under him. based on the expenses and revenue booked against the team, there will be performance evaluation of the team.( assume that P1, P3, P5, P6, P8,P9 are the projects executed by team T1, we need to have revenue and expenses of the said projects to be mapped to team T1 as well), so we have profitability analysis at team level.
Experts, require your advice on how to map the requirement. Is there any possibility to map projects to team rather assigning team to a project. please advice. provide some insight on how do we map the scenario.
Regards,
MurthyHello Murthy,
In SAP you carry out Month end closing activities. In order to carry out this activity, you post all period based data on the project. Subsequently data relevant for Profitability analysis can be determined for the given period and then this data can be settled to COPA.
This data can be evaluated in the project information system or in Profitability analysis.
You can check report KE30 for Profitability Analysis.
Refer SAP help for more details
http://help.sap.com/saphelp_erp2004/helpdata/en/7a/4c3aad4a0111d1894c0000e829fbbd/content.htm
Regards
Tushar -
Batch split items to feature in billing document
Dear Friends,
While creating replenishment delivery through VL10B against P.O., batch split is taking place. My requirement is , while creating the billing document the main item should not feature and only the batch items should show in the billing document. Thereafter the same should show in the print preview.
Please suggest how the same can be done. As per some existing threads, i have changed the billing relevance of the item categoty to M and also i have maintained G as billing quantity in copy control VTFL. But that does not solve the problem.
I shall be obliged if anybody can suggest some solution.
Regards
RajaHi,
I really doubt if this can work or not.. but still then you can give a try:
- Just put "P" as billing relevance in your item category and check if your requirement fulfills or not...
- VTFL config is ok as you have done.
I have never tried this kind of thing but you may try and post back..
Hrishi -
CAPTURING OF COST IN PROFITABILITY ANALYSIS FOR BY PRODUCT
Dear Team,
We had a requirement when standard material cost estimate is executed we can get the standard price for main material as well as by product for which values are flowing to COPA (T.code KE30).
The scenario works fine for Main Product, since the actuals as well as Costs are flowing to COPA. Where as only actuals are posting to byproduct as there are no separate cost estimate for Byproduct.
So only acutals are caputured to Profitability analysis.
At present we are manually changing the price of the byproduct material through MR21 which is constant through out the period.
Our requirement:- Since Byproduct doesnt have any separate BOM and Routing, Is it possible to capture this byproducts price to COPA.
or
capturing of COGS for this byproducts price is also ok.
Please anybody can guide me.
Thanks & regards,
SandeepDear Santosh,
Thanks for your early reply.
It might work, Please elaborate.
Request you to send any document if you have any, since i am new in CO.
it was availbale in my user profile.
Thanks & regards,
Sandeep -
Batch split in Idoc DESADV.DELVRY01
Hi,
my scenario is non-SAP --> xi --> SAP for dispatch notifications. The sender system provides batch information on line item level, sometimes with batch split.
I am looking for a possibility to post the dispatch advice in R/3 with batch split. I already tried with multiple E1EDL24 segments and with E1EDL15, but with no success.
Does anybody have experience with batch splits in SAP Idocs or can anybody help me with a documentation?
Thanks a lot,
Philipphello Philipp, all you have to do is to fill the fields CHARG, HIPOS, HIEVW, only have to fill the fields HIPOS and HIEVW in the sub-items segments, then you have to manually assign these fields to the structure that receives them, for example in the user exit "EXIT_SAPLV55K_011" the structure that receives these fields is DELIVERY_COM.
Example:
IF IDOC_SEGMENT-SEGNAM = 'E1EDL24.'
l_es_e1edl24 = idoc_segment-sdata.
it describes table DELIVERY_COM lines reg.
if sy-subrc = 0 and reg> 0.
loop at delivery_com into l_ti_delivery from reg to reg.
l_ti_delivery-charg = l_es_e1edl24-charg.
l_ti_delivery-lichn = l_es_e1edl24-charg.
l_ti_delivery-chspl = 'X.'
l_ti_delivery-uecha = l_es_e1edl24-hiccups.
modify delivery_com from l_ti_delivery transporting charg lichn chspl uecha.
endloop.
endif.
endif.
i hope this information can help you.
best regards.
Cesar Becerra. -
BAPI for Inbound Delivery Batch Split
Hello Friends,
I need any BAPI/BADI to assign batch split items to inbound delivery. In out scenario, we generate transfer posting in MIGO with split batches and during inbound delivery generation in background, system generates seperate line items instead batch split items. Now we need any BAPI/BADI to assign the batch split items during inbound delivery creation/change.
Appreciate your support
Best Regards,
GouthamHi Goutham,
Please trt to use the BADI LE_SHP_DELIVERY_PROC - methods FILL_DELIVERY_ITEM and CHANGE_DELIVERY_ITEM when VB_CREATE_BATCH is called.
As per note 317531 it is not possible to create bacthes in an SAP standard system via VL31N. There's no update on table MCHA even if you enter a new batch in the inbound delivery.
I hope this information helps you.
Kind regards,
Fábio Almeida
MM Consultant -
Hi
I am required to add batch splitting logic in below code.
Any one tell me how to do this
PERFORM get_invoice_data.
PERFORM filter_invoice_data.
FORM get_invoice_data.
SELECT k~vkorg k~vbeln k~fkart k~vtweg k~fkdat "CHOYT CHG#1589121
k~waerk k~bzirk k~regio
k~BSTNK_VF "Mod-010++
p~posnr p~vkgrp p~vkbur p~mvgr5 p~matnr
p~arktx p~fkimg p~vrkme p~netwr p~mwsbp
p~aubel p~vgbel p~vgtyp
p~charg p~werks k~fkart
k~xblnr
INTO CORRESPONDING FIELDS OF TABLE t_vbrp
FROM vbrk AS k INNER JOIN vbrp AS p
ON k~vbeln = p~vbeln
WHERE k~vkorg IN s_vkorg "<< MOD CHOYT CHG#1589121
AND k~fkdat IN s_fkdat
AND k~vtweg IN s_vtweg
AND k~rfbsk = 'C' " Accounting document has been created
AND vkgrp IN s_vkgrp
AND vkbur IN s_vkbur.
ENDFORM. " get_invoice_data
FORM filter_invoice_data.
DATA lt_vbpa LIKE t_vbpa OCCURS 0 WITH HEADER LINE.
If not t_vbrp[] is initial. "Mod-004++
REFRESH lt_vbpa.
SELECT vbeln parvw kunnr
FROM vbpa
INTO CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND posnr = '000000'. " Header partner
SELECT vbeln parvw kunnr
FROM vbpa
APPENDING CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND parvw = 'WE'. " Header partner
Endif. "Mod-004++
SORT lt_vbpa BY vbeln.
t_vbpa[] = lt_vbpa[].
LOOP AT lt_vbpa WHERE vbeln = t_vbrp-vbeln
AND parvw IN s_parvw
AND kunnr IN s_kunnr.
EXIT.
ENDLOOP.
IF sy-subrc <> 0.
DELETE t_vbrp.
ENDIF.
ENDLOOP.
IF c_prf = 'X'. "KA01
SORT t_vbrp DESCENDING BY posnr vbeln fkart. "KA01
SORT t_vbrp DESCENDING BY vgbel fkart.
LOOP AT t_vbrp WHERE rfbsk NE 'C'.
t_vbrp_c = t_vbrp.
APPEND t_vbrp_c.
DELETE t_vbrp.
ENDLOOP.
SORT t_vbrp_c DESCENDING BY vgbel vgpos vbeln.
DELETE ADJACENT DUPLICATES FROM t_vbrp_c
COMPARING vgbel vgpos fkart.
LOOP AT t_vbrp_c.
t_vbrp = t_vbrp_c.
APPEND t_vbrp.
ENDLOOP.
SORT t_vbrp.
ENDIF. "KA01
ENDFORM. " filter_invoice_dataHi Kumar,
You should format your code before posting... I have done it and put it just below :
PERFORM get_invoice_data.
PERFORM filter_invoice_data.
FORM get_invoice_data.
SELECT k~vkorg k~vbeln k~fkart k~vtweg k~fkdat "CHOYT CHG#1589121
k~waerk k~bzirk k~regio k~BSTNK_VF "Mod-010++
p~posnr p~vkgrp p~vkbur p~mvgr5 p~matnr
p~arktx p~fkimg p~vrkme p~netwr p~mwsbp
p~aubel p~vgbel p~vgtyp p~charg p~werks k~fkart k~xblnr
INTO CORRESPONDING FIELDS OF TABLE t_vbrp
FROM vbrk AS k
INNER JOIN vbrp AS p
ON k~vbeln = p~vbeln
WHERE k~vkorg IN s_vkorg "<< MOD CHOYT CHG#1589121
AND k~fkdat IN s_fkdat AND k~vtweg IN s_vtweg
AND k~rfbsk = 'C' " Accounting document has been created
AND vkgrp IN s_vkgrp AND vkbur IN s_vkbur.
ENDFORM. " get_invoice_data
FORM filter_invoice_data.
DATA lt_vbpa LIKE t_vbpa OCCURS 0 WITH HEADER LINE.
IF NOT t_vbrp[] IS INITIAL. "Mod-004++
REFRESH lt_vbpa.
SELECT vbeln parvw kunnr FROM vbpa
INTO CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln
AND posnr = '000000'. " Header partner
SELECT vbeln parvw kunnr FROM vbpa
APPENDING CORRESPONDING FIELDS OF TABLE lt_vbpa
FOR ALL ENTRIES IN t_vbrp
WHERE vbeln = t_vbrp-vbeln AND parvw = 'WE'. " Header partner
ENDIF. "Mod-004++
SORT lt_vbpa BY vbeln.
t_vbpa[] = lt_vbpa[].
" I believe that you have forget the following line, isn't it?
LOOP AT t_vbrp.
" ^^^^^^^^^^^^^^
LOOP AT lt_vbpa WHERE vbeln = t_vbrp-vbeln
AND parvw IN s_parvw
AND kunnr IN s_kunnr.
EXIT.
ENDLOOP.
IF sy-subrc 0.
DELETE t_vbrp.
ENDIF.
ENDLOOP.
IF c_prf = 'X'. "KA01
" Are you sure you want to sort your internal table twice ???
SORT t_vbrp DESCENDING BY posnr vbeln fkart. "KA01
SORT t_vbrp DESCENDING BY vgbel fkart.
" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
" I don't understand why you delete some lines in T_VBRP
" that you after insert again in T_VBRP
" (a sort change nothing to the content)???
LOOP AT t_vbrp WHERE rfbsk NE 'C'.
... " here I have skipped some lines
ENDLOOP.
" ^^^^^^^^^^^^^^^^^^^
SORT t_vbrp.
ENDIF. "KA01
ENDFORM. " filter_invoice_data
I have insert some remarks about your code : some lines seems strange! But for your question, what do you mean by batch splitting logic? Could you explicit? Thanks!
Samuel
Maybe you are looking for
-
Child Report Window Size XI 3.0 SP2
Hi All, I know that you can do this in javascript, i.e. create a child window of a smaller size when clicking a hyper link, I think the parameters called window.resizeTo(X,Y). I know there is no BO supported open doc parameter for this, but was wonde
-
I deleted some data to free up icloud and it still says full what can i do?
i have a 4s and my screen cracked i am goin to the apple store to get another phone but my icloud stated its almost full, i had a replacement phone since march and the backup was last 3/27/13 along with the new phone but my current phone has not been
-
Cloned iMac drive onto a new macbook???
hey all, I am converting our family pc from an intel 20" iMac to a new 2.4ghz macbook. I have a current copy of my iMac drive made by CCC onto a firewire drive. I was going to just boot off that drive on my new macbook then clone the drive onto the m
-
Suggestions for Added features on the SW2
Hi Just thought i would ask for a some features to be added you never know someone could listen hehe 1. Turn on the Backlight by a flick of the wrist, At night the only way to view the time is to press the button , the Pebble can do it so i'm s
-
I don't have any more details.....each time i tried to open it to download it, i keep getting the same message.