Similar Parameters in a BAPI
hi all,
In "BAPI_FLIGHT_GETLIST" the "Flight_List" Parameter appears twice. one directly under the "BAPI_FLIGHT_GETLIST_INPUT" and another one under the "Output" Parameter.
can you please let me know why "Flight_List" appears twice.
if i want to display the list of flights, then which one to be used. either the "Flight_List" under the "Output" parameter or the one that comes under the "BAPI_FLIGHT_GETLIST_INPUT"
your immediate replies will be really helpful.
Regards,
Ajay
Hi Valery,
thanks for the information that you have given and have awarded points.
as i told you before, i have a BAPI SAP_WAPI_WORKITEM_BY_TASK which would display the list of workitems for a particular user. now there are two options, either i could REJECT or APPROVE the workitems. for rejecting the workitem i call a BAPI SAP_WAPI_REJECT_WORKITEM.
I create a button which on clicking would trigger the SAP_WAPI_REJECT_WORKITEM. kindly let me know what should be written inside the button event handler/action in order execute the SAP_WAPI_REJECT_WORKITEM, which would ultimately reject the workitem.
kindly help me out...
waiting for your replies...
Regards,
Ajay
Similar Messages
-
Parameters sent to BAPI in the data buffer
I have set up a JRA action with the data buffer option (the JRA action passes parameters to a BAPI). Thus, when ECC is not avalaible, the system creates an entry in the data buffer job list. I would like to know if there is any way to get information on the parameters that will be sent to the BAPI in ECC (whence ECC will be available once again).
Thanks,
Aymeric>>The problem isn't the trim, because the bapi call must contain the spaces.
Are you able to get expected results while testing the BAPI with data containing spaces?
I have seen some cases where you get correct results when you test the RFC in SE 37, but the same data when passed from XI does not get the desired results. It was coz. when testing the RFC in R/3 some user exits are called and the data fets populated in the correct way. Check this.
Regards,
Jaishankar -
How to model 2 indices made up of similar parameters to allow drill through?
Hi,
I am creating a dashboard which will show two indices of performance. The first index (call it index A) is made up of parameters 1, 2 and 3. The second index (call it index B) is made up of parameters 2,3 and 4. When the user explores index A I want
to be able to show the performance of each of the sub parameters, similarly with index B.
my fact table has the test results of sampling the parameters at the parameter grain so:
paramter , result
1, 1
2, 0
3, 1
4, 0
in this case my dashboard will show the pass rate of index A as 66.7% and the pass rate of index B as 33.3%. If these are interrogated I should get details below this for each relevant parameter.
I could do this by using a bridge table between my fact and dimension table, bu I think there might be a neater way in SSAS... I'm using sql server 2012 analysis services.
Thanks for any helpful suggestions!Hi Peego,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Charlie Liao
TechNet Community Support -
Runtime Error while passing parameters in a BAPI
Hi,
I need to create a loan contract using BAPI_LOAN_CONTRACT_CREATE
But it gives me this runtime error when im passing the values to it.
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "BAPI_LOAN_CONTRACT_CREATE" is incorrect:
In the function module interface, you can specify only
fields of a specific type and length under "CONDITIONHEADER".
Although the currently specified field
"I_CONDHEADER" is the correct type, its length is incorrect.
Missing Handling of System Exception
Program is:
wa_loan-COMP_CODE = 'COPA'.
WA_LOAN-STATUS = '60'.
WA_LOAN-PROD_TYPE = '24A'.
WA_LOAN-LOAN_TYPE = '302'.
WA_LOAN-CURRENCY = 'USD'.
WA_LOAN-CURRENCY_ISO = 'USD'.
APPEND WA_LOAN TO I_LOAN.
WA_CONDHEADER-CONDITION_VALID_FROM = '20120201'.
*WA_CONDHEADER-VALID_FROM = '20120201'.
WA_CONDHEADER-REPAYMENT_TYPE = '2'.
WA_CONDHEADER-DISC_DET = '1'.
WA_CONDHEADER-P_D_RATE = '100'.
WA_CONDHEADER-COMM_CAP = '10000.0000'.
WA_CONDHEADER-CURRENCY = 'USD'.
*WA_CONDHEADER-CURRENCY_ISO = 'USD'.
WA_CONDHEADER-TERM_START = 20120201.
*WA_CONDHEADER-TERMS_START = '20120201'.
WA_CONDHEADER-FINAL_DUE_DATE = 20120201.
*WA_CONDHEADER-DUE_DATE = '20120201'.
*WA_CONDHEADER-EFFINTFROM = 20120201.
*WA_CONDHEADER-EFF_FROM = '20120201'.
APPEND WA_CONDHEADER TO I_CONDHEADER.
WA_PARTNERS-COMP_CODE = 'COPA'.
WA_PARTNERS-PARTNER = '70027'.
WA_PARTNERS-ROLE_TYPE = 'TR0100'.
APPEND WA_PARTNERS TO I_PARTNERS.
CALL FUNCTION 'BAPI_LOAN_CONTRACT_CREATE'
EXPORTING
LOAN = I_LOAN[]
CONDITIONHEADER = I_CONDHEADER[]
CORRESPONDENCE =
USERFIELDS =
TESTRUN = ' '
REFRESH = ' '
PROCESSEXTENSION = ' '
STEERING =
AVOID_INNER_JOIN = ' '
CALLN_APPLN = 'INT'
IMPORTING
LOANNUMBER =
ERROR =
TABLES
PARTNER = I_PARTNERS
CONDITIONS =
FORMULA =
OBJECTS =
COLLATERALS =
ENCUMBRANCES =
CLERKS =
EXTENSION_IN =
RETURN = I_RETURN
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
I am not able to understand where am I going worng.
Kindly Help.
Thanks.shruteie wrote:
>
APPEND WA_LOAN TO I_LOAN."why append?
> APPEND WA_CONDHEADER TO I_CONDHEADER. "why append?
> CALL FUNCTION 'BAPI_LOAN_CONTRACT_CREATE'
> EXPORTING
>"LOAN type BAPILOAN_CREATE --> a structure
>"CONDITIONHEADER type BAPICONDHEAD_CREATE --> a structure
> LOAN = I_LOAN[] "==> this is a table not a structure, why [] added?
> "keep WA_LOAN
> CONDITIONHEADER = I_CONDHEADER[] "==> this is a table not a structure, why [] added?
> "keep WA_CONDHEADER
> Thanks. -
Wht is similar field of BDC's BBKPF-BVORG in BAPI-BAPI_ACC_DOCUMENT_POST?
Hi Experts,
We can post GL acct docs via BDC and BAPI (BAPI_ACC_DOCUMENT_POST).
In BDC, there is a filed w/ name BBKPF-BVORG-->Number of Cross-Company Code Posting Transaction, so, I am lookig for the same field/any other similar to BVPRG, in BAPI structure - BAPIACHE09, but I did not find any one?
So, pls. let me know that, How can I fix it? any other alternative field? How can I populate my_value via BAPI for this field?
thanqYou should not be setting this field in your BAPI (or BDC as far as I know). SAP will set this field at the time of posting. It is used to determine cross-company postings or not.
-
RFC Lookup - BAPI-TABLE Parameters problem
Hello All,
I had a scenario where i need to export parameters and am supposed to get import parameters from BAPI between source and target structures.
like -
source --> BAPI execution = result --> target
We had succeeded in getting those but the only problem is with TABLE parameters in that BAPI.
How can we achieve it.
Faster reply would be appreciated.
Thanks & regards
ReddyHi VJ,
Its not a simple source-target mapping .
For Ex :
Source-Bapi-Idoc
Source will send some parameters to BAPI and bapi will execute it and respond with values in table parameter of the bapi and result would be assigned to idoc-field.
For this i am using RFC Look up with sample code as :
String rfcxml ="<ns0:Z_BAPI xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">" +
" <A>" + A + "</A>" + --- Export parameters
" <B>" + B + "</B>" + --- Export parameters
//" <TABLE><FIELD1>" + FIELD2 + "</FIELD1></TABLE>" +
//" <TABLE><FIELD2>" + FIELD2 + "</FIELD2></TABLE>" +
//" <TABLE><FIELD3>" + KDMAT+ "</FIELD3></TABLE>" +
// "<FIELD1>" + FIELD1 + "</FIELD1>" +
"</ns0:Z_BAPI> " ;
Passing A & B as export parameters and getting TABLE-FIELD1&2&3 as response.
I hope some problem in the syntax.
Regards,
HP -
BAPI_ACC_***_TRANSFER_CHECK Bapi input parameters
Hi,
DId any one used this BAPI for multiple asset transfer? If yes please let me know the input parameters for this BAPI.
I couldn't find the documentation for this BAPI, please let me know where I can find this?
Thanks in Advance.
Best Regards,
Sekhar.Hi,
fill table TRANSRETIREMENTDATA for the asset which retired and table TRANSACQUISITIONDATA for the assets which receive the asset.
Fill fields comp_code, ASSETMAINO, ASSETSUBNO, VALUEDATE,
COMPL_RET, and ASSETTRTYP.
Hope it helps.
Regards
Hiren K.Chitalia -
Baseline Information:
-- We are running SAP ECC v6.
-- We have added two new columns to the Equipment Master database, on the EQUI table. These columns are entitled GUIDNO and Z_GISGRID. These columns were added to the EQUI table within the SAP-delivered customer Include entitled "CI_EQUI".
-- we've looked at the method using "Extension In" and "Extension Out" parameters. The BAPI's were not configured by SAP to include these parameters. Plus, we not sure we completely understand the use of these parameters to extend the BAPI if we were to create the extensions ourselves.
Challenge:
We want to add the ability to update these columns from the SAP-delivered BAPI's BAPI_EQUI_CREATE and BAPI_EQUI_UPDATE. We also want to include these columns in the return structures from the BAPI_EQUI_GETDETAIL call.
We are struggling with modifying these BAPIs to include these columns in such a way that the BAPIs will still "survive" a future upgrade. What is the SAP-prescribed method for adding new columns to these BAPIs?Hi,
you can try to enhance the BAPI using enhancement framework - particularly enhance function module interface and implicit enhancement points. Recently I briefly described how you can do it for BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Have a look at [this thread|Extend BAPI_BILLINGDOC_CREATEMULTIPLE?;. Similarly, you can add an optional structure/table to BAPI interface and then find a suitable enhancement point to populate standard table.
Cheers -
BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation is giving error
Hi Gurus,
I am executing BAPI:BAPI_TRLSRVAPS_SAVEMULTI2 for TLane creation. when i am passing required values like , location from , Location to, model, version, lot size , etc.
After executing the BAPI is returning that ''Entry was not processed because there is no changing parameter available''. Can any one experienced this before. As i am creating a new TLane, why this error should come???Hi ,
Best way to check the parameter list is ,use the bapi BAPI_TRLSRVAPS_GETLIST (SCM 4.0) or similar available in 5.0 to read the existing transportation lanes successfully created in system.Check all the parameters and update similar parameters for BAPI_TRLSRVAPS_SAVEMULTI2.
Ofcourse then you can come to exact parameters functionally important to you by trial and error.
Otherwise you can use the APO loader tool to create the transportation lanes.Although SAP discourages to use it in the production system , for testing it is fine.Please check the FAQ note 551972.
Regards,
Nikhil Nalgirkar -
Can i read export parameter values of Upload BAPI
Hi,
I have a BAPI wrapper which has 4 import parameters and 2 Export parameters
I have created a syncBO of type Upload U01.
I run my mobile application filling the values required and pass the values to headerfields of SyncBO.
During synchronization these values are forwarded and action is performed.
Now , my doubt is can i read the export parameters of the BAPI wrapper when the action is performed during synchronization???
Rgds,
Kiran JoshuaHi Kiran,
>>>If you want to return error state, throw an exception on the BAPI, and those >>will be showed on the device and the sync will be marked as failed.>>>
For example while creating a customer record..last name is mandatory...its an validation from backend...so while coding BAPI we need to implement this exception....so when we create a record from the client without last name.....BAPI throws an exception that last name is mandatory..this would be displayed in merep-mon..logs...and similarly any other error like RFC connection broken etc...
Cheers,
Karthick -
Problem in creation of sales order using BAPI
Hi Guru's,
I am currently working on Minimum Order Value problem. If the ordered item is less than 5$, the requirement is to add a new material MOV to the existing order by filling the difference amount and making it to 5 pounds. I am using the bapi BAPI_SALESORDER_CHANGE to amend the existing order with the MOV material. The material is getting created successfully and the order is getting amended. When i tried to process the order for billing It shows incompletion log exist. On checking the incompletion log it shows "missing configuration". But when i go to the configuration of the material it shows green sign. <b>The most important thing is the material MOV has 2 configuration profile, I believe there is a confusion in selecting the configuration profile for creation of MOV </b>. I came to know about that problem because when i go to change mode (VA02) and try to check the configuration, It askes me to choose the configuration profile and when i choose the configuration profile incompletion log is cleared. When i save the order and send it to billing the billing happens successfully. Could any one help me on this issue.......
Parameters passed to BAPI for configuration.
st_order_cfgs_ref-posex = '900010'. "PM14/06/07
st_order_cfgs_ref-config_id = '000010'. "PM14/06/07
st_order_cfgs_ref-root_id = '10000010'. "PM14/06/07
append st_order_cfgs_ref to t_order_cfgs_ref. "PM14/06/07
st_order_cfgs_inst-config_id = '000010'. "PM14/06/07
st_order_cfgs_inst-inst_id = '10000010'. "PM14/06/07
append st_order_cfgs_inst to t_order_cfgs_inst. "PM14/06/07
st_order_cfgs_refinst-posex = '900010'. "PM14/06/07
st_order_cfgs_refinst-config_id = '000010'. "PM14/06/07
st_order_cfgs_refinst-inst_id = '10000010'. "PM14/06/07
append st_order_cfgs_refinst to t_order_cfgs_refinst. "PM14/06/07
Thanks in advance...
ShivHi,
Did u have a look at the standard programs which make use of BAPI_SALESORDER_CREATEFROMDAT1
Heres a list...
LWSSOU08
MV45WF0S
MWWMJF21_BAPI_SALESORDER_CREAT
RBUS2032
Regards,
Tanveer.
<b>Please mark helpful answers</b> -
Error while updating AFS weights & measures material master data using BAPI
Hello ABAP experts,
Please help me in finding the right way in updating AFS weights & measures data (/AFS/MARM) data using BAPI /AFS/BAPI_MATERIAL_SAVE_DATA.
I'm populating the following table parameters of the BAPI,
1. SKUUNITSOFMEASURE with /AFS/MARM records
s_bapi_marm-ALT_UNIT = 'EA'.
s_bapi_marm-ALT_UNIT_ISO = 'EA'.
s_bapi_marm-grid_value = 'XXXXS'.
*s_bapi_marm-STOCK_CATEGORY = '01000'.
s_bapi_marm-volume = '10'.
s_bapi_marm-GROSS_WT = '10'.
s_bapi_marm-NET_WEIGHT = '10'.
append s_bapi_marm to t_bapi_marm.
2. UNITSOFMEASURE with MARM records
s_bapi_uom-ALT_UNIT = 'EA'.
s_bapi_uom-ALT_UNIT_ISO = 'EA'.
s_bapi_uom-NUMERATOR = '1'.
s_bapi_uom-DENOMINATR = '1'.
s_bapi_uom-UNIT_OF_WT = 'KG'.
s_bapi_uom-VOLUMEUNIT = 'CCM'.
append s_bapi_uom to t_bapi_uom.
But the BAPI returns me an error "Stock Category & is not valid in Category structure &"
Let me know if you have any inputs on this one.
Thanks,
Partha.Hi VAMSHI,
I have your same error but I don't know how to solve it. We have active "material split valuation" and valuation type is mandatory field if using ACCOUNTING and COSTING views.
Please, let me know.
Thanks in advance.
GB -
Upload Journal Voutures of customer master from the Excel sheet using BAPI
Hi experts,
Can U have any sample program so that it can help me for my coding.Hi,
You need write the abap program in the following manner,
1. Read the data from the excel sheet and then enforce the checks if at all any in the new program.
2. Fill all the parameters of the BAPI *BAPI_CASHJOURNALDOC_CREATE *.
3. After the above BAPI call, you need to call another *BAPI_TRANSACTION_COMMIT *.
4. Once Transaction commit bapi is successfully executed then only you will get the document number.
Please follow all the above mentioned steps then you can create the Journal Voutures migrated from an excel sheet to SAP successfully.
Thanks,
Mahesh. -
Reading XML file using BAPI I must use adapters .
Reading XML file using BAPI and then uploading that xml file data into SAP using BDC.
I cant take file on to my Application server I am getting the file dynamically from other file server and I need to use BAPis to read data from XML file.please tell me what should be my Import,Export and Tables parameterrs should be.
ThanksHi,
Import, export and table parameters for BAPI is required, without that BAPI will not able to collect the data from XML. What you need to do is write a Zprogram and collect the data, store that data in internal table and call the BAPI by passing required parameters.
Different Scanarios:
1) Before calling a BAPI write some other program which collects the data from XML and create a UNIX file. Try to get the data from UNIX FILE
2) If you see the XML tags, data will be in side that tags, try to get the data from XML tags and store that data in one SAP table. You can use the BAPI by fetching the data from table
3)Create a table and store the data in the table. Use the table in SAP to extract the data.
BAPI won't work without any parameters, you have to pass some parameters then the BAPI will return some values.
Hope i am clear.
Thanks&Regards,
-Suresh Revuru -
BAPI for GR for Outbound delivery
Hi Gurus,
I need to create a Goods Receipt against an Outbound Delivery ( movement type "101" ) using the BAPI BAPI_GOODSMVT_CREATE
user is using MIGO transaction for the same. There he will choose the GOODS RECEIPT for OUTBOUND DELIVERY and enters the delivery number. The movement type "101" is used.
I tried passing gm_code = 01 and mvt_type = 101 and mvt indicator as u2018Bu201D , but Iu2019m getting an error message 'ENTER PURCHASE ORDER NUMBER'.
I donu2019t have PO number . I just have shipment number from which I have found open outbound deliveries and now I need to do GR for each of the Outbound delivery.
Please let me know if Iu2019m passing the right gm_code and mvt indicator to the BAPI or if Iu2019m missing any parameters. Iu2019m passing the following parameters to the BAPI ?
Delivery. No. , delivery item, Doc. Date , Posting Date , ref document num , Quantity, Storage Location, External qty, External qty unit, matnr, werks .
Your help is greatly appreciated.
Thanks in advance.Thanks for replying. I went through the entire BAPI documentation but did not found anything related to GR for outbound deliveries.
I searched some older posts in sdn related to this problem but almost all are unanswered question.
I'm passing gm_code = 01 , mvt_type = 101 and have tried all movement indicator like 'B' , 'F' and blank.
here is what I'm passing in my Bapi.Please let me know if I'm missing something or if I'm passing something incorrectly.
gm_header-pstng_date = sy-datum.
gm_header-doc_date = sy-datum.
gm_header-ref_doc_no = wa_lips-vbeln. "The Outbound delivery Number
gm_code-gm_code = '01'.
MOVE '101' TO gm_item-move_type.
gm_item-material = wa_lips-matnr . "Material Number from the Delivery.
gm_item-plant = wa_lips-werks . "Receiving Site.
gm_item-stge_loc = wa_lips-lgort. "Receiving Storage Location.
gm_item-entry_qnt = wa_lips-lfimg.
gm_item-entry_uom = wa_lips-vrkme.
gm_item-ENTRY_UOM_ISO = wa_lips-vrkme.
gm_item-mvt_ind = 'B ' .
gm_item-deliv_numb = wa_lips-vbeln.
gm_item-deliv_item = wa_lips-posnr.
gm_item-DELIV_NUMB_TO_SEARCH = wa_lips-vbeln. "delivery number
gm_item-DELIV_ITEM_TO_SEARCH = wa_lips-posnr. "delivery item
if I donot pass any value in mvt indicator the error I'm getting is 'Update control of movement type is incorrect (entry 101 X X)'
if I pass 'B' in mvt indicator error is 'Material document data and PO data do not match (Plant)'
if i pass 'F' , erro ris 'Order not found or not permitted for goods movement'.
Please help me. This is kind of critical issue. or please suggest if I can do GR for outbound delv in any other way.
Thanks...!!!!
Maybe you are looking for
-
Macbook Pro 13' early 2011 SCM/battery problem on Mavericks
After updating to Mac OS X Mavericks I started getting problems with battery/charging of my laptop. Mostly when I touch my laptop after inactivity it just crashes, i see black screen and when I push power button it restarts. What's more, after black
-
Having the same jumpy video problem since installing Lion that others report. From what I've read so far, seems to affect a number of differnt system configurations, so I'm wondering if it is a problem related to the Lion OS. Other ideas? Anyone know
-
Regarding authorization obects
hello everyone, plz tell me who has the authority to assign authorization obects.
-
Running LR 5.6 on OSX 10.9.4. Can't import from Canon 7D. Any ideas?
-
HT4859 why isn't my phone giving me the option to restore my backup?
why isn't my phone giving me the option to restore my backup on my new device?