Purchase requistion data source
Hi All,
I got one requirement extracting data from purchase requistion to build the report with fields lead time analysis for set of PR.
Lead time analysis for PRs converted to RFQ and from RFQ to PO.
Source list maintained for the material and plant combination for set of PRs.
MPN data for the material and plant combination for set of PRs.
please tell me the datasource where i can get the fields.
Thanks,
AnnamA
Hello ,
There is NO Standard Data Source to Extract PR data.
You need to create a Generic Data Source on EBAN Table.
Amol K.
Similar Messages
-
Standard Purchase Order Data Source question
Hi,
I have read the documentation discussing how to create data definitions. They all say make sure that the code is the short name of the concurrent request. However I noticed when I look at the Standard Purchase Order Data Source's code it has is PO_STANDARD_PO which seems to match the XML Schema PO_STANDARD_PO.xsd how is the concurrent request initiated at runtime?
Thanks,
MarkIf you go to the XML administrator screen and lookup the definition of the XML page and what program it is associated to as a start. From memory, i believe that the Definition of the Print PO concurrent job is where the output is required in order for the PO to be printed in the XML format.
-
Purchase Requsition Data Source
Dear Consultants,
I want to extract Purchase Requsition Data from R/3 System.
But I couldn't find any data source in the R/3 system.
Is there a standart data source for this?
Best Regards
MehmetThere is no standard datasource; go in LBWE and include in your transfer structure (of 2LIS_02_SCL)
MCEKET-BANFN (Purch.req.) and
MCEKET-BNFPO (Requisn.item).
These two fields allow to access on the key of EBAN table...here you can find FRGDT field that is release date...
In the same datasource you can also already find as available the field MCEKKO-EKGRP (Purch. group from T024).
Hope it helps.
Regards -
Purchasing requistion dates are not reflecting in R/3
Hi All,
material created in R/3,here purchase requistion generated in R/3 & APO.
Then in APO,after Rescheduling in detailed scheduling planning board new purchase requistion delievery date is not
reflecting in R/3.
Kindly revert back ASAP.
Regards,
Venkat.
Edited by: venkat1215 on Jul 23, 2010 11:05 AM
Edited by: venkat1215 on Jul 23, 2010 11:30 AMVenkat,
You didn't answer my question.
As a general rule of thumb, APO is much fussier about changing and synchronizing orders that were created in R/3. If you have a choice, you should always create purchase reqs in APO (although cross-creation is supported, and can be made to work nicely if you are diligent).
When you change an order in APO, and then publish the change to R/3, it is possible that the settings in R/3 will cause an issue with 'booking' the change. One way to test this is to manually make the same change, but directly in R/3. There should be no warnings or errors.
Another thing to look at are the Application logs on both sides (SLG1) for possible failures that may give a clue. Restrict to date and time interval where you know the proper update did not take place.
Rgds,
DB49 -
Purchase requistition data source
Hi
Is there any standard datasource for Purchase Requistition?
Please help me.
Thanks in advance.Praveen,
I do have a requirement to create an extractor on Purchase requisition.
This is really a nice document that exactly explains the process involved for creating a generic extractor with Delta queue mechanism.
But this document explains creating a View on EBKN (Purchase Requisition Account Assignment) and I do have a requirement on table EBAN (Purchase Requisition).
So do I need to create a View just on this table EBAN or do I have to do on both separately for pulling changes on both these tables and use the same BTE (01000710 APO-PlugIn: Purchase requisition)?
Really appreciate if you could throw some light on this.
thanks
Kumar -
Assign document date to purchase requisition date
Hi All,
I have a question regarding purchase requisition. I have a requirement where i have to change the purchase requisition date based on certain condition. I tried to change it in the user exit "MV45AFZZ" when the sales order is released, but at this point the purchase requisition number is not yet created in the database though it is available in this internal table "XVBEP-BANFN" in the include "FV45EFMA_BESCHAFFUNG_SICHERN" of "SAPFV45E". Can anyone tell me when will EBAN table get updated and when should i change the requisition date? I hope the doubt is clear, otherwise let me know.
Thanks and have a nice day.
Cheers,
AshleyHi Ashley
I have tried on my system and itz working, Can you
place a break-point in MV45AFZB and see if the flow is
reaching the place at the point where you need.
Coming to the Customer Function in
FV45EFMA_BESCHAFFUNG_SICHERN, have you checked as per
the documentation of it:
FU EXIT_SAPFV45E_001
Text
Update Purchase Order from Sales Order
With this customer exit the standard system behavior
regarding updating order data from the sales order can
be expanded or restricted.
The module is called up when the sales order is changed,
as long as the conditions for changing the order have
been filled. It transfers the document number, the
purchase requisition number and a table for the fields
to be changed in the order (T_PURCHASE_DATA). <b>This
can be expanded or restricted in the existing
Customizing.</b>
<b>The rule is: To change a field with the name
FIELDNAME, a subprogram (form routine) with the name
POSITION_CHANGE_FIELDNAME must exist in the program SAPMM06E.</b>
Try to find if POSITION_CHANGE_BADAT exists in
SAPMM06E. If not found ask you functional consultant to
expand it for purchase requistion date and see if it
works.
Hope your problem resolves.
Kind Regards
Eswar -
Standard data sources for Delivery and Purchase order quantity.
Hi gurus ,
Are there any standard data sources available for Delivery and Purchase Order quantity in Purchasing area .
Thanks in advance .Hi,
If you are looking for SD Scenario: Check this : https://websmp201.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700002719062002E
Happy Tony -
KSCHL (condition type) for Purchasing data source?
hi experts,
here is my client requirement.
The Purchasing department needs the possibility to make analysis on Purchasing data. E.g. to support the purchasing department in negotiations with the vendors. They must be able make analysis on
material,
vendor,
quantity invoiced,
quantity received,
values (price) in both document currency and local currency.
The bust be able the see the price u201CPB00 Gross Priceu201D and all Pricing Elements to the be able to see the real cost of the purchased material e.g. u201CFRC1 Freight/Quantityu201D
through which data source i can get the Quantities and values, and from which table i can get the KSCHL so that i can enhance to my data source.
in sdn i have seen KSCHL from KONV table. if that is the table can you plz specify the data source and logic to meet my requirements.
regards
venuscm
Edited by: venugopal vadlamudi on Nov 11, 2010 5:52 AM
Edited by: venugopal vadlamudi on Nov 11, 2010 10:30 AMHi Venugopal,
The Datasource that you need to enhance would definitely be 2LIS_02_ITM.
To fetch the gross price you can use the below mentioned logic:
DATA: l_t_MC02M_0ITM LIKE MC02M_0ITM OCCURS 0 WITH HEADER LINE,
wa_MC02M_0ITM LIKE LINE OF l_t_MC02M_0ITM,
tp_KBETR LIKE KONV-KBETR,
tp_KPOSN LIKE KONV-KPOSN,
tp_KNUMV LIKE EKKO-KNUMV.
LOOP AT C_T_DATA INTO wa_MC02M_0ITM.
CLEAR tp_KBETR.
CLEAR tp_KPOSN.
CLEAR tp_KNUMV.
tp_KPOSN = wa_MC02M_0ITM-EBELP.
SELECT SINGLE
KNUMV
INTO tp_KNUMV
FROM EKKO
WHERE EBELN EQ wa_MC02M_0ITM-EBELN.
* Select query to Fetch the Gross Price (KBETR) for a PO
SELECT SINGLE
KBETR
INTO tp_KBETR
FROM KONV
WHERE KNUMV EQ tp_KNUMV AND
KPOSN EQ tp_KPOSN AND
KSCHL LIKE 'PB%'.
IF SY-SUBRC EQ 0.
wa_MC02M_0ITM-YYKBETR = tp_KBETR.
MODIFY C_T_DATA FROM wa_MC02M_0ITM.
ENDIF.
ENDLOOP.
You may still want to check with the functional person for the exact logic.
Regards,
Hemant Khemani -
Sales order released from Credit block, but Purchase Requistion not created
Hi,
In third party sales scenario based on Scheduline Line category configuration purchase requistion creates when the order is created. If order is blocked for credit check then purchase requistion will not be created until order released from credit.
Here my scenario is
I have two users like A and B. When A releases the order from credit block by using transaction VKM1, Sales order releasing from credit and creating Purchase requistion. But, if the order is released by B, Sales order is getting released from credit but purchase requstion is not getting created.
There is no issue from security side, we activated trace and analysed everything it is not security issue.
Thanks and Regards
Alokam Chandra SekharHi Lakshmi,
Thanks for reply. I followed your instructions, pls find my observations below.
1. Can you check the below settings:
What is the Credit status in the header status tab page of the sales order for the B's sales order?
Is it "Not approved or releasedu201D If it is not approved, you might have released the sales order in VKM3, but you might not have saved it.
Reply: We are releasing order through VKM1 and after releasing the order the status is showing as "Released".
2. Did you use the same material for B's Sales order? If it a different material check the Item category and Schedule line category whether these are same with A's sales order.
Reply: Both the orders has same information, like material Item category and scheduline category
3. Check in the Schedule line tab page --> Procurement button whether you have maintain vendor, Source determination and Info record.
Source list has been verified through ME03 transaction and vendor data maintained correctly.
I really appreciate your time and efforts on this.. looking forward some more suggestions...
Thanks and Regards
Alokam Chandra Sekhar -
Regarding: Loading data from R/3 To BI for a Generic Data source
Hi Every,
Need Help Urgent
I had created a Generic data source with function Module as the data source, in Rsa3 it is working fine.
1-> I had replicated the data source to Bi then i had created a info package and then I executed the same. when it is getting the data and it is show in the request monitor (Number of records ) but the status is not changing from Yellow to Green.
Status in Step by step analysis is every step is green Except "Data selection successfully finished ?" (RED)
2-> Then I had seen the Back ground job in Source system which is executing still. I waited for it for a long time but nearly 30 min.
(I had done Steps one and 2 number of time by activating replicating the data source and so on, but still their is no change in it)
3-> Then I had canceled that back ground job with the help of BASIS (as i feel that it is something going wrong).
4-> I feel that their is some thing wrong in the Code of Extractor.
Please Help...............
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" VALUE(I_REMOTE_CALL) TYPE SBIWA_FLAG DEFAULT SBIWA_C_FLAG_OFF
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZBI_MATGRIR OPTIONAL
*Need to get the data only for two Gl account which are fro material purchase while MIGO
*G/L Account Numbers: 0010502001 0010502002
data: E_T_DATA1 type table of ZBI_MATGRIR.
RANGES: R_BUKRS FOR BSIS-BUKRS,
R_BUDAT FOR BSIS-BUDAT,
R_GJAHR FOR BSIS-GJAHR,
R_HKONT FOR BSIS-HKONT.
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
S_COUNTER_DATAPAKID LIKE SY-TABIX,
S_CURSOR TYPE CURSOR.
*Declare
TYPES: BEGIN OF TY_FAGL,
RBURS TYPE FAGLFLEXA-RBUKRS,
RYEAR TYPE FAGLFLEXA-RYEAR,
DOCNR TYPE FAGLFLEXA-DOCNR,
BUZEI TYPE FAGLFLEXA-BUZEI,
DOCLN TYPE FAGLFLEXA-DOCLN,
PRCTR TYPE FAGLFLEXA-PRCTR,
SEGMENT TYPE FAGLFLEXA-SEGMENT,
END OF TY_FAGL.
DATA: GT_FAGL TYPE TABLE OF TY_FAGL,
GS_FAGL TYPE TY_FAGL.
IF I_INITFLAG = SBIWA_C_FLAG_ON.
CASE I_DSOURCE.
WHEN 'ZFI_GL_M4'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE.
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUKRS'.
MOVE-CORRESPONDING L_S_SELECT TO R_BUKRS.
APPEND R_BUKRS.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GJAHR'.
MOVE-CORRESPONDING L_S_SELECT TO R_GJAHR.
APPEND R_GJAHR.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUDAT'.
MOVE-CORRESPONDING L_S_SELECT TO R_BUDAT.
APPEND R_BUDAT.
ENDLOOP.
*GRIR Inventory (RM/Stores/Spares/FG) 10502001
*GRIR Services & Others Payable 10502002
R_HKONT-SIGN = 'I'. "i_t_select-sign.
R_HKONT-OPTION = 'BT'." i_t_select-option.
R_HKONT-LOW = '0010502001'.
R_HKONT-HIGH = '0010502002'. "i_t_select-high.
APPEND R_HKONT.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
OPEN CURSOR WITH HOLD S_CURSOR FOR
SELECT BUKRS
AUGBL
ZUONR
BELNR
GJAHR
BUZEI
BUDAT
HKONT
BLART
MONAT
BSCHL
SHKZG
DMBTR
WAERS
FROM BSIS
INTO TABLE E_T_DATA
WHERE BUKRS IN R_BUKRS
AND GJAHR IN R_GJAHR
AND BUDAT IN R_BUDAT
AND HKONT IN R_HKONT.
Fetch records into interface table.
named E_T_'Name of extract structure'.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA1
PACKAGE SIZE S_S_IF-MAXSIZE.
IF SY-SUBRC <> 0.
CLOSE CURSOR S_CURSOR.
RAISE NO_MORE_DATA.
ENDIF.
DELETE E_T_DATA WHERE BLART NE 'WE'.
SELECT BUKRS
AUGBL
ZUONR
BELNR
GJAHR
BUZEI
BUDAT
HKONT
BLART
MONAT
BSCHL
SHKZG
DMBTR
WAERS
FROM BSAS
into table E_T_DATA
WHERE BUKRS IN R_BUKRS
AND GJAHR IN R_GJAHR
AND BUDAT IN R_BUDAT
AND HKONT IN R_HKONT.
FETCH NEXT CURSOR S_CURSOR
APPENDING CORRESPONDING FIELDS
OF TABLE E_T_DATA
PACKAGE SIZE S_S_IF-MAXSIZE.
append LINES OF e_t_data1 TO E_T_DATA.
DELETE E_T_DATA WHERE BLART NE 'WE'.
ENDIF. "First data package ?
DATA: F_YEAR TYPE BKPF-GJAHR.
DATA: F_PERI TYPE BAPI0002_4-FISCAL_PERIOD.
IF E_T_DATA[] IS NOT INITIAL.
SELECT RBUKRS
RYEAR
DOCNR
BUZEI
DOCLN
PRCTR
SEGMENT
FROM FAGLFLEXA
INTO TABLE GT_FAGL
FOR ALL ENTRIES IN E_T_DATA
WHERE RYEAR = E_T_DATA-GJAHR
AND DOCNR = E_T_DATA-BELNR
AND RLDNR = '0L'
AND RBUKRS = E_T_DATA-BUKRS
AND BUZEI = E_T_DATA-BUZEI.
WHERE RYEAR = E_T_DATA-GJAHR
AND DOCNR = E_T_DATA-BELNR
AND RBUKRS = E_T_DATA-BUKRS.
AND DOCLN = E_T_DATA-BUZEI.
ENDIF.
LOOP AT E_T_DATA.
IF E_T_DATA-SHKZG = 'H'.
E_T_DATA-DMBTR = E_T_DATA-DMBTR * -1.
ENDIF.
CLEAR: F_YEAR.
CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
EXPORTING
COMPANYCODEID = E_T_DATA-BUKRS
POSTING_DATE = E_T_DATA-BUDAT
IMPORTING
FISCAL_YEAR = F_YEAR
FISCAL_PERIOD = F_PERI.
DATA: V_DOC(6) TYPE C .
CLEAR: V_DOC.
V_DOC = E_T_DATA-BUZEI.
IF V_DOC IS NOT INITIAL.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = V_DOC
IMPORTING
OUTPUT = V_DOC.
ENDIF.
aS PROFIT center is not updated in all the lines in Bsis
READ TABLE GT_FAGL INTO GS_FAGL WITH KEY RYEAR = E_T_DATA-GJAHR
DOCNR = E_T_DATA-BELNR
RBURS = E_T_DATA-BUKRS
BUZEI = E_T_DATA-BUZEI.
IF SY-SUBRC = 0.
E_T_DATA-PRCTR = GS_FAGL-PRCTR.
E_T_DATA-SEGMENT = GS_FAGL-SEGMENT.
ENDIF.
*As we are using the amount DMBTR in which the amount
*will be in company code currency that is Local currency
*group currency always in the main company code currency.
CONCATENATE F_YEAR '0' F_PERI INTO E_T_DATA-FISCPER.
MODIFY E_T_DATA. " from gs_bsis transporting dmbtr fiscper.
CLEAR: E_T_DATA.
ENDLOOP.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF.Hi,
Please check the log of same jobs for last week and check is today its taking more time,also check with basis is their any backup initited at same time.
Moreover until the background job failed automatically its difficult to imagine what is the exact issue.
Thanks, -
Increase performance in a multiple data source report
Post Author: ArturoFromPeru
CA Forum: General
Hi everybody.
I have a big problem, when i make a report that have multiple data sources the performance decrease considerably, i still don't know the reason. Is it true that using multiple data sources is too slow?.
I tell you a fact: I made the report connecting via "Field Definition File", and it take at least 2 minutes to show itself but it only have 170 records, and i'm very sure that the sql statements to each data source were executed very faster.
I even heard about index, but i think they only are useful when i connect directly to the database.
All my partner told me, that Cristal Report
Thanks you in advance
Regards.
ArturoPost Author: ArturoFromPeru
CA Forum: General
Thanks you, but I explain better what i was doing.
I've made a report called "Kardex de Producto" which show the behavior of the products according to its sales, purchases.
The end result which is showed by the report is correct. I used three data source in the report, so links between each table is correct. The only problem i have is the performance because i still don't know why is too slow. In fact the sql statement is very heavy, but i think it doesn't matter to the report because when it takes the data from the database (connecting via Field Definition File) even if the very heavy sql statement returns twenty record Cristal Report must show itself very quickly. I don't want to believe that Cristal Report is very slow when it works with multiple data sources.
Do you mind if i give you my report? if not please leave me your email address.
Email: [email protected] / [email protected]
Thank you in advance
Regards
Arturo -
Using 2 web services data sources in the same report
I've been trying unsuccesffuly to use 2 web services data sources in a report. The main report accesses the first web service to get job summary information. 3 fields are are passed as parameters to a sub-report and used as parameters for the sub-report selection. Each report works fine independently, but when I link them together the subreport alway fails to retrieve data.
Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
Crystal Report 2011- SAP Data Sources: CL - no items found
Background:
SAP ECC 6.0 was purchased three years ago with DSD package. Only FI and SD modules are in use. Accounts download data filesfrom SAP to produce spreadsheet reports. Few user trust these numbers. We are setup as "SAP in the Cloud" model- Listening to constant user complaints, it seems SAP is broken. Interim solution: Crystal Report for everyone.
Encouraged by Ingo Hilgefort papers and Crystal Report Forum:
We decided to deploy Crystal Report 2011 and Business Object XI 3.1 with SP4 for our small user community. These software are installed on local XP laptop and Business Object XI 3.1 installed in the SAP server as well.
Problem Description:
The desktop user cannot see SAP infosets or tables contents. When connect to the data sources. After user login, she can navigate to expand the data source CL.- displays "no items found ". I can reproduce this error. Using the Crystal Report wizard and selecting various data sources such as: SAP Table, Cluster and Functions: CL, DD and FN category only DD and FN display items.
Current Environment: SAP in the Cloud.
SAP Server::ECC 6.0 EhP3 dual stack. Database MSSQL, OS 2008 Server, Business Object Intergration Kit 3.1, Remote Acces VPN.
Desktop Environment: Crystal Report 2011: SP1, Business Object Xi 3.1, XP SP3
Surprise: Clicking on either DD and FN tab inside the connector window in Crystal- it expands and displays tables and content reference but not CL.
Questions: Do we have to move to EhP5 for the CRX 2011 to work ? What is wrong: ? Any help will be appreciated?
This question is for Ingo H. How to convince SAP hosting company otherwise to solve our problem ? Is is desktop problem or Host side configuration ?Ahmad
K900687 is Open SQL Connectivity transport and required for direct SAP tables connectivity, so you need it, but I am not sure if the warning message relevant to your problem. Sometimes warning is just a warning.
You can see other objects in DD, but not in CL, it means the connection works. You probably do not have required authorisations to see objects.
I would suggest to review the Authorisation section of SAP Integration Kit Installation Guide here:
[http://service.sap.com/~sapidb/011000358700000559912010E/xi31_sp3_bip_sap_inst_en.pdf ]
You may also check what is the differences between DD and CL in terma of authorizations.
If you think CR 2011 is broken, then test CR 2008. Is still available for free 30-days trial download here:
[http://www12.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx]
, but you would need to add SAP Integration Kit to it.
Vitaly -
Error in vendor selection while creating Purchase requistions
Hi,
I was using bapi_requestion_create to create purchase requistion with different quotas for different vendors.
Ex: vendor A with 60%
vendor B with 40%
If the required quantity is 100 items then it has to split 60 items to vendor A and create seperate Puechase Requistion.
and for 40items with another Purchase requsition.
Currently iam able to split the noof purshcase requisiton but it was picking only with one vendor.
MY Code :
*******Split PRs with respect to Quota ************************
data : lv_lines type i,
lv_qty type p DECIMALS 4.
lv_qty = it_oo-qty.
DESCRIBE TABLE t_equp LINES lv_lines.
IF lv_lines GT 1.
clear : w_equp.
loop at t_equp into w_equp
where qunum = w_equk-qunum.
refresh : t_req_item.
clear : w_eord,
t_req_item[],
t_req_item.
READ TABLE t_eord INTO w_eord
WITH KEY matnr = it_oo_sum_purch-matnr_sap
werks = it_oo_sum_purch-plant
lifnr = w_equp-lifnr.
if sy-subrc is initial.
it_oo_purch-AGREE = w_eord-EBELN. "To Fill ALV
it_oo_purch-ITEM = w_eord-EBELP. "To Fill ALV
it_oo_purch-FORNEC = w_equp-LIFNR. "To Fill ALV
t_req_item-doc_type = c_zbmr.
t_req_item-pur_group = it_oo-ekgrp.
t_req_item-material = it_oo_sum_purch-matnr_sap.
t_req_item-plant = it_oo_sum_purch-plant.
t_req_item-AGREEMENT = w_eord-EBELN.
t_req_item-AGMT_ITEM = w_eord-EBELP.
t_req_item-FIXED_VEND = w_equp-LIFNR.
t_req_item-QUOTA_ARR = w_equk-qunum.
t_req_item-QUOTARRITM = w_equp-qupos.
t_req_item-gr_ind = c_x.
t_req_item-ir_ind = c_x.
t_req_item-MRP_CONTR = 'NOV'.
CONCATENATE it_oo_sum_purch-due_dte+4(4)
it_oo_sum_purch-due_dte+2(2)
it_oo_sum_purch-due_dte(2)
INTO t_req_item-deliv_date.
t_req_item-QUANTITY = ( w_equp-QUOTE / 100 ) * lv_QTY.
endif.
********Rounding off values*******************
data : lv_int(20) type c,
lv_dec(20) type c,
lv_tot(20) type c.
clear : lv_int ,
lv_dec,
lv_tot.
lv_tot = t_req_item-QUANTITY.
split lv_tot at '.' into lv_int lv_dec.
if lv_dec(1) ge '5'.
lv_int = lv_int + 1.
endif.
t_req_item-QUANTITY = lv_int.
APPEND t_req_item.
clear : v_number.
Create purchase requisition by group
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
IMPORTING
number = v_number
TABLES
requisition_items = t_req_item
return = t_return.
ERRO
IF t_return-type CO 'AE'.
CLEAR: v_msg, v_x.
CALL FUNCTION 'WRITE_MESSAGE'
EXPORTING
msgid = sy-msgid
msgno = sy-msgno
msgty = sy-msgty
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4
IMPORTING
messg = v_msg.
PERFORM zf_grava_log_erro_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
SUCESSO - Atualiza Tabela zsytmm_pr_po
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = c_X.
CLEAR: v_msg, v_x.
CONCATENATE text-026 v_number INTO v_msg
SEPARATED BY space.
it_oo_sum_purch-QTY = t_req_item-QUANTITY.
PERFORM zf_grava_log_sucesso_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
CLEAR: zsytmm_pr_po.
vl_item = c_00001.
zsytmm_pr_po-banfn = v_number.
zsytmm_pr_po-bnfpo = vl_item.
zsytmm_pr_po-ebeln = c_false.
zsytmm_pr_po-ebelp = c_false.
zsytmm_pr_po-zshmode = it_oo_purch-shipm.
MODIFY zsytmm_pr_po.
ENDIF.
endloop.Hi,
You have to fill DES_VENDOR & FIXED_VEND of structure REQUISITION_ITEMS while calling BAPI. But while going through your code,
* t_req_item-FIXED_VEND = w_equp-LIFNR
is commented, uncomment the same and add line for DES_VENDOR also.
Regards
Vinod -
Issue with Crystal Report based on 2 different data sources
Hi there,
I am having a frustrating problem with a report I've designed and I'm hoping someone might be able to assist please.
The report has 3 different prompts, each of which is based on a dynamic list of values retrieved via views within a SQL server db.
We are wanting to introduce the use of Universes as much as possible, so the data returned is based off a BO Universe data source query.
I have uploaded the report into BO and have provided the necessary database logon information for the report (in the "Process" > "Database" settings in the CMC) for both the direct db datasource connection (for the views) and the BO Universe query connection.
When the report is run however, the report still prompts for the database user name & password credentials. I have triple checked my db connection settings, and also have "Use same database logon as when report is run" set to true. I also tested a cut-down version of the report without the Universe connection with the same db logon credentials I provided and there was no credentials prompt when it was run, proving those values are accepted.
Does anyone know why this is happening & if there is a way around it? Alternatively, is there some way that a report prompt may be based on a dynamic list of values retrieved via a Universe connection? This way I'd be able to remove the db connection for the views and have the report solely based on the Universe.
Another issue that occurs is out of the 3 prompts, a user can select a User Name OR Number, and also must select a Period. However if the User Name or Number is left blank the message "The value is not valid" is shown. So I tried a cut-down version of the report with only the BO Universe as a data source (static prompts) and this didn't occur, i.e. I was allowed to leave either the User Name or Number empty.
I hope this all of makes sense - let me know if not. If anyone is able to help out with any of this it would be very much appreciated.
Cheers,
MarcoPlease re-post if this is still an issue to the Business Objects Forum or purchase a case and have a dedicated support engineer work with you directly
Maybe you are looking for
-
Sony Xperia Z3 and PS4 controller connection
Hey I guess this is a wellknown problem among the Xperia Z3 Dual users. I wanna connect my PS4 controller to the phone but it won't connect at all unless I do it before I connect the xperia z3 to the PS4. I wanna experience how the ps4 controller wor
-
what I want to do is to be able to add details of the subject and add information but not in the file name, as i find this a useful way to file the history of all my uploads. Have I missed a feature that allows me to do this without being online and
-
Running Extremely Slow sometimes
Hi, for the last few days my laptop has been running very slow to the point where I can't do anything. If I restart or shutdown and turn it back on, it still runs very slow and takes about 10 minutes to start up. It goes away though sometimes. For in
-
Fonts not visible on Assets tab
I am running Creative Cloud on OS-X 10.9 with all software up to date. I have Muse, Photoshop, Illustrator and several other apps installed and up to date. I have noticed recently that if I go to the Assets tab on Creative Cloud, it is blank. No F
-
I have a number of photos in Aperture that seem to have lost their masters. I can view the versions that I created by working on the masters, yet I cannot export the versions, because Aperture tells me that the master is unavailable. I cannot find th