BAPI: IV_CHANGE_DOC_TCODE parameter
Hi!
I tried executing BAPI_MATERIAL_SAVEDATA and BAPI_MATERIAL_SAVEREPLICA to update purchase order text of material but I'm getting this error:
Runtime Errors:
CALL_FUNCTION_PARM_UNKNOWN
Function parameter "IV_CHANGE_DOC_TCODE" is unknown.
What happened?
Function module "MATERIAL_UPDATE_ALL_VERS" was called
with the parameter "IV_CHANGE_DOC_TCODE".
This parameter is not defined.
How do i define this parameter?
Thank you and good day!
- Rayel
Hi,
It might be a SAP bug. Try to report it to SAP OSS.
Regards,
Teddy
Similar Messages
-
All,
I'm calling the BAPI, which returns the Error via Return Parameter. Can anyone tell me how can i show it Message interface?
Thanks..
BMGo thru this document - Page no 29. This will show in the message area only.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
If you wants show in a specific area on the view, use a Label Control, bind this label with a context variable(showErrorMsg), bind ur error message in that context variable like,
wdContext.setShowErrorMsg("This is the error");
Regards,
Sridhar
Message was edited by:
Sridhar kanchanapalli -
BAPI Table parameter of type a structure without word BAPI
Hi Experts,
Is it possible to have a Table parameter in a BAPI which is such a structure type that does not contain word 'BAPI' ?
like
.........Parameter Name.........................Type Spec....................Associated Type..........................Short text
..............ITAB......................................LIKE................................. ZSTRUCT...................." ZSTRUCT does not contain word 'BAPI'
Thanks & Regards,
Biswajit
Edited by: Biswajit Das on Aug 16, 2009 9:47 AMHi ,
your BAPI structure name shold be like this "ZBAPI_STRUCT" , then only you can add FM to API method. Your structure name should start with ZBAPI.
Regards,
Pradip -
Regarding BAPI Return Parameter.
Hi All,
I want to create Bapi Return Message with Variable values like : ' Sales Order 1876738267 is not created, please try again.' and want to create a log of this after BAPI calling in Calling FM. How can I do this. Please guide me.
Thanks in Advance.Hi,
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
ORDER_HEADER_IN = sd_header
WITHOUT_COMMIT = ' '
CONVERT_PARVW_AUART = ' '
IMPORTING
SALESDOCUMENT = sd_doc_num
SOLD_TO_PARTY =
SHIP_TO_PARTY =
BILLING_PARTY =
RETURN = return_it
TABLES
ORDER_ITEMS_IN = itemin_it
ORDER_PARTNERS = partnr_it
ORDER_ITEMS_OUT =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CCARD =
ORDER_CFGS_BLOB =
ORDER_SCHEDULE_EX =
WRITE : / 'sy-subrc = ' , SY-SUBRC.
IF NOT SD_DOC_Num IS INITIAL.
WRITE : / 'Sales Order ' , SD_DOC_Num, 'Created'.
ELSE.
WRITE : / 'incorrect'.
WRITE : / RETURN_it-TYPE , RETURN_it-MESSAGE.
WRITE : / RETURN_it-LOG_NO, RETURN_it-LOG_MSG_NO,
RETURN_it-MESSAGE_V1.
ENDIF.
Hope this helps you.
Thanks,
Ruthra -
Passing a context value to BAPI Import parameter in WebDynpro!
Hi All,
I have a small doubt here!
I am trying to create a sales order using Webdynpro through BAPI.
There i want to hard code the value of order type like, i want to fix the value before running the porgram itself i.e., statically i want to pass the value.
What i have done is,
created a Context variable and has assigned the value in the init() of view like,
<b>wdContext.currentUIElementsElement().setDocType("ZORD")</b>
and also changed the value attribute of InputField to the context variable called "DocType".
But now we need to pass this context value to the BAPI Structure called ORDER_HEADER_IN i.e, to the class "Bapisdhd1". with out the hardcode value it is working, but i want to pass the value before executing it self. so What i can do, can any body pls give sample line of coding.
Thanks in advance,
Regards,
Sireesha.BHi
Have you bound instantiated the Bapi class?If not then do like this.
BapiClass input = new BapiClass();
wdContext.node<BAPINODE>.bind(input);
Above code can be written in your Custom Controller or View's doinit.
Then you write the code for doctype as given in the post above.
Regards,
Ajay -
In BAPI's why the structures are used in table parameters?
Hello sir,
what is BAPI sir? In BAPI's why the structures are used in table parameters? table parameters they are using structures but not using any customized tables ?
regards
rachu.Hello Rachu
BAPIs provide RFC-enabled interfaces to SAP business objects (e.g. like customer, sales order, purchase order, etc.).
A BAPI does basically the same like you would need to do calling the corresponding transaction (e.g. BAPI_SALESORDER_CREATE -> VA01).
Since they are RFC-enabled they can be called from external systems.
BAPIs represent an external interface for the outside world. Very often you will find within the BAPI that there is a mapping done to the (SAP-)internal structures at the beginning of the coding and vice versa at the end of the coding. Thus, you will (almost) never find any DB table name used as type of a BAPI TABLES parameter.
Regards
Uwe -
Hi,
I want BAPI for G/L balance upload.
I want to transfer these fields:
STYPE(BBKPF-STYPE)
LDGRP(BKPF-LDGRP)
BSCHL(Posting key)
MWSKZ(Tax Code)
I looked into BAPI's BAPI_ACC_GL_POSTING_POST and BAPI_ACC_DOCUMENT_POST but I didn't find any field like above fields.
Please suggest which BAPI to use so that I can get all the above fields. Better if someone can provide the code.
Thanks
Vinod.Hi,
U can use Bapi "BAPI_ACC_DOCUMENT_POST" to post the G/L balances data.
Before that u need to activate the BADI "BADI_ACC_DOCUMENT".
This badi contains structure called "ACCIT" (Check the structure in SE11) which will fill the remaining fields which are not supported by BAPI.
For this u need to fill BAPI extension parameter. Check the bapi documentation for the procedure to fill the structure. -
F-22, Need to upload the document using BAPI
we have requirement to use BAPI for uploading document to f-22,
For the BAPI when we input data all the data are correctly posted except posting keys,
Our requirement is to use the customized posting for crediting customer and standard posting key for debiting GL account,
We have input the required posting key in BAPI but still its not picking the posting key, its taking the standard posting key,
Document type used is DC and DB,
so is there any relation between document type and posting key, any idea from where BAPI is picking Posting key?Hello,
it was originally not intended to use the BAPI to post
payment documnents. For simplicity the posting keys are not
at the BAPI's interface, instead they are defaulted with
the standard posting keys depending on account type and debit/credit
indicator.
Please see note 487722 which explains how to pass addditional data
to the BAPI in parameter EXTENSION1. You can implement the
Business Transaction Event (BTE) RWBAPI01 to populate the posting
key (t_accit-bschl) from EXTENSION1 parameter.
I hope this helps!
BR,
Raquel -
Hi Experts,
I am new to interfaces like bapi, I tried a program for BAPI_ACC_DOCUMENT_POST to update AR, when i trying to execute it is displayng as "PROBLEM OCCURED".
Here i am giving program code, so please see the program and reslove my eror.
<removed by moderator>
DATA: obj_type LIKE bapiache09-obj_type,
obj_key LIKE bapiache09-obj_key,
obj_sys LIKE bapiache09-obj_sys,
documentheader LIKE bapiache09,
accountgl LIKE bapiacgl09 OCCURS 0 WITH HEADER LINE,
accountpayable LIKE bapiacar09 OCCURS 0 WITH HEADER LINE,
accountreceivable LIKE bapiacar09 OCCURS 0 WITH HEADER LINE,
currencyamount LIKE bapiaccr09 OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0 WITH HEADER LINE,
extension1 LIKE bapiextc OCCURS 0 WITH HEADER LINE,
t_edidd LIKE edidd OCCURS 0 WITH HEADER LINE,
bapi_retn_info LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: error_flag.
documentheader-username = sy-uname.
documentheader-header_txt = 'Test BAPI'.
documentheader-comp_code = 'SERC'.
documentheader-doc_date = sy-datum.
documentheader-pstng_date = '10.09.2010'.
documentheader-doc_type = 'DR'.
CLEAR accountgl.
accountgl-itemno_acc = '1'.
accountgl-gl_account = '100100'.
accountgl-ref_key_1 = 'TEST'.
accountgl-comp_code = 'S150'.
accountgl-pstng_date = sy-datum.
accountgl-doc_type = 'DR'.
accountgl-customer = '2001'.
APPEND accountgl.
CLEAR accountgl.
CLEAR accountreceivable.
accountreceivable-itemno_acc = '1'.
accountreceivable-customer = '2001'.
accountreceivable-gl_account = '100100'.
accountreceivable-comp_code = 'S150'.
APPEND accountreceivable.
CLEAR accountreceivable.
APPEND currencyamount.
currencyamount-itemno_acc = '1'.
currencyamount-currency = 'INR'.
currencyamount-amt_doccur = '1000'.
APPEND currencyamount.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = documentheader
* CUSTOMERCPD =
* CONTRACTHEADER =
IMPORTING
OBJ_TYPE = obj_type
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
TABLES
accountgl = accountgl
accountreceivable = accountreceivable
* ACCOUNTPAYABLE =
* ACCOUNTTAX =
currencyamount = currencyamount
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
return = return
* PAYMENTCARD =
* CONTRACTITEM =
* EXTENSION2 =
* REALESTATE =
* ACCOUNTWT =
IF sy-subrc <> 0.
WRITE 'Problem occured'.
ELSE.
*LOOP AT return.*
*IF NOT return IS INITIAL.*
*CLEAR bapi_retn_info.*
*MOVE-CORRESPONDING return TO bapi_retn_info.*
*IF return-type = 'A' OR return-type = 'E'.*
*error_flag = 'X'.*
*ENDIF.*
*APPEND bapi_retn_info.*
*ENDIF.*
*ENDLOOP.* (in this block i find error)
IF error_flag = 'X'.
WRITE 'Problem occured'.
ROLLBACK WORK.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =
ENDIF.
ENDIF.
Thanks in Advance,
gsreddy.
Edited by: Thomas Zloch on Jan 7, 2011 11:01 AM - please use code tagsCALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
EXPORTING
documentheader = documentheader
* CUSTOMERCPD =
* CONTRACTHEADER =
IMPORTING
OBJ_TYPE = obj_type
OBJ_KEY = obj_key
OBJ_SYS = obj_sys
TABLES
accountgl = accountgl
accountreceivable = accountreceivable
* ACCOUNTPAYABLE =
* ACCOUNTTAX =
currencyamount = currencyamount
* CRITERIA =
* VALUEFIELD =
* EXTENSION1 =
return = return
* PAYMENTCARD =
* CONTRACTITEM =
* EXTENSION2 =
* REALESTATE =
* ACCOUNTWT =
In the BAPI tables parameter "return" what are the messages you are seeing in debugging mode??? -
hi,
iam getting following error in file to bapi scenario.plz help me
2007-11-02 17:21:20 Success RFC adapter received a synchronous message. Attempting to send sRFC for BAPI_SALESORDER_CREATEFROMDAT1
2007-11-02 17:21:21 Error Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter RETURN has type "BAPIRETURN1" which is unknown.
2007-11-02 17:21:21 Error The message status set to NDLV.
2007-11-02 17:21:21 Error Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter RETURN has type "BAPIRETURN1" which is unknown..
T & G
vijuhi vijendra
check this forum discussion
Treating BAPI return in RFC Receiver Adapter
regards
Ramesh P -
Hi all suppose if iwant to upload a material using bapi, than how can i know the FM's that are avialable for this..
Hi Gurus
I am using the extension parameters of BAPI to load some customized fields for the object-BUILDING in REAL ESTATE MODULE using LSMW-BAPI.
Here's the code-
*Target Field: E1BPPAREX-VALUEPART1 Data part of BAPI extension paramet
DATA:
lt_extension_in TYPE TABLE OF bapiparex,
ls_extension_in TYPE bapiparex,
ls_ci_data TYPE rebd_building_ci.
ls_ci_data-zgisx = hsouthernwater-zgisx.
ls_ci_data-zgisy = hsouthernwater-zgisy.
ls_ci_data-zdeed = hsouthernwater-zdeed.
ls_ci_data-zland = hsouthernwater-zland.
ls_ci_data-zsite = hsouthernwater-zsite.
ls_extension_in-structure = 'CI_DATA'.
ls_extension_in-valuepart1 = ls_ci_data.
CALL METHOD cl_abap_container_utilities=>fill_container_c
EXPORTING
im_value = ls_ci_data
IMPORTING
ex_container = ls_extension_in-valuepart1
EXCEPTIONS
OTHERS = 0.
e1bpparex-valuepart1 = ls_extension_in-valuepart1.
I AM GETTING THE ERROR IN THE LINE-
ls_extension_in-valuepart1 = ls_ci_data.
SAYING THAT
ls_extension_in-valuepart1 and ls_ci_data. are mutually not convertible
I have written the same code for 3 objects in RE-The code was working fine in those objects.But in object- building i am getting this error..
Anyone out there please help me regarding this..
Thanks in advance -
Hi XIer,
I am using RFC receiver to make a BAPI call, I used a BAPI wrapper due to this BAPI don't have a RETURN structure in the Export Tab which is XI expected.
but after I made a wrapper, the same error occurs, just like I directly call the BAPI without wrapper function. the error as following:
com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: failed to parse BAPI response due to: com.sap.aii.af.rfc.util.bapi.BapiException: Parameter with name RETURN not found.
at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:456)
at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:131)
at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:848)
at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
the BAPI name is :QIRF_GET_USAGE_DECISION2
the wrapper name is :ZZQIRF_GET_USAGE_DECISION2
and I added a RETURN structure, type is BAPIRET2.
Please give me some ideas, thank you for your time~~I still am not sure why you need a Wrapper RFC? If SP 14 or above on XI, RFC adapter have the option of BAPI commit and this will make things easy for you.
You can call the BAPI directly.
regards
Bhavesh -
Suggestion regarding table as a import table in bapi
Hello;
Is it possible as TABLE as the import parameter in the BAPIs import parameter tab.
Thnaks and Regards,
sapdev10.
Moderator Message: Duplicate post.
Edited by: kishan P on Oct 13, 2010 1:38 PMHello;
Is it possible as TABLE as the import parameter in the BAPIs import parameter tab.
Thnaks and Regards,
sapdev10.
Moderator Message: Duplicate post.
Edited by: kishan P on Oct 13, 2010 1:38 PM -
Multiline BAPI return structure and RFC Adapter
Since SP14 RFC Adapter check return structure of RFC function.
But how it works if BAPI returns multiline BAPIRET2?
Will adapter loop all elements and perfom commit only if <b>all</b> alements don't have errors.I'am about this:
<i>As of SP 14 support for commit handling for single BAPI calls was added to the RfcAdapter receiver channel. If activated in the receiver channel setting, the received XI message will be executed as synchronous RFC (sRFC) in the receiving system. This is also true for asynchronous (QoS EO) XI messages to receive and analyze the execution result by the RfcAdapter.
The received response is parsed by the RfcAdapter to get the BAPI return parameter with name "RETURN". This return parameter can be of BAPIRETURN, BAPIRET1 or BAPIRET2 types. The "RETURN" parameter is checked for the response status (field TYPE) which can take following values:
1. 'S' : Success
2. 'I' : Information
3. 'W' : Warning
4. '' : Empty String
5. 'A' : Abort
6. 'E' : Error
If the response contains one amongst the first four response status then it implies that the BAPI was successful. If the response contains one amongst the last two response then the BAPI failed. If the BAPI "RETURN" parameter is of not of type ABAP structure rather of type ABAP table, a empty table is also considered as successful execution result.
In case of a successful execution the BAPI function module "BAPI_TRANSACTION_COMMIT" is called within the same context to trigger the commit of the BAPI. In case of a failure the BAPI function module "BAPI_TRANSACTION_ROLLBACK" is executed by RFC Adapter which rolls back the changes.</i> -
Hi experts
I try to use bapi BAPI_PO_GETITEMS to get the po information and export the data. but in this bapi,
It doesn't have the po history informaiton .
I can query the po history from mseg and mkpf table, but how can I export this history to bapi export parameter?
Thanks
ALiceHI Alice,
Please elaborate more. The history will store in EKBE table . If that data is not coming from standard ask your technical people to write a Zbapi.
Regards,
Madhu.
Maybe you are looking for
-
Problems with text on Photoshop CC
I have Window 8 64bit with the latest Intel HD Graphics driver. When I type text in Photoshop CC the whole image goes black. What can I do?
-
Hi ! I would like to change the power supply for atx or other brand and looking for some info that would simplify an overdue research that led to little info, ie links would not result in opening correct window , example : http://http://forums.macru
-
Adobe air installer problem. app behaving strange
Hi all i developed a desktop app in flex..In this i set the alpha of a text input /text area to alpha=0 .the app is behaving different..on different pc's..i executed to debug the app on my pc on setting the alpha=0 for text input the background becom
-
currently my itunes will not let my log in to my itune store account. it comes up with the error message 9808
-
How to make a BW system non-modifiable?
Hello, How do i do that? Also what if i have to keep only the infopackages open for creation? Regards, aby