GETLIST BAPI Wrapper for Purchase Requisiton
HI All,
I want to know the GETLIST BAPI Wrapper for Purchase Requisition in ECC 6.0 . I am able to find GETDETAIL but not GETLIST.
It would be nice if anyone could help me out in this.
Regards,
Madhu.
Edited by: madhu kv on Jul 8, 2008 10:53 AM
In that case you could just write your own custom function module to do it. All you need to do is write a simple select statement to return a table of document numbers. It shouldn't take more than an hour to have it all up and running. You could add a parameter to the interface so that it either returns just a list of document numbers or if the parameter is set, it calls GET_DETAIL for each document and returns the full data.
Good luck
Similar Messages
-
Creating GetList Bapi Wrapper for Sales Order
Hi All,
I am not at all into CRM, but there is some problem I have which is related to it.
In the Sales-TeleSales transactions, I create a sales Order.
Now there is much data that is there which is linked to this Sales Order like
1) Telesales
2) Item
3) Sold-to-party
4) Product
5) Quantity
6) Req-del-date
7) Currency
8) Region
9) Country
10) Net Value
11) Discount
12) Tax amount
13) Gross Value
14) Partner
I need to create a BAPI Wrapper to get all the Header and Detail data.
I am thinking of finding a BAPI or a Function Module which does this job and calling it in my BAPI Wrapper.
Now I want you people to tell me the Appropriate BAPIs or FMs which will do this job for me.
I need almost all these fields to be returned by my Bapi Wrapper.
Please ask for Clarifications...
Lookin forward to responses...
AnkurHi Ankur,
You can Call the FM : CRM_ORDER_MAINTAIN within your BAPI wrapper.
For testing purpose there is a Standard Report on this FM , Report name : 'CRM_TEST_ORDER_MAINTAIN'.
Hope this will be helpful to you
Regards,
Anand. -
Instance Push doubt about getList bapi wrapper
Hi guys.
Another question: Is necessary to implement getList and getdatails bapi wrapper in backend adapter whose Synchronization Type backend trigerred and Direction only download?Hi,
It is not mandatory to have both GetList and GetDetail.
If you have only one structure in your BAPI, which is a header/root node and if you return the whole instance rather than just the backend key, then only GetList BAPI wrapper is enough.
But if you have root node along with some child nodes, then you need GetList and GetDetail both. Getlist returning either just Backendkey or whole root node and then a GetDetail which returns whole root along with all child nodes.
Regards,
Siva. -
To create BAPI Wrapper for Sales Order Creation
Hi Experts,
I'm working upon MI 7.1 to create mobile application for creation of sales order.
I've to create Sales Order BAPI Wrapper (Getlist, Get Detail & Create) using Standard BAPI's (BAPI_SALESORDER_GETLIST & BAPI_SALESORDER_CREATEFROMDAT2).
Kindly guide me for how to proceed with the above. Which all other BAPI's do I require except above?
PS: I was trying to call standard BAPI's but while executing the BAPI Wrapper it asks about Customer No. & Sales Org. then only I'll get the output.
my requirement is I should get list of all the sales order's existing in the Back-end, once I execute the BAPI Wrapper.
RomiHi,
if it comes to bapis on the backend, there are not so many changes from MI7.0 to MI7.1 as in the UI for example. So you still need the backend adapters like GETLIST/GETDETAIL/CREATE as they where necessary in 7.0.
If you need an example on how these should look like - do you have a full blown backend available? Have a look if you can find the following BADIS in SE37 in the backend: MAM30_050_GETLIST. If you can find this one, have a look how it is working. That one should help you to get an idea on how the replication is working and how the complete stuff works. The create should be straight forward development then.
You furthermore can have a look into the URL mentioned aboveand as well in the complete MI7.0 dokumentation if you take it just to get a general idea on how the stuff works. But the URL mentioned above should be enough in a normal case.
Regards,
Oliver -
BAPI Extension for Purchase requisition
Hi All,
I have to add a custom field in EBAN and have to enhance PR BAPI to include that additional field. What steps shud I follow?
how can I use BAPI Extensions?
Any help will be rewarded.
Regards,
PragyaHi,
I am told that I have to use BAPI extension structures to add the field to BAPI.
But I am not sure how to proceed once I have created the BAPI extension structure.
also I am not sure of the user exit that I will have to use further?
Please help.
Regards,
Pragya -
BAPI / FM for Purchase Requisition Change
Hello All,
I need to add items to the existing requisition. I tried <b>BAPI_REQUISITION_CHANGE / ME_UPDATE_REQUISITION / BAPI_PR_CHANGE / FMFG_MM_REQ_CHANGE</b>, but none of them seem to be working fine for me. Anybody worked on this task or any other thoughts?
Thanks,
ChandniBAPI_REQUISITION_CHANGE has table parameters REQUISITION_ITEMS_OLD, REQUISITION_ITEMS_NEW , REQUISITION_ACCOUNT_OLD, REQUISITION_ACCOUNT_NEW, REQUISITION_TEXT_OLD, REQUISITION_TEXT_NEW. But, there is no indicator field in these old or new structures that you are creating a new line item.
In BAPI_REQUISITION_CREATE, there is a field to block requisition (BAPIEBANC-REQ_BLOCKED) , but in BAPI_REQUISITION_CHANGE the structure BAPIEBANV does not have a field to block or unblock a req. however, this is taken care by BAPI_PR_CHANGE.
<b>My concern is how add new line items to the existing requisition?</b> -
Problem in creating a SyncBo for Purchase Order BAPIs
Hello Everybody,
I am trying to create a smart sync application for Purchase Orders.
I have used standard bapis like BAPI_PO_GETDETAIL AND BAPI_PO_CREATE1.
I have developed my own wrapper functions using these std bapis. For the PO creation i only plan to insert the necessary and mandatory data. The problem i face is that some of the tables in the create bapi which are mandatory for a PO creation are freezed in the SyncBo.
Tables like POITEMX, POADDRDELIVERY, POSCHEDULE and structure POHEADERX are all required for the creation of a PO. Without this minimum data a PO cannot be created.
After i have created the syncBo, on the mapping screen i can only see these tables under the create BAPI. But i am not able to perform the mapping of their fields. These are non-editable or i must say that they are freezed.
And if i cannot map them then i cannot pass data for them from the client. Although i can do the mapping for the table PO_ITEM and the structure PO_HEADER.
I hope i am able to expplain my problem. Kindly get back to me if i am not clear. Any sort of help is welcome.
Thanking in advance,
Saurabh.Hi Saurabh,
Hope you are aware of the prerequisites for creating the BAPI Wrappers.
If you want to insert some data into the Business Object, then you have to include
GETLIST, GETDETAIL and CREATE Bapi Wrappers.
I think in your case,
You might not have mapped those fields in your GETLIST Bapi Wrapper.Just check whether you have mapped those fields that are necessary for PO creation in your GETLIST and GETDETAIL BApi wrapper mapping screen.
Those fields you have mapped in the GETLIST and GETDETAIL BAPI wrappers will be visible (for selection - checkboxes will be editable) in the mapping screen for CREATE BAPI Wrapper.
So first of all, you have to map fields there in the mapping screens for GETLIST and GETDETAIL Bapi Wrappers...
check this thing...
refer these links..
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/introduction.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/mobile/mobile%20infrastructure/mobile%20development%20kit%202.5/content/appdev/smartsync/bapi_wrapper_types.html
In the second link, you can see one figure, which is explaining the things that are to be satisfied by the BAPI Wrappers for SyncBO creation...
Let me know If you have doubts in the prerequisite section itself...
Regards,
Kishor Gopinathan -
Regarding MAM25_001_GetList BAPI wrapper
Hi,
We are configuring MAM 2.5 on ECC 5.0
We have created work orders for a work center.
We then created a operation variant with the work center as a parameter and assigned it to the order profile in MAM 2.5 configuration
When I execute the variant independently, it shows the list of orders being retrieved.
But when I execute MAM25_001_Get_List Bapi wrapper for the same user manually in R/3, it doesnt display any data.
I could see that the BAPI wrapper is executing a report program RIAFVC20 and passing the order selection variant as a parameter.
I even tried executing this report program manually and selected the variant. The report program displays the data when run independently.
Do we need to apply any SAP Notes for MAM 2.5 component in ECC 5.0
Regards
Raja SekharHi Raja,
In assignment profile, you kept user->workcenter for order..right
In the transaction alm_me_user, you need to give the workcenter. Otherwise the system will consider that as empty work-center and since all the orders selected in operation have workcenter, none of the orders are selected and downloaded to client.
A Customer scenario.
1. Assume Daily 100 order are created in R/3 system. They should be selected by variant.
2. 10 work-centers are used for processing the orders. In assignment profile, we keep user->workcenter(Assume 10 order for each work-center)
3. So, generally we keep a work-center value in alm_me_user. So, when you execute getlist for this user, he will get 10 orders.
Regarding
2. What does the User -> Work Center + Employee + Planner Group option mean in the Order assignment criteria.
Does it mean that orders will be downloaded to the user only if he satisfies all the conditions like
1. He belongs to work center mentioned in the order
2. His employee number is mentioned in the order
3. He belongs to the planner group mentioned in the order
>> If you keep above option in assignment profile, in alm_me_user, (in order section), you need to give all the values (i.e., work-center, employee, planner group). The user given need not belong any work-center or planner etc.
Hope I am clear.
Best Regards,
Subhakanth -
How to pass table values in Create Bapi Wrapper
Hi All,
Am using create BAPI Wrapper in that how to map the fields inside BAPI Import Structure .
Thanks&Regrads,
ArunHi,
Am using standard RFC " QIBP_INSPCHAR_SETRESULT " for creating result recording in SAP QM. And BAPI_INSPOPER_GETDETAIL for getdetail i want to create BAPI wrapper for these 2 i already created BAPI wrapper for get detail . I dont know how to create Create BAPI wrapper.
In QIBP_INSPCHAR_SETRESULT am passing inupt
INSPLOT LIKE QALS-PRUEFLOS
INSPOPER LIKE QAPO-VORNR
INSPCHAR LIKE QAMV-MERKNR
INSPSAMPLE LIKE QASV-PROBENR
CHAR_RESULT LIKE BAPI2045D2
so i want to know how i can pass 1 . CHAR_RESULT structrue values
2. INSPLOT,INSPOPER,INSPCHAR again repting inside CHAR_RESULT so how to map these
in SDOE_WB
Pls explain how to create BAPI Wrapper for this and how to map details. -
Hi all,
I would like to know if there is any BAPI present to create purchase requisiton.
The fileds that I would like to give are
Item Category ,Material no,
Quantity
Delivery date
Plant
Storage Location
Supplying plant
Requisitioner Name
I have seen the bapi BAPI_ACC_PURCHASE_REQUI_POST, but I dont think this has input field for item category and plant, storage location, supplying plant.
If there is no bapi present for it, then I would have to go for BDC for creating purchase requisitions.
Thanks
SachinHi Sachin,
I think this thread has to be the best to explains you the issue you are facing at this moment so please have a look.
Link:[BAPI|BAPI to create Purchase Requisition;
Have a best day ahead.
Edited by: Srivastava.G on Aug 28, 2009 8:48 AM -
Bapi wrapper- MODIFY Wrapper For SyncBo
Modify Wrapper :ZGET_AM_P2P For SyncBO
I have read the requirement :
-replace entire item data with entries of table parameters
pls tell me the code will work or not if i put in syncBo
someone pls help me.....
FUNCTION ZGET_AM_P2P.
""Local interface:
*" IMPORTING
*" VALUE(V_ANLN) LIKE ANLA-ANLN1 OPTIONAL
*" VALUE(V_STORT) LIKE ANLZ-STORT OPTIONAL
*" EXPORTING
*" VALUE(V_MSG) TYPE STRING
TABLES : anla, anlz, anlh.
DATA : v_date LIKE sy-datum,
var1 like BALM-MSGV1,
var2 like BALM-MSGV2.
refresh : bdcdata, messtab.
clear : bdcdata, messtab, v_msg, v_date.
SELECT SINGLE * FROM anla WHERE anln1 = v_anln
AND bukrs = '1000'.
SELECT SINGLE * FROM anlz WHERE anln1 = v_anln
AND bukrs = '1000'.
SELECT SINGLE * FROM anlh WHERE anln1 = v_anln
AND bukrs = '1000'.
CONCATENATE anla-aktiv6(02) anla-aktiv4(02) anla-aktiv(04) INTO v_date.
CALL FUNCTION 'ZBAPI_AM_P2P'
EXPORTING
V_ANLN = ANLA-ANLN1
V_STORT = v_STORT
V_TXT50 = ANLA-TXT50
V_ANLHTXT = ANLH-ANLHTXT
V_KOSTL = ANLZ-KOSTL
V_WERKS = ANLZ-WERKS
V_DATE = v_date
IMPORTING
V_MSG = v_msg
ENDFUNCTION.
FUNCTION zbapi_am_p2p.
""Local interface:
*" IMPORTING
*" VALUE(V_ANLN) LIKE ANLA-ANLN1 OPTIONAL
*" VALUE(V_STORT) LIKE ANLZ-STORT OPTIONAL
*" VALUE(V_TXT50) LIKE ANLA-TXT50 OPTIONAL
*" VALUE(V_ANLHTXT) LIKE ANLH-ANLHTXT OPTIONAL
*" VALUE(V_KOSTL) LIKE ANLZ-KOSTL OPTIONAL
*" VALUE(V_WERKS) LIKE ANLZ-WERKS OPTIONAL
*" VALUE(V_DATE) LIKE SY-DATUM OPTIONAL
*" EXPORTING
*" VALUE(V_MSG) TYPE STRING
DATA : var1 LIKE balm-msgv1,
var2 LIKE balm-msgv2.
PERFORM open_group.
PERFORM bdc_dynpro USING 'SAPLAIST' '0100'.
PERFORM bdc_field USING 'BDC_OKCODE' '=MAST'.
PERFORM bdc_field USING 'ANLA-ANLN1' v_anln.
PERFORM bdc_field USING 'ANLA-ANLN2' '0'.
PERFORM bdc_field USING 'ANLA-BUKRS' '1000'.
PERFORM bdc_dynpro USING 'SAPLAIST' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE' '=TAB02'.
PERFORM bdc_field USING 'ANLA-TXT50' v_txt50.
PERFORM bdc_field USING 'ANLH-ANLHTXT' v_anlhtxt.
PERFORM bdc_field USING 'ANLA-AKTIV' v_date.
PERFORM bdc_dynpro USING 'SAPLAIST' '1000'.
PERFORM bdc_field USING 'BDC_OKCODE' '=BUCH'.
PERFORM bdc_field USING 'ANLZ-KOSTL' v_kostl.
PERFORM bdc_field USING 'ANLZ-WERKS' v_werks.
PERFORM bdc_field USING 'ANLZ-STORT' v_stort.
PERFORM bdc_dynpro USING 'SAPLAIST' '3020'.
PERFORM bdc_field USING 'BDC_OKCODE' '=YES'.
CALL TRANSACTION 'AS02' USING bdcdata MODE 'N'
UPDATE 'S'
MESSAGES INTO messtab.
PERFORM close_group.
READ TABLE messtab INDEX 1.
MOVE messtab-msgv1 TO var1.
MOVE messtab-msgv2 TO var2.
CLEAR v_msg.
CALL FUNCTION 'MESSAGE_PREPARE'
EXPORTING
language = 'E'
msg_id = messtab-msgid
msg_no = messtab-msgnr
msg_var1 = var1
msg_var2 = var2
MSG_VAR3 = ' '
MSG_VAR4 = ' '
IMPORTING
msg_text = v_msg
EXCEPTIONS
function_not_completed = 1
message_not_found = 2
OTHERS = 3.
ENDFUNCTION.
Message was edited by:
yzme yzmeHi Saptak,
Good to see that you had gone through earlier posts & SAP notes.
Record not on device errors occurs when a mobile user tries to modify a record which currently doesn't belongs to him anymore. Since you have an S01 syncBO, the object he is trying to modify now is deleted from MI. ( This doesn't mean the object is deleted from backend. Basically the Getlist bapi is now not returning this object)
This occurs only if the sync mode is "async". There is nothing to be worried about. This is just an expected behaviour. If you feel the update is important and needs to be sent to the backend, set the parameter REPROCESS_ON_NO_DATA to 'X' and reprocess the worklist.
When you reprocess, the Getdetail bapi will be called and the user changes are merged to the latest backend data. No conflict check done and hence there is a chance of backend changes getting overwritten. If the particular record is only updated by mobile user, then there is nothing to worry..
Let me know if you need more clarifications...
Regards
Ajith -
FM to get purchase requisiton created for Sales order in APO
Hello experts,
I want to know is there any FM or BAPI exists in APO to get Purchase requisiton created for a sales order created in R/3 using sales order number? and FM or BAPI to get the sales order config data. if the mapping of sales order and purchase requisition is in Table, Please mention those tables also.
Many thanks,
SenthilHi,
Please see the below link for useful SCM BAPIs....
http://wiki.sdn.sap.com/wiki/display/SCM/SCM+BAPIs
For sales order config data, BAPI_SLSRVAPS_GETLIST2 is available.
Regards,
Saurabh -
BAPI for PURCHASE ORDER with OPEN QUANTITY field
Hi All,
I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
Am using SAP version 4.0B.
If not exists please advise how to customize the existing BAPI to meet the requirement.
thanks
mahiHi,
Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
Delivery data is EKET table.
Regards,
Ravi -
BAPI for Purchase Order Confirmation and update EKES table
Hi all,
I have a requirement to update the PO confirmation soon after successful creation of PO in an IDOC.
I have used BAPI_PO_CHANGE function module which didnt serve the purpose as it cannot update confirmations.
I tried using ME_CONFIRMATION_UPDATE where I was able to add a confirmation entry in EKES table but that is not being reflected in ME23N transaction when I display the PO.
Please help me out on this.
Thanks & Regards
PavanNB: Never use a standard update FM (check attributes of ME_CONFIRMATION_UPDATE) its often only a SQL statement collector without any check, logging of changes or database consistency, if you perform a where-used you should find it is never called alone but with a bunch of other update FM after checks and other update preparation.
Get back to the BAPI and table parameter POCONFIRMATION, also use BAPI_PO_GETDETAIL1 to get current data for the call of BAPI_PO_CHANGE.
Regards,
Raymond
PS: If it is not in 197958 - BAPIs for purchase orders: Missing functions, you should be able to do it -
BAPI for purchase order enhancement in DMS
hi, guru,
one of the client requirement is,
Is there any BAPI s for enhance ment of DMS and Purchase order FUnctionalities?
points!!!!!!!!!!1Hi,
regarding the DMS BAPIs please see the transaction BAPI in your system or the SAP note 766277 which contains a complete documentation on all DMS BAPIs.
Best regards,
Christoph
Maybe you are looking for
-
Adobe Interactive Forms Runtime Error: Unknown host
I have installed the NW2004s sneak preview, configured the J2EE services for Adobe Interactive Forms, and am trying to test the TravelRequest sample web dynpro that uses interactive form. I get the following runtime error: com.sap.tc.webdynpro.clien
-
What is the maximum number of globals allowed in one global file?
I remember there was a limit discussed in a LabVIEW class, but I can't remember it. But I know I exceeded the number on one project and VERY WEIRD things happened. Does anybody know this number? Thanks Much
-
Need script to run command line as administrator
I need a VB Script to run a certain command line "wmic Product where name='XXX XXX XXX' call uninstall" in an elevated command prompt. This is to uninstall a hidden application. Is this possible? It must be I have see many others with suggestions and
-
Got "java.lang.OutOfMemoryError: allocLargeObjectOrArray - Object size" Err
System :jrockit-R27.4.0-jdk1.5.0_12 4 GB RAM 3GB Switch JVM Setting: <java classname="com.nomis.documentmgmt.scenario.OptBuildBaselineScript" fork="yes" failonerror="true" maxmemory="1536m"> <jvmarg value="-client"/> <jvmarg value="-Djava.library.pat
-
Hi, Wanted to know the extend to which I can utilize CATS_appr_lite transaction, to approve working times for CATS. Is it possible to run this program as a job, with a variant to prevent manual intervention while approving records? anyone has experie