Problem creating Header Condition in BAPI_PO_CREATE1
Hello Gurus,
I am having problems with creating a header conditions using the BAPI BAPI_PO_CREATE1. I am filling up table such as: POCONDHEADER, POCONDHEADERX.
It creates a PO document but the header conditions I supplied is not included.
How do I go about this?
Can you guys give a sample code for this?
Need your urgent response on this matter.
Thanks,
Jeffrey
Hai
Check the following Code
DATA: g_s_poheader TYPE bapimepoheader,
g_s_poheaderx TYPE bapimepoheaderx.
DATA: l_no_messaging TYPE char1.
DATA: bednr LIKE wvfb-bednr.
DATA: l_t_return LIKE bapiret2 OCCURS 0.
DATA: l_t_poitem STRUCTURE bapimepoitem,
l_t_poitemx STRUCTURE bapimepoitemx,
l_t_poschedule STRUCTURE bapimeposchedule,
l_t_poschedulex STRUCTURE bapimeposchedulx,
l_t_poaccount STRUCTURE bapimepoaccount,
l_t_poaccountx STRUCTURE bapimepoaccountx,
l_t_pocond STRUCTURE bapimepocond,
l_t_pocondx STRUCTURE bapimepocondx.
CALL FUNCTION 'BAPI_PO_CREATE1'
EXPORTING
poheader = g_s_poheader
poheaderx = g_s_poheaderx
no_messaging = l_no_messaging "RWI-47-20-messaging
IMPORTING
exppurchaseorder = bednr
EXPHEADER =
TABLES
return = l_t_return
poitem = l_t_poitem
poitemx = l_t_poitemx
POADDRDELIVERY =
poschedule = l_t_poschedule
poschedulex = l_t_poschedulex
poaccount = l_t_poaccount
POACCOUNTPROFITSEGMENT =
poaccountx = l_t_poaccountx
pocond = l_t_pocond
pocondx = l_t_pocondx.
Thanks & regards
Sreenivasulu P
Similar Messages
-
Problem creating Service POs with BAPI_PO_CREATE1
Hi.
I'm trying to create service POs with data that i read from an excel file, to do this I'm using the bapi: <b>BAPI_PO_CREATE1</b> I'm passing the following parameters:
IMPORT:
- poheader
- poheaderx
TABLES:
- return
- poitem
- poitemx
- poaccount
- poaccountx
- poservices
- posrvaccessvalues
- poservices text
- extensionin
When I execute the bapi, I'm getting the following messages into table return:
<i>W - Error transferring ExtensionIn data for enhancement CI_EKKODB
E - No instance of object type PurchaseOrder has been created. External reference:
E - PO header data still faulty
E - Purchase order date is in the past
I - Change WBS Element could not be effected
E - You cannot maintain service specs. due to incomplete transfer structure</i>
Can anybody, please say me what am i doing wrong? How this bapi works?
Regards.
Gregory.Hello My friend
Check this code:
Code listing for: LZMMIUP001F01
Description: Include LZMMIUP001F01
***INCLUDE LZMMIUP001F01 .
*& Form fill_item
text
-->P_WA text
FORM fill_item TABLES: poitem STRUCTURE bapimepoitem "Item Data
poitemx STRUCTURE bapimepoitemx "Item Data (Change Parameter
USING wa STRUCTURE zlo_mmcnv009
package.
item number
poitem-po_item = wa-itemnum.
poitemx-po_itemx = 'X'.
poitemx-po_item = wa-itemnum.
IF package <> ''.
poitem-pckg_no = package.
poitemx-pckg_no = 'X'.
ENDIF.
*Account Assignment Category
IF wa-category <> ''.
poitem-acctasscat = wa-category.
poitemx-acctasscat = 'X'.
ENDIF.
*Item Category in Purchasing Document
IF wa-itemcat <> ''.
poitem-item_cat = wa-itemcat.
poitemx-item_cat = 'X'.
ENDIF.
*Short Text
IF wa-sortxt <> ''.
poitem-short_text = wa-sortxt.
poitemx-short_text = 'X'.
ENDIF.
*Material Number
IF wa-material <> ''.
poitem-material = wa-material.
poitemx-material = 'X'.
ENDIF.
Unit of Measure
IF wa-undmesure <> ''.
poitem-po_unit = wa-undmesure.
poitemx-po_unit = 'X'.
ENDIF.
*Purchase Order Quantity
IF wa-quantity <> ''.
poitem-quantity = wa-quantity.
poitemx-quantity = 'X'.
ENDIF.
*Net Price in Purchasing Document
IF wa-netprice <> ''.
poitem-net_price = wa-netprice.
poitemx-net_price = 'X'.
ENDIF.
*Plant
IF wa-plant <> ''.
poitem-plant = wa-plant.
poitemx-plant = 'X'.
ENDIF.
*Material Group
IF wa-matgrp <> ''.
poitem-matl_group = wa-matgrp.
poitemx-matl_group = 'X'.
ENDIF.
*Free Item
IF wa-free <> ''.
poitem-free_item = wa-free.
poitemx-free_item = 'X'.
ENDIF.
APPEND poitem.
APPEND poitemx.
ENDFORM. " fill_item
*& Form fill_header
text
-->P_WA text
FORM fill_header USING wa STRUCTURE zlo_mmcnv009
poheader STRUCTURE bapimepoheader "Header Data
poheaderx STRUCTURE bapimepoheaderx. "Header Data (Change Toolbar)
DATA: dia(2), mes(2), ano(4),
vendor(10) TYPE n.
dia = wa-docdate(2).
mes = wa-docdate+2(2).
ano = wa-docdate+4(4).
CONCATENATE ano mes dia INTO wa-docdate.
dia = wa-datestart(2).
mes = wa-datestart+2(2).
ano = wa-datestart+4(4).
CONCATENATE ano mes dia INTO wa-datestart.
dia = wa-datend(2).
mes = wa-datend+2(2).
ano = wa-datend+4(4).
CONCATENATE ano mes dia INTO wa-datend.
Document Type
IF wa-doctyp <> ''.
poheader-doc_type = wa-doctyp.
poheaderx-doc_type = 'X'.
ENDIF.
vendor number
IF wa-vendor <> ''.
IF NOT ( wa-vendor CA sy-abcde ).
vendor = wa-vendor.
poheader-vendor = vendor.
poheaderx-vendor = 'X'.
ELSE.
poheader-vendor = wa-vendor.
poheaderx-vendor = 'X'.
ENDIF.
ENDIF.
Document Date
IF wa-docdate <> ''.
poheader-doc_date = wa-docdate.
poheaderx-doc_date = 'X'.
ENDIF.
purchasing organization
IF wa-organiz <> ''.
poheader-purch_org = wa-organiz.
poheaderx-purch_org = 'X'.
ENDIF.
Purchasing Group
IF wa-purgroup <> ''.
poheader-pur_group = wa-purgroup.
poheaderx-pur_group = 'X'.
ENDIF.
Start of Validity Period
IF wa-datestart <> ''.
poheader-vper_start = wa-datestart.
poheaderx-vper_start = 'X'.
ENDIF.
End of Validity Period
IF wa-datend <> ''.
poheader-vper_end = wa-datend.
poheaderx-vper_end = 'X'.
ENDIF.
Company Code
IF wa-compcode <> ''.
poheader-comp_code = wa-compcode.
poheaderx-comp_code = 'X'.
ENDIF.
Status of Purchasing Document
IF wa-status <> ''.
poheader-status = wa-status.
poheaderx-status = 'X'.
ENDIF.
ENDFORM. " fill_header
*& Form fill_account
text
-->P_WA text
FORM fill_account TABLES poaccount STRUCTURE bapimepoaccount
poaccountx STRUCTURE bapimepoaccountx
USING wa STRUCTURE zlo_mmcnv009.
DATA: account(10) TYPE n.
poaccount-po_item = wa-itemnum.
poaccountx-po_item = wa-itemnum.
*Cost Centre
poaccount-costcenter = wa-coscenter.
poaccountx-costcenter = 'X'.
*Order Number
poaccount-orderid = wa-ordernumb.
poaccountx-orderid = 'X'.
*"G/L Account Number
IF wa-accnumb <> ''.
account = wa-accnumb.
poaccount-gl_account = account."wa-accnumb.
poaccountx-gl_account = 'X'.
ENDIF.
IF NOT ( wa-coscenter = '' AND
wa-ordernumb = '' AND
wa-accnumb = '' ).
APPEND poaccount.
APPEND poaccountx.
ENDIF.
ENDFORM. " fill_account
*& Form fill_schedule
text
-->P_WA text
FORM fill_schedule TABLES poschedule STRUCTURE bapimeposchedule
poschedulex STRUCTURE bapimeposchedulx
USING wa STRUCTURE zlo_mmcnv009.
DATA: dia(2), mes(2), ano(4).
dia = wa-delivdate(2).
mes = wa-delivdate+2(2).
ano = wa-delivdate+4(4).
CONCATENATE ano mes dia INTO wa-delivdate.
*Delivery Date
poschedule-po_item = wa-itemnum.
poschedulex-po_item = wa-itemnum.
poschedule-delivery_date = wa-delivdate.
poschedulex-delivery_date = 'X'.
IF NOT wa-delivdate = ''.
APPEND poschedule.
APPEND poschedulex.
ENDIF.
ENDFORM. " fill_schedule
*& Form fill_header_contract
text
-->P_WA text
-->P_HEADER text
-->P_HEADERX text
FORM fill_header_contract USING wa STRUCTURE zlo_mmcnv009
coheader STRUCTURE bapimeoutheader
coheaderx STRUCTURE bapimeoutheaderx.
DATA: dia(2), mes(2), ano(4).
dia = wa-datestart(2).
mes = wa-datestart+2(2).
ano = wa-datestart+4(4).
CONCATENATE ano mes dia INTO wa-datestart.
dia = wa-datend(2).
mes = wa-datend+2(2).
ano = wa-datend+4(4).
CONCATENATE ano mes dia INTO wa-datend.
Purchasing Document Date
coheader-doc_date = sy-datum.
coheaderx-doc_date = 'X'.
*Item Number Interval
coheader-item_intvl = '10'.
coheaderx-item_intvl = 'X'.
Currency Key
coheader-currency = 'BHD'.
coheaderx-currency = 'X'.
languaje
coheader-langu = 'EN'.
coheaderx-langu = 'X'.
Document Type
IF wa-doctyp <> ''.
coheader-doc_type = wa-doctyp.
coheaderx-doc_type = 'X'.
ENDIF.
vendor number
IF wa-vendor <> ''.
coheader-vendor = wa-vendor.
coheaderx-vendor = 'X'.
ENDIF.
purchasing organization
IF wa-organiz <> ''.
coheader-purch_org = wa-organiz.
coheaderx-purch_org = 'X'.
ENDIF.
Purchasing Group
IF wa-purgroup <> ''.
coheader-pur_group = wa-purgroup.
coheaderx-pur_group = 'X'.
ENDIF.
Start of Validity Period
IF wa-datestart <> ''.
coheader-vper_start = wa-datestart.
coheaderx-vper_start = 'X'.
ENDIF.
End of Validity Period
IF wa-datend <> ''.
coheader-vper_end = wa-datend.
coheaderx-vper_end = 'X'.
ENDIF.
ENDFORM. " fill_header_contract
*& Form fill_item_contract
text
-->P_WA text
-->P_COITEM text
-->P_COITEMX text
FORM fill_item_contract TABLES: coitem STRUCTURE bapimeoutitem
coitemx STRUCTURE bapimeoutitemx
USING wa STRUCTURE zlo_mmcnv009.
item number
coitem-item_no = wa-itemnum.
coitemx-item_no = wa-itemnum.
coitemx-item_nox = 'X'.
*Material Number
IF wa-material <> ''.
coitem-material = wa-material.
coitemx-material = 'X'.
ENDIF.
*Target Quantity
IF wa-quantity <> ''.
coitem-target_qty = wa-quantity.
coitemx-target_qty = 'X'.
ENDIF.
*Net Price in Purchasing Document
IF wa-netprice <> ''.
coitem-net_price = wa-netprice.
coitemx-net_price = 'X'.
ENDIF.
APPEND coitem.
APPEND coitemx.
ENDFORM. " fill_item_contract
*& Form fill_service
text
-->P_POSERVICES text
-->P_T_ITEM text
-->P_ITEMNUM text
FORM fill_service TABLES poservices STRUCTURE bapiesllc
t_item STRUCTURE zlo_mmcnv009
poservices_2 STRUCTURE bapiesklc
USING itemnum packno.
DATA: line(10) TYPE n,
service(18) TYPE n,
packno2(10) TYPE n.
poservices-pckg_no = packno.
packno2 = packno.
packno = packno + 1.
poservices-line_no = '0000000001'.
poservices-outl_ind = 'X'.
poservices-subpckg_no = packno.
APPEND poservices.
line = '0000000002'.
LOOP AT t_item WHERE itemnum = itemnum.
IF t_item-activity <> ''.
IF NOT ( t_item-activity CA sy-abcde ).
service = t_item-activity.
poservices-service = service.
ELSE.
poservices-service = t_item-activity.
ENDIF.
ELSE.
poservices-service = t_item-activity.
ENDIF.
poservices-pckg_no = packno.
poservices-line_no = line. "itemnum.
poservices-ext_line = t_item-line.
poservices-quantity = t_item-quantity1.
poservices-base_uom = t_item-undmed.
poservices-gr_price = t_item-price.
poservices-short_text = t_item-shortxt.
poservices-subpckg_no = '0000000000'.
poservices-outl_ind = ''.
APPEND poservices.
poservices_2-pckg_no = packno.
poservices_2-line_no = line.
poservices_2-SERNO_LINE =
poservices_2-SERIAL_NO =
poservices_2-quantity = t_item-quantity1.
poservices_2-net_value = t_item-price.
APPEND poservices_2.
line = line + 1.
ENDLOOP.
ENDFORM. " fill_service
*& Form fill_pocond
text
-->P_POCOND text
-->P_POCONDX text
-->P_WA text
FORM fill_pocond TABLES pocond STRUCTURE bapimepocond
pocondx STRUCTURE bapimepocondx
USING wa STRUCTURE zlo_mmcnv009.
*Net Price in Purchasing Document
IF wa-netprice <> ''.
pocond-itm_number = wa-itemnum.
pocondx-itm_number = wa-itemnum.
pocond-cond_value = wa-netprice.
pocondx-cond_value = 'X'.
pocond-currency = 'BHD'.
pocondx-currency = 'X'.
pocond-cond_type = 'PBXX'.
pocondx-cond_type = 'X'.
*COND_TYPE
APPEND pocond.
APPEND pocondx.
ENDIF.
ENDFORM. " fill_pocond -
Problem in Creating Pricing Condition Table...
Friends,
I am creating a condition table.
i selected perticular fields (S.org, D.ch, Div, So-to-Party,Mat)
When i click on Generate Icon
I Got error message:
Customer Object VKOS A505 cannot be assigned to packageHello,
Which is the number you have given for your table?
The best way is to search for the table which is having most of these fields and copy that table to a new table. When you create table give a table number after 900 and copy from another table. After this you can add/delete the fields and generate the table.
Prase -
Validation for header condition in a Purchase Order in me21n
Hi Experts!, I need to validate that a header condition can't be repeated in a PO, when it's be creating..
I need your helps.. Thanks..
Message was edited by:
Gustavo GilHi.! Thanks everybody, I recomended this page
http://help.sap.com/saphelp_40b/helpdata/es/14/f62c7dd435d1118b3f0060b03ca329/content.htm
, It's so usefulI, here I found the program, subrutine, and a short description, I resolve the problem using the exit USEREXIT_XKOMV_BEWERTEN_INIT..
Regards,
Gustavo Gil.. -
Very Urgent--Adding Header condition amount in Net order value of PO
Dear friends,
Our client has following requirement.
---In Purchase order ,Header conditions related to delivery costs are using.
--Currently when we add the header condition,that amount is not adding to the Net order value and not adding to the total value in the PO print document.But proportionaly distributing to the line items.
--Because of this two problems one is not adding to net order so not considered for release strategy,secondas it is not adding in the net order value,header condition amount also is not coming in the total value in the print out.
--Currently, this header amount is splitting and posting seperate line item for GR/IR clearing act in MIGO and MIRO..
I have removed the Statistical tick and accrual tick in IMG, then header amount is adding to the Net order value and adding in the total value in the PO print. But in MIGO/MIRO, This amount is adding to the GR/IR clearing act ,instead of seperate GR/IR line item in MIGO/MIRO documents, But client wants the postings shall be made similar to previous one.
I have checked with removing only Stastical key and not removing the accrual key.But header condition is not adding to Net order value. I have searched for User exits/BAdis,suitable are not found.
How the Header condition amount can be added to the Net order value without removing the Statistical key in IMG.Are there any User exit/BAdis,
Please suggest.
Regards,
DayanandDear Sairam,
Thanks for your reply.
Asper your suggestions i tried as follows.
1) We have got condition types like surcharges/discounts before "Net inc dis"
and Delivery costs/accruals/frieghts after "Net inc dis".
2) My requirement is that whatever conditions types after Net inc dis like Del costs/Frieghts are not included in Net order value in PO,so amount is not included in Release strategy and print.Currently this amount is coming as seperate line itemGR/IR Clearing account in MIGO/MIRO.
3) Asper your suggestion,i tried with Surcharge condition existing before "Net inc Disc"--This is a header condition(Cond.cat is Insurance),but stastical tick is not there in Scema. I tried as it is ,amount is adding in Net order value.But seperate line item for this amount is not coming in MIGO/MIRO
4) When i ticked the accrual key and statistical tick and added Accrual-FR1,then PO created ,amount is not adding in Net order value.
5) When i removed only Stastical tick only even though amount is not adding.
6) When i removed the Accrual tick also i.e both the ticks then only amount is adding in Net order value.But Line item of the header condition is not dispalying as a seperate line item in MIGO/MIRO
For these Header conditions ,seperate line item shall come ,at the same time amount shall add in Net order Vaue for the purpose of including in the amount for Release strategy and print.
Please suggest how to do it.
Regards,
Dayanand -
Bapi to create a condition record
hi,
is there any standard bapi for creating ,changing and deleting a pricing record using VK11,VK12.
any other function module will solve the problem.Hi Ajith,
You can use <b>IDOC approach</b> also for doing teh same solution. Yo get Create/Change/ Delete Option as per indicator passed:
Refer Code below.
*& Form map_idoc_structure
Map E1KOMG, E1KONH, E1KONP segment fields
FORM map_idoc_structure
USING fp_condition_table TYPE kotabnr
fp_rate TYPE z_cs_cpp_rate
fp_condition_type TYPE kschl
fp_rate_type TYPE z_cs_file_type.
*-- Local Data Declaration
DATA: lw_e1komg TYPE e1komg, "Filter seg. with separated condition key
lw_e1konh TYPE e1konh, "Data from condition header
lw_e1konp TYPE e1konp, "Conditions Items
lv_delete TYPE konp-loevm_ko. " Delete Indicator
*-- IDoc data internal table
DATA: i_idoc_data TYPE TABLE OF edidd
INITIAL SIZE 0
WITH HEADER LINE.
CLEAR: lw_e1komg,
lw_e1konh,
lw_e1konp,
lv_delete,
v_segnum,
w_e1komg,
v_rate_type.
REFRESH i_idoc_data.
v_rate_type = fp_rate_type.
PERFORM conversion_alpha_input
USING w_crp_data-kunnr CHANGING w_crp_data-kunnr.
PERFORM conversion_matn1_input
USING w_crp_data-matnr CHANGING w_crp_data-matnr.
E1KOMG: Filter segment with separated condition key
i_idoc_data-segnam = 'E1KOMG'.
lw_e1komg-kvewe = c_usage_cond_tab.
lw_e1komg-kotabnr = fp_condition_table.
lw_e1komg-kappl = c_cond_type.
lw_e1komg-kschl = fp_condition_type.
CONCATENATE p_vkorg p_vtweg p_spart p_hienr p_matnr
CONCATENATE w_crp_data-vkorg w_crp_data-vtweg
w_crp_data-kunnr w_crp_data-matnr
INTO lw_e1komg-vakey.
lw_e1komg-vakey_long = lw_e1komg-vakey.
lw_e1komg-vkorg = w_crp_data-vkorg.
lw_e1komg-vtweg = w_crp_data-vtweg.
lw_e1komg-spart = w_crp_data-spart.
lw_e1komg-kunnr = w_crp_data-kunnr.
lw_e1komg-matnr = w_crp_data-matnr.
i_idoc_data-sdata = lw_e1komg.
APPEND i_idoc_data TO i_idoc_data.
Segment E1KONH - condition header
i_idoc_data-segnam = 'E1KONH'.
lw_e1konh-datab = w_crp_data-datab.
lw_e1konh-datbi = w_crp_data-datbi.
lw_e1konh-knuma_pi = v_promotion.
lw_e1konh-knuma_ag = v_sales_deal.
i_idoc_data-sdata = lw_e1konh.
APPEND i_idoc_data TO i_idoc_data.
IF fm_process_type EQ c_pt_dep.
lv_delete = c_x. " Deletion Indicator
ENDIF.
Segment E1KONP - condition items
i_idoc_data-segnam = 'E1KONP'.
lw_e1konp-kschl = fp_condition_type.
lw_e1konp-kbetr = fp_rate.
lw_e1konp-konwa = w_crp_data-waers.
lw_e1konp-kpein = v_cond_pric.
lw_e1konp-kmein = v_cond_unit.
lw_e1konp-knuma_pi = v_promotion.
lw_e1konp-knuma_ag = v_sales_deal.
lw_e1konp-loevm_ko = lv_delete.
i_idoc_data-sdata = lw_e1konp.
APPEND i_idoc_data TO i_idoc_data.
*-- Post Idoc for Creating Pricing Condition
PERFORM post_idoc
TABLES i_idoc_data.
ENDFORM. " map_idoc_structure
*& Form post_idoc TABLES i_idoc_data.
Post Idoc for Creating Pricing Condition
FORM post_idoc
TABLES i_idoc_data STRUCTURE edidd.
*-- Local data declaration
DATA: lv_komg LIKE komg, " Condition Structures
lv_subrc LIKE sy-subrc, " Sy-subrc
lw_messages TYPE rsuvm_msg, " Message Description
lw_idoc_status TYPE bdidocstat. " ALE IDoc status
DATA: idoc_contrl " IDoc Control data
LIKE edidc OCCURS 1 WITH HEADER LINE.
*-- Initialize Internal Tables
CLEAR: t_konh,
t_konp,
t_konm,
t_konw,
i_idoc_status,
t_kona.
REFRESH: t_konh,
t_konp,
t_konm,
t_konw,
i_idoc_status,
t_kona,
i_messages.
This code is taken from IDOC_INPUT_COND_A
PERFORM fill_appl_structures(saplvkoi)
TABLES i_idoc_data
t_konh
t_konp
t_konm
t_konw
i_idoc_status
t_kona
USING lv_komg
lv_subrc
idoc_contrl-docnum
idoc_contrl-mestyp.
IF lv_subrc = 0.
This code is taken from IDOC_INPUT_COND_A
PERFORM idoc_in_datenbank(saplvkoi)
TABLES idoc_contrl
t_konh
t_konp
t_konm
t_konw
i_idoc_status
t_kona
USING lv_komg
lv_subrc
idoc_contrl-docnum.
IF lv_subrc = 0.
COMMIT WORK AND WAIT.
Endif.
Reward points if this Helps.
Manish
Message was edited by: Manish Kumar -
PO header conditions doubling up.
I am having a problem with the price determination on PO.
I have created 19 custom condition types, of these some are header and some are item level.
Problem 1.
The header level condions are doubling up as per increase in line items. For ex.My Z header condition is manually maintained as $10 for the whole PO.
I have 2 line items on the PO. The condition value is coming up as $20.00.
Problem 2.
2 of these header conditions have to post to a specific GL. Accordingly, in the calculation schema, I have assigned a custom accountkey. In OBYC, this account key has a GL. But no postings are going to this account,
All help is appreciated.
-PratibhaThanks Kiran,
1.Took care of that.
2. My Z condition is not a tax. it is a surccharge. Each po will have to post this amount to a specific GL. For Ex. on PO 45xxxx1234, it will have $10.00 posting to GL644000.
I am not able to route the monies on this Condition to this GL.
The total PO amount is going to the GR/IR Clearing and Inventory.
In Calcuation schema, I have maintained a Account determination key for this condition type and also maintained the GL against the account key in OBYC.
The Rules in OBYC are 40/50.
Regards,
-PRatibha -
Inability to assign freight vendor at header condition level
Hello all
We are working on ECC 5.0 but will shortly be moving to ECC 6.0.
We have a scenario where raw materials are purchased from one vendor and delivered by a freight carrier (for which we are liable). To satisfy a Finance requirement to capture freight costs as part of RM valuation, we have created new freight conditions and set them as Header conditions and Group conditions - this allows the freight costs to be set at header level (ie per delivery) and then distributed across several PO items. Provided the freight carrier is defined against the PO freight condition, the freight invoice can then be matched with reference to the original RM PO.
However, we then wish to assign the freight carrier vendor to the freight condition and it appears this is only possible at the item level, which is time-consuming and inefficient if there are a high number of different materials/items on the PO.
I have checked the forums, SAP Notes, Google and even asked SAP - SAP said that it was standard functionality that freight carriers could only be assigned at item level (even though the conditions have been assigned at the header level).
Does anybody know a way of assigning the freight carrier vendor at PO header condition level?
Thanks
OliverAll
Following the upgrade of our systems from ECC 5.0 to ECC 6.0, we now find that a freight vendor can be maintained against the freight header condition record. This means that when the PO is created (relevant for that freight condition), the freight vendor will default against the condition at the header level.
The only problem remains when you wish to change the freight vendor - this still has to be done at the item level but it is an improvement on the ECC 5.0 functionality.
Regards
Oliver -
Pricing Schema Header Condition Issue
Dear gurus,
how can I do this?
Item 1:Sales Price:100 eurMWST:18eur
Item 2:Sales Price:200 eurMWST:36eur
In header:
Sales Price: 300eur
MWST:54eur
Total:354eur
There is a HEADER condition as YOFI:
YOFI:355eur
YODI=YOFI-TOTAL
Problem is SAP multiples YOFI(which is header condition) to items.
As a result calculation is wrong.
How can I fix it?
Regards,You don't want YOFI to be distributed to items correct? If so, then in t.code V/06, for condition type YOFI, remove the checks in the boxes of group condition,item condition, quantity and check by creating a new sales order.
Regards, -
Header condition with acess sequence, don't want to distribute to item line
We have defined a condition type as a header condition. We need to use access sequence to automatically determine a invoice fee when creating invoices. We have defined the condition type as a group routine with condition routine 1 (we only want it to show on the invoice). We have marked the "Changes which can be made" as both Header and Item condition. The problem is that when creating the invoice, the header condition distributes on the item lines, our client don't want that cause it will be a problem on the booking side (reporting).
Is there any way of handling this so that the invoice fee ONLY shows on the header, and don't distribute on lines?
Link to definition of the condition type:
<a href="http://img222.imageshack.us/img222/2787/zgebinvoicefeerx4.jpg">Invoice Fee</a>
Best regards
Simen.Hi Simen,
we have a similar requirement. Did you get it resolved. We are currently looking at 2 aproaches
1.) To leave it as item condition and de-activate it for all but one line and while printing remove from the item and print as seperate line.
2.) Try and add it as a service item to the invoice.
In both cases the condition will be mapped to a seperate GL a/c.
Thanks
Deep -
Condition origin in Header condition type
Dear Experts,
I am on ECC 6.0 and have defined a pricing procedure for PO. I have defined a condition type at the header level ZRB1 for freight.
When i create a PO, it does not allow me enter a freight value at the header. The requirement is , e.g, i enter 100$ as freight at header level which gets distributed as per the grouping condition for the items.
The problem is that header condition type is pointing to the condition origin at the item level. Is there an option to modify the condition origin by selecting the condition type details in the header?
Thanks in advance
LearnerHi,
In M/06, tick the condition as header and also as group and routine 0.
if you want to distribute this cost to line item apportinoately tick item condition also.
what i see from your you are looking for that, so tick both header and item condition and group condition.
Regards
Rajesh -
Print header conditions w/o print indicator
Hi experts,
I'm using a PDF based quote form and would like it to also print header conditions that don't have a print indicator. Is there a way to implement the BADI_SD_SLS_PRINT01 BAdI resp. get the FM RV_PRICE_PRINT_HEAD to also return conditions that are not flagged as print relevant?
Thanks & best regards,
MatthiasHi Lily,
i think problem be create in Repetetive Area.
Do this in your PLD,
->> Open your PLD and save as a duplicate PLD (Just testing PLD).
->> Right Click in PLD and Choose the Display Hidden Fields in PLD.
->> Reduce the Height of all fields in Repetetive Area, Page Header and End of Reports.
for example,
->> Select all fields including Hidden fields in Repetetive Area & Repetetive Area Footer and
Reduce the Height in General tab on Properties Widnow.
put the Height -> 15 and Font Size -> 10
->> Reduce the Repetetive Area Height and put the Tick mark in Area Height Adjustment in Format Tab.
Try to remove all fieds(including Hidden fields) in Page Footer and Reduce the Height.
ex. Page Footer Height -> 0
Regards,
Madhan. -
Sales Order - Header Condition
Hi Experts,
I am able to create Sales Order Using BAPI in LSMW.
But I have a requirement where I ahve to migrate a Condition Type for freight in the Header with an Amount.
I used Segment E1BPCOND. But this condition goes for each line item and at the same time it gets repeated in teh HEADER Condition as many times as the Item.
But I need this condition in the HEADER Only ONce irrespect of the number of line items.
Could you please get me a solution how do I carry out USING BAPI mathod in LSMW.
Thanks,
Jack.Well,we have implemented for transportation the ``route-settlement`` ,I didn`t meet with ``stops during the sales order`` ,but we are using kind of condition ... I suppose You will create Your own requirement (VOFM) ,If I would be You ,I copy and change the requirement what Your current condition is using,so You have to create a new one using ABAP ,then test in the development .However if You really want to give a chance for using SAP`s cond.rec. then ask them for an advice on OSS or search in NOTES ,might they have the solution. I don`t know Your system ,and its quite difficult to give an advice,Your problem is very specific,on which the management here used to spend days or weeks to decide if we should go for it or not. I am sorry if I couldn`t provide for You any solution ,but anyway You asked an opinion about Your steps ,and mine is that You have to create Your own cond.rec.with a requirement.
Good luck,and let as know about Your succes!
Regards,
Gabriel Czilling -
Trying to create a condition on a BW Universe
Hi experts,
I'm trying to create a condition on a BW-Query Universe just like below:
<EXPRESSION> IIF([0HALFYEAR1].[LEVEL01].[[20HALFYEAR1]].[Value] = 1 , [Measures].[DAAP8LRPLLYPPU417LVN5XS2Z]-[Measures].[DAAP8LRPLLXY17S9W2G13IDT7] , [Measures].[DAAP8LRPLLYPPU417LVN5XS2Z]-[Measures].[DAAP8LRPLLXY17S9W2G13IDT7]) </EXPRESSION>
i've searched a lot till get this code, but it still giving me an error when I try to execute.
Does anyone can please help me?
Thanks,
Gui Boscolo from BRZ.Hi David,
Thanks for your answer, I've made the ajustments you have mention, but I'm still getting erros when i'm running a report with an object that contain this 'code':
<EXPRESSION> IIF(@Select(SemestreL01 Semestre Chave) = "1" , @Select(Variáveis de CálculoMontante Projetado Sem1) - @Select(ÍndicesSaldo Aplicado) , @Select(Variáveis de CálculoMontante Projetado Sem2) - @Select(ÍndicesSaldo Aplicado)) </EXPRESSION>
As you notice, now I'm using the @select function, the quotes are in the value of HALFYEAR01 ((@Select(SemestreL01 Semestre Chave) = "1") and removing the IFF function, the expression works.
The problem, is We need to have this IFF function at BO, because we're trying to complement a expression on BW that cannot be changed!! That's my problem at all!
Thanks again! -
How to create report condition based on "total"
Hello,
I have a Discoverer report that shows revenue by city and sub-totals revenue by state.
I need to modify this report so that only cities in states with revenue (sub-total) more than one million are pulled.
Example:
Pittsburgh - 100,000
Harrisburg - 200,000
Erie - 300,000
------State:PA 600,000
Los Angeles 500,000
San Fransisco 600,000
Oakland 200,000
-----State:CA 1,300,000
In this example, the report should show only the cities in California, as the revenue sum is over 1 million:
Los Angeles 500,000
San Fransisco 600,000
Oakland 200,000
---State:CA 1,300,000
Is this possible?
I'm using Discoverer version 10.1.2.2.
Thank you.
Edited by: [email protected] on Dec 11, 2009 3:03 PMHello
You need to do two things to solve this problem.
1. You need to create an analytic calculation that returns 1 when the sum of the revenue in all of the cities in a state is one million or more
2. You need to create a condition such that you only include states when the above is 1
Let's call the calculation, OneMillionStates and I will assume your fields are called State, City and Revenue
Here's the formula:
CASE WHEN SUM(REVENUE) OVER(PARTITION BY STATE) > 1000000 THEN 1 ELSE 0 END
Now your condition shoudl be: ONEMILLIONSTATE = 1
You don't even need to display the calculation on screen and notice how the city does not even come into the calculation.
Best wishes
Michael
URL: http://ascbi.com
Blog: http://learndiscoverer.blogspot.com
Maybe you are looking for
-
How To Install OS on Raid0?
My system is a bit over two years old now, and has served me well in that time thanks to a lot of advice from this forum. It's weak link is a Toshiba SSD used for the boot drive, that is not even as fast as a decent HDD. Yesterday I suffered a seri
-
Not good tool for handwritting comments in Adobe Acrobat X pro
Hi, I have evaluated Adobe Acrobat X pro for adding handwritting comments on my university pdf documents. I normally use Office One Note 2010 to take quite good notes but the official college documents are .pdf format., so it is very useful to be abl
-
JScrollPane now showing up with JList using TableLayout
Hi, I have JFrame using TableLayout. On this JFrame I have added a JPanel that uses TableLayout too. Now this panel is divided into 4 cells. One each cell I am adding a JList. ALl the lists show up fine on the appropriate cells on the panel, but they
-
Problem with daemons start display [SOLVED]
Hello, I have a problem with the display of daemons startup, i'm not sure what could be wrong, here's a screenshot taken y fbgrab rc.conf -> http://arch.pastebin.com/618485
-
Translation of Interactive Report (IR ignores translated help messages)
Hi I've spend my time translating all 242 IR messages to Dutch and loaded them into my app. All seemed well. The IR is completely Dutch now. However when I choose help from the Action Menu the help text remains English. I really did translate all thi