You need to query the database to get the start and end times for the DC1 for the current SFC, convert them from strings and subtract. A single query could do this most efficiently. This isn't ideal by any means - the user can cancel a data collection, so you may have to handle missing data too.
Re: To find a Date Difference in Minutes in Data Collection
Re: Consolidating multiple values into one result
Hi all,
Thank you for your assistance - our administrator confirmed the default projection function is 'sum'. He has also provided a solution to the #MULTIVALUE error, by providing the measures in a separate tab.
Thanks again,
Andrew
bapi create po system give message no. bm035
Deal all, when i use bapi 'BAPI_PO_CREATE1' create po, system give me a error message no. bm035(Measurement unit & has no ISO code). I don't konw how to sorve it. But when i use T-code ME21N to create po, it create suceeed. Is my code wrong? This is my code, please anybody give me some advice, Thanks. FORM generate_free_po . DATA: lv_ebeln LIKE ekko-ebeln , lv_adrnr LIKE t001w-adrnr. CLEAR:poheader,poheaderx. REFRESH:poitem,poitemx,pocondheader,pocondheaderx, poschedule,ocomponents,pocomponentsx. LOOP AT gt_freepo INTO gs_freepo. ON CHANGE OF gs_freepo-ebeln. IF poheader IS NOT INITIAL. PERFORM exec_bapi_po USING lv_ebeln ''. ENDIF. CLEAR:poheader,poheaderx,lv_ebeln. REFRESH:poreturn,poitem,poitemx,pocondheader,pocondheaderx,poschedule,poschedulex. lv_ebeln = gs_freepo-ebeln. ""po header poheader-po_number = gs_freepo-ebeln . "po number poheader-comp_code = gs_freepo-bukrs. "company code poheader-doc_type = gs_freepo-bsart. ""document type poheader-vendor = gs_freepo-lifnr. ""vendor * poheader-currency = gs_freepo-waers. "waers poheader-purch_org = gs_freepo-ekorg. ""pur_org poheader-pur_group = gs_freepo-ekgrp. ""pur_group poheader-creat_date = sy-datum. poheader-created_by = sy-uname . poheader-langu = sy-langu. poheader-doc_date = sy-datum. poheader-item_intvl = '00010' . poheader-status = 'I' . "PO FROM BAPI "" po header flag poheaderx-po_number = 'X' . poheaderx-comp_code = 'X' . poheaderx-doc_type = 'X' . poheaderx-vendor = 'X'. poheaderx-purch_org = 'X' . poheaderx-pur_group = 'X' . poheaderx-creat_date = 'X'. poheaderx-created_by = 'X'. poheaderx-langu = 'X' . poheaderx-doc_date = 'X'. poheaderx-item_intvl = 'X'. poheaderx-status = 'X' . poheaderx-vat_cntry = 'X' . ENDON. ""po item CLEAR:poitem. poitem-po_item = gs_freepo-ebelp. "EKPO 采购凭证的项目编号 poitem-material = gs_freepo-matnr . " MATERIAL poitem-plant = gs_freepo-werks. "工厂 poitem-stge_loc = gs_freepo-lgort . "LOCATION poitem-quantity = gs_freepo-menge. "采购订单数量 SELECT SINGLE bstme INTO poitem-po_unit FROM mara WHERE matnr = gs_freepo- matnr. * poitem-po_unit = gs_freepo-meins. "PO_UNIT poitem-short_text = gs_freepo-txz01. "短文本 poitem-item_cat = gs_freepo-pstyp. "Item Catagory ""*--------------------------------------------------------------------- poitem-free_item = 'X'. ""免费项目 ""*--------------------------------------------------------------------- poitem-net_price = gs_freepo-kbetr. "单价 poitem-price_unit = gs_freepo-kpein. "单价单位 poitem-plan_del = 0 . poitem-preq_name = sy-uname. poitem-period_ind_expiration_date = sy-datum . * poitem-po_price = '2'. APPEND poitem. ""po item flag CLEAR:poitemx. poitemx-po_item = gs_freepo-ebelp. poitemx-po_itemx = 'X'. poitemx-material = 'X'. poitemx-plant = 'X'. poitemx-stge_loc = 'X'. poitemx-quantity = 'X'. poitemx-po_unit = 'X'. poitemx-net_price = 'X'. poitemx-price_unit = 'X'. poitemx-preq_name = 'X'. poitemx-period_ind_expiration_date = 'X'. poitemx-item_cat = 'X'. poitemx-free_item = 'X'. ""免费项目 * poitemx-po_price = 'X'. APPEND poitemx. ""schedule CLEAR:poschedule. poschedule-po_item = gs_freepo-ebelp. poschedule-sched_line = gs_freepo-ebelp. poschedule-del_datcat_ext = 'D'. "交货日期的类别 poschedule-delivery_date = gs_freepo-eeind. "EKPO 交货日期 poschedule-quantity = gs_freepo-menge. "采购订单数量 APPEND poschedule. """schedule flag CLEAR:poschedulex. poschedulex-po_item = gs_freepo-ebelp. poschedulex-sched_line = gs_freepo-ebelp. poschedulex-del_datcat_ext = 'X'. poschedulex-delivery_date = 'X'. poschedulex-quantity = 'X'. APPEND poschedulex. ""pocondheader CLEAR:pocondheader. pocondheader-cond_type = 'PBXX' . pocondheader-condition_no = gs_freepo-ebeln. pocondheader-itm_number = gs_freepo-ebelp. pocondheader-cond_value = gs_freepo-kbetr. pocondheader-currency = gs_freepo-koein. pocondheader-cond_p_unt = gs_freepo-kpein. pocondheader-cond_unit = gs_freepo-kmein. pocondheader-change_id = 'U'. "" U表示更新,I 表示新建 pocondheader-cond_st_no = 1 . SELECT SINGLE umrez umren INTO (pocondheader-numconvert,pocondheader- denominato) FROM marm WHERE matnr = gs_freepo-matnr AND meinh = gs_freepo-meins. APPEND pocondheader . ""pocondheader flag CLEAR:pocondheaderx. pocondheaderx-cond_type = 'X' . pocondheaderx-condition_no = gs_freepo-ebeln. pocondheaderx-itm_number = gs_freepo-ebelp. pocondheaderx-cond_st_no = 1 . pocondheaderx-cond_value = 'X'. pocondheaderx-currency = 'X'. pocondheaderx-cond_p_unt = 'X'. pocondheaderx-cond_unit = 'X'. pocondheaderx-change_id = 'X'. pocondheaderx-numconvert = 'X'. pocondheaderx-denominato = 'X'. APPEND pocondheaderx . """address CLEAR: poaddrdelivery,lv_adrnr . poaddrdelivery-po_item = gs_freepo-ebelp. SELECT SINGLE adrnr INTO lv_adrnr FROM t001w WHERE werks = gs_freepo-werks. poaddrdelivery-addr_no = lv_adrnr . APPEND poaddrdelivery. ENDLOOP. IF poheader IS NOT INITIAL. PERFORM exec_bapi_po USING lv_ebeln ''. ENDIF. ENDFORM. " GENERATE_FREE_PO FORM exec_bapi_po USING l_ebeln LIKE ekko-ebeln l_flag TYPE c. DATA: no_price_from_po LIKE bapiflag-bapiflag. CALL FUNCTION 'BAPI_PO_CREATE1' EXPORTING poheader = poheader poheaderx = poheaderx * no_price_from_po = no_price_from_po TABLES return = poreturn poitem = poitem poitemx = poitemx pocondheader = pocondheader pocondheaderx = pocondheaderx * POCOND = POCOND * POCONDX = POCONDX poschedulex = poschedulex poschedule = poschedule pocomponents = pocomponents pocomponentsx = pocomponentsx poaddrdelivery = poaddrdelivery. READ TABLE poreturn WITH KEY type = 'E'. IF sy-subrc EQ 0. CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'. CLEAR:gs_alv. gs_alv-ebeln = l_ebeln. gs_alv-type = 'E'. gs_alv-message = '创建失败'. APPEND gs_alv TO gt_alv. LOOP AT poreturn. gs_alv-ebeln = l_ebeln. gs_alv-type = poreturn-type. gs_alv-message = poreturn-message. APPEND gs_alv TO gt_alv. CLEAR:poreturn. ENDLOOP. ELSE. CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = 'X'. CLEAR:gs_alv. gs_alv-ebeln = l_ebeln. gs_alv-type = 'S'. gs_alv-message = '创建成功'. APPEND gs_alv TO gt_alv. ENDIF. ENDFORM. " EXEC_BAPI_PO
Re: Look up Retail Product, Product List add new searchable field?
Hi Masa,
The solution is only applicable if the Hana Search Engine is not active.
You can open the Class CL_RETAILSTORE_PROD_LOOKUP on se24 and open the method SEARCH_PRODUCTS.
This class is responsible on filtering the Article.
I suggest to put an External Breakpoint inside the method and check where to go from there.
Kind Regards,
Deck
How to mass purge the data in webi reports
Hi
Our 60% of webi reports are saved with data and it is occupying enough space , is there any way we can purge the data in all webi reports
Thanks
Re: Invoice Not blocked due to price variance.
Hi,
Can you share the details of Tolerance keys setting with tolerance limit with check limit selection.
Also cross check PO where price related for condition type(ME23N) and find quantity scale selection for that condition type(M/06).
Regards,
Biju K
BAPI_REQUISITION_CREATE create a service pr
Hi everyone:
I use the bapi BAPI_REQUISITION_CREATE to create a service pr,I pass the parameters about service and create sucess.But the item of service not find in the show screen of ME21N,I do not konw why ? can someone have the exceperence about this problem,need you help.
thanks & regards
Re: Save Custom BO without WindowAction-save
Dear All
My requirement is to update flag to more than 100,000 instance that meet specific criteria.
So I need to query it by coding .
and loop over it 1 by 1 to update the flag field.
when it runs with mass data run. it reach to 10 hours and fail.
when run via normal GUI (by clicking action button. It take so long time to wait).
I don't think the problem cause from loop over large set as I can write all 100,000 records into text file
within 5 mins (without making any change to BO).
Please help correct my assumption if I wrong, All words below just from my thought
Thus, the root cause probably, The buffer is full (and I think it will be flush out after WindowAction-save is called) That why I need to save it from coding.
Best Regard ,
Krit R.
Re: REFX contract frequency for variable terms to get required installments
Hi,
I would suggest you to have 3 to 4 one time conditions for your requirement.
And the total amount for the 3 to 4 one time condition = 25000USD.
Best regards,
Bowen
Re: Difference between Condition category - Freight or Delivery costs
Dear Harsh,
Which condition type you have used? You may checked condition type FRA1 and the vendor
can be edit as show in the attachment.
For SAP Best practice, if you are using z-condition type, you can always first check the
available SAP standard condition and copy the setting standard condition type and change it to suit your requirement if the standard could not meet exactly your requirement.
In table T685A, i hardly see any standard condition type with condition category = F used in MM but SD. Therefore, you may checked if any this standard FRA1, FRB1 or FRC1 that meets your requirement and might also use it or define your own based on this standard condition types.
Best Regards,
ian Wong Loke Foong
Re: Number of followers is Incorrect
There is some sort of issue with the whole follower/following list that I reported a while back.
Somehow, the comment in Known Bugs List is that the issue is with the export out of Jive.
Might be worth doing a sample export out of Jive and compare the data with the actual/current SCN list, to try and identify the source of the discrepancies.
Re: Crystal report - how to split a field into one fields
Hello Khushboo,
As far as I see you do not have a specific pattern which should tell us to create a generic code to fetch the desired string.
Could you help use in knowing the actual requirement and the string pattern that you will have in this field?
Regards
Niraj
BO中JAVA加载问题
BO版本4.1 SP04 Patch2
Windows
IE11
已经安装了JAVA,但在创建WEBI报表时还是提示JAVA无法正常运行。以前还是可以的
Re: Un-Grouping a routing using CA02
Hello
Try this
Go To routing header -> Material Assignment -> Delete the material you don't want and save the group routing.
Create new routing for the material by coping group routing.
System will ask for the group counter. Select the counter of the material from the group routing.
A new routing with new number will be available after save.
Hope this may help
Regards
SS
Re: Cleared Items are not flowing in DataSource 0FI_GL_14
We cannot touch Datasource as it is being used since we have around 16 years data and we cannot take downtime.
Re: Dimension Member ID : Formats
Thank you Andy.
as per note i am trying add new entry but it not allowing since 91 Key already existed in the table.
i bit not clear on this note... does this note telling us to create new entry. or modify the existing 91 entry.?
Re: QA32 Characteristics data
Re: Dimension Member ID : Formats
you need to modify the existing lines in that table.
Re: Service won't register in Netweaver Gateway
It seems to be a standard service, you will need to extend it in a custom(Z*) name to enhance it, have a look at
Re: Maintain Plan date
Hi
Thanks to all,your support is highly appreciated.Now if I maintain Shift Factor late completion as '0' then it will give same date as I want , but it is applied only for if only one call has been completed and to be complete.
Now where user has completed two call , its not working. for example see the screenshot.
Is it possible that I can set plan date again on 3rd of every month.3rd plan date should be 03.06.2016.
Thanks
Regards
Gaurav Solanki