BAPI PR CHANCE
Hi exper,
I use bapi ZBAPI_PR_CHANCE
BAPI work very well if you use R/3
return table say
every things is OK
But if I used same bapi with webdynapro java , would not work
return table say
Creation Indicator B is not useful
I use same PR number and items
This PR created with MRP
Source code here
function zbapi_pr_change. "#EC ENHOK
""Local Interface:
*" IMPORTING
*" VALUE(NUMBER) LIKE BAPIMEREQHEADER-PREQ_NO
*" VALUE(PRHEADER) LIKE BAPIMEREQHEADER STRUCTURE BAPIMEREQHEADER
*" OPTIONAL
*" VALUE(PRHEADERX) LIKE BAPIMEREQHEADERX STRUCTURE
*" BAPIMEREQHEADERX OPTIONAL
*" VALUE(TESTRUN) LIKE BAPIFLAG-BAPIFLAG OPTIONAL
*" EXPORTING
*" VALUE(PRHEADEREXP) TYPE BAPIMEREQHEADER
*" TABLES
*" RETURN STRUCTURE BAPIRET2 OPTIONAL
*" PRITEM STRUCTURE BAPIMEREQITEMIMP OPTIONAL
*" PRITEMX STRUCTURE BAPIMEREQITEMX OPTIONAL
*" PRITEMEXP STRUCTURE BAPIMEREQITEM OPTIONAL
*" PRITEMSOURCE STRUCTURE BAPIMEREQSOURCE OPTIONAL
*" PRACCOUNT STRUCTURE BAPIMEREQACCOUNT OPTIONAL
*" PRACCOUNTPROITSEGMENT STRUCTURE BAPIMEREQACCOUNTPROFITSEG
*" OPTIONAL
*" PRACCOUNTX STRUCTURE BAPIMEREQACCOUNTX OPTIONAL
*" PRADDRDELIVERY STRUCTURE BAPIMERQADDRDELIVERY OPTIONAL
*" PRITEMTEXT STRUCTURE BAPIMEREQITEMTEXT OPTIONAL
*" PRHEADERTEXT STRUCTURE BAPIMEREQHEADTEXT OPTIONAL
*" EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL
*" EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL
*" PRVERSION STRUCTURE BAPIMEREQDCM OPTIONAL
*" PRVERSIONX STRUCTURE BAPIMEREQDCMX OPTIONAL
*" ALLVERSIONS STRUCTURE BAPIMEDCM_ALLVERSIONS OPTIONAL
data: header like thead,
lines type table of tline with header line,
name type tdobname.
*data: kkkk(1) type c.
do.
if kkkk = '1' .
exit.
endif.
enddo.
loop at pritem .
call function 'CONVERSION_EXIT_MATN1_INPUT'
exporting
input = pritem-material
importing
output = pritem-material
exceptions
length_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
modify pritem .
endloop .
call function 'BAPI_PR_CHANGE'
exporting
number = number
prheader = prheader
prheaderx = prheaderx
testrun = testrun
importing
prheaderexp = prheaderexp
tables
return = return
pritem = pritem
pritemx = pritemx
pritemexp = pritemexp
pritemsource = pritemsource
praccount = praccount
praccountproitsegment = praccountproitsegment
praccountx = praccountx
praddrdelivery = praddrdelivery
pritemtext = pritemtext
prheadertext = prheadertext
extensionin = extensionin
extensionout = extensionout
prversion = prversion
prversionx = prversionx
allversions = allversions.
read table return with key type = 'E' .
if sy-subrc ne 0 .
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
loop at pritem .
update eban set ernam = pritem-vend_mat
preis = pritem-preis
peinh = pritem-peinh
zzmeng1 = pritem-zzmeng1
zzmeng2 = pritem-zzmeng2
waers = pritem-waers
zzdlflg = pritem-zzdlflg
where banfn eq number
and bnfpo eq pritem-preq_item .
commit work and wait .
endloop .
call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
exporting
input = prheaderexp-preq_no
importing
output = prheaderexp-preq_no
READ TABLE PRITEM INDEX 1.
UPDATE EBAN SET ERNAM = PRITEM-VEND_MAT
PREIS = PRITEM-PREIS
PEINH = PRITEM-PEINH
ZZMENG1 = PRITEM-ZZMENG1
ZZMENG2 = PRITEM-ZZMENG2
WAERS = PRITEM-WAERS
ZZDLFLG = PRITEM-ZZDLFLG
WHERE BANFN EQ NUMBER.
check not prheadertext[] is initial .
onceki metinler alınır
name = number .
call function 'READ_TEXT'
exporting
CLIENT = SY-MANDT
id = 'B01'
language = sy-langu
name = name
object = 'EBANH'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines = lines
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
header-tdobject = 'EBANH'.
header-tdname = number.
header-tdspras = syst-langu.
loop at prheadertext.
header-tdid = prheadertext-text_id.
lines-tdformat = prheadertext-text_form.
lines-tdline = prheadertext-text_line.
append lines.
endloop.
call function 'SAVE_TEXT'
exporting
header = header
insert = 'X'
savemode_direct = 'X'
tables
lines = lines
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
else .
call function 'BAPI_TRANSACTION_ROLLBACK'.
endif .
endfunction.
Check the SAP Note 710362
May be it wil help you.
Regards
Rammohan.
Similar Messages
-
Hi,
on our goods receipt/invoice clearing account we have a lot of manually wrongly posted documents which have been cleared automatically.
Now we want to reset the clearing of those documents in order to have a chance to reverse those documents.
I could not find any BAPI to achieve the function of transaction FBRA.
I can see FBRA will delete clearing docuemtn no and clearing date in the cleared item(s). But I do not know exactly the effect on BSIS and BSAS secondary index.
I am not very happy with the call transaction/batch input way to dolve this.
Any idea for BAPI processing?
TIA,
ClemensI don't know of a BAPI, but batch input is dead simple.
Rob -
Mass Change ERS in PO + BAPI
Hi All,
I need to make mass change in lot of PO at itme detail level. I need to uncheck ERS and GR based IV check box in invoice tab.
I dont want to make use of Mass change tcode for this as it cause lot of work and chances of manual error are lot.
I have never used BAPI in LSMW but I have come accross BAPI for PO Change......I am pretty good at recording method in LSMW but I think that wont help me in this case due to the table control in PO. I have also found a tutorial on BAPI + LSMW for PO creation so I got some rough idea for it.
Can someone tell me the sturucture I should use for the BAPI in LSMW for my requirement and the points which I need to take care of. also tell me do I have to actiavte the inbound idoc processing for it.
Please guide....
Also suggest if i need to create 2 flat files for this ....like 1 for header and antoher 1 for item level.
Edited by: Sap: IN on Apr 30, 2011 2:36 PMI am able to map my flat file with the structure sucessfully
But I am facing problem
1. IDOC segment E1BPNEPOITEM does not have the field GR based IV and ERS.
requirement : as I want to remove these 2 check boxes from couple of PO for different line item I have mapped the fields with the segement mentioned above but I am passing blank value from my flat file...so in the display imported data I am getting PO number and line item number and for those 2 field blank value.
due to this in the step display converted data those 2 fields along with all the fields of the segement itme data are blank and so the IDOC gets created with out any field in the item segment.
question: how to over come this problem ...I need thoes 2 field in the segment but with balnk value. as the check box need to be unchecked in the po.
Edited by: Sap: IN on May 1, 2011 11:56 AM -
[solved]BAPI change of language (RFC)
Hi,
I call from a WAS (BSP) with RFC in our ERP-System. The RFC-FM contains a simple call of BAPI PARTNER_CHECKPASSWORD.
There are 2 possible languages in BSP. Problem: watever language is selected, the returnmessages from FM are always in german.
So I added a parameter "i_spras" to my RFC-FM and put some codeing in it:
* Sprache setzen
if not i_spras is initial.
SET LOCALE LANGUAGE i_spras.
SET LANGUAGE i_spras.
endif.
nothing changed: returnmessage is always in german.
Is there a chance to get the messages in english ?
Message was edited by: MartinHello ,
did you check the language parameter in the RFC-destination - logon data (SM59).
Regards Wolfgang -
Problem with BAPI invocation in UDF
Dear SDN-Experts,
I have the following java code in an user defined function:
JCO.Repository mRepository;
JCO.Client mConnection = JCO.createClient(
"101",
"de",
"frba02.buc.fristo.de",
"10" );
mConnection.connect();
mRepository = new JCO.Repository( "SAPLookup", mConnection );
JCO.Function function = null;
IFunctionTemplate ft = mRepository.getFunctionTemplate( "BAPI_MATERIAL_GET_ALL" );
function = ft.getFunction();
JCO.ParameterList input = function.getImportParameterList();
input.setValue( "1000" , "MATERIAL" );
mConnection.execute ( function );
JCO.Table unitsofmeasure= function.getTableParameterList().getTable("UNITSOFMEASURE");
mConnection.disconnect();
return unitsofmeasure.getString("ALT_UNIT_ISO");
As you can see, I try to execute "BAPI_MATERIAL_GET_ALL" with 1000 as "MATERIAL". When I test the same BAPI in the Target System with Transaction SE37 and 1000 as material, I get a table which has three rows. But when I execute the UDF with the same parameter (as above), I get the following runtime exception:
Exception:com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Trying to access row values in a table which does not have any rows yet in class com.sap.xi.tf._MM_MT_KASSE__to_WPUWBW01_ method GetME$ 2270, com.sap.aii.mappingtool.tf3.rt.Context@24650c7a
Could you help me please?
Thanks in advance.
Cheers
Ehsan
Edited by: Ehsan Baghi on Jul 11, 2008 4:58 PMHi Ehsan !
By the message error that you received, I think that is possible that the bapi is returning no records in the table.
Sometimes, call an RFC or BAPI from java has different behavior that executing from SE37, because of field formatting for example. In your case, there is great chance that executing this BAPI in SE37, when you fill the Material field with "1000", internally it´s proccessed as "000000000000001000", and when you call this BAPI from a java program, the field is proccessed with the exact value that you passed: "1000".
A good way to check this is logon in your SAP environment with the user that you are using in the java mapping to connect to SAP, run SE37 and open the source code of this BAPI, set a remote break point, and test your mapping, so you will see in the debugger, the exact value that is arriving to the BAPI from java, and the values that is being returned to java.
I hope this helps !
Best regards,
Wilson -
Updating database table based on BAPI response in case of error
Dear Experts,
My scenario includes pulling records from database stagging table, and push one record at a time to BAPI_ALM_NOTIF_CREATE.
I am using sender JDBC adapter(with select query and update query to mark records as processed).
My question is : Once XI selects records, immediately status is updated in stagging table for the selected records as processed. what if BAPI could not create document? In this case I need to update status of that record as "Not processed".
What should I use?
If BPM, then please tell me the steps.
Is this possible without BPM?
What are the chances of failure between XI and BAPI?
Please provide your inputs.
Thank you.
Div>
S.R.Suraj wrote:
> Hi Divyesh,
>
> Your steps are correct..
>
> 1. JBDC will read record with code = 0 and make it 1...
> 2. Once the bapi process is completed all these read records shoudl be made as 2 (if completed successful) else 0 if bapi went into some error.. so that again the jdbc adapter can poll these records and give back to bapi for processing...
>
> Now your questions
> >>So after selection and updation only proxy call will be done right? So for every polling of jdbc adapter ,proxy call will happen?
> YEs every poll of jdbc will result in a proxy call and every time it will contain next set of records (as the earlier one have already marked as 1)
>
> >>How to achieve this?
> Since this is a synchronous scenario JBDC->XI->Proxy and reverse, I have suggested to use responseonewaybean as a module in sender jdbc adapter (because sender jdbc cannot act synchronously thats why you need to use this module)..
>
> >>Do i need to use BPM? please suggest steps.
> and if this is not working then go for BPM..the steps as i mentioned in my first thread..
>
> Regards
> Suraj
Hi Suraj,
Thanks a lot for your support.
It would be good if you can provide your inputs.
Stagging table records status:
Flag = 0 (XI will poll records)
Flag = 1(XI has polled records and XI will se tthis flag by JDBC adapter)
Flag =2 (should be done based on response from Proxy Tables parameter) Proxy will set tables parameter which will include info on error message and type.
(Now based on new requiremets: for error records status should not be reset to 0 so that XI can poll records again, now stagging table should contain error records(for which proxy can not create notification in SAP) with error message and status flag 2)
Now scenario would be JDBC to Proxy.
Polling interval for JDBC adapter should be 1 minute.
So I think status 0 to 1 will be done by XI after immediately selecting records.
But how about Status 2 that has to be set only for error records only and with error information.
I have to update stagging table records with status 2 and error info based on proxy table response. How this can be done?
This updation will be done in case of error only.
I was thinking this aproach:
We can have two interfaces.
First interface will be jdbc to proxy:
JDBC adapter select and update records with flag =1 and then send to proxy call and create document in SAP. At SAP side if document can not be created then they will store that error info in some table.
Second Interfgace:
Client SAP Proxy will periodically run and send these error records info to XI and XI will update stagging table records accordingly.
Suraj, What is your sugestion in this solution? Do I need to use Responseonewaybean?
Thanks Suraj
Div -
Create a vendor inquiry with a BAPI or FM like ME41
Hey Team ABAP,
i am a bit lost. I am trying to create a vendor inquiry, which you normally do with ME41. Problem is that i Need to do it in via coding.
Call Transaction or Batch Input are not really chances i can Approach.
Since they are stored in EKKO/EKPO like purchase orders i tried to use BAPI_PO_CREATE1.
I fill it with fields where i think ist needed, but as a return message i only get a message like "No instance of object purchase order got created".
This Kind of message isnt really helpful. Reading through the documentation of said BAPI i am not sure anymore if it can be used at all to create something else than purchase orders.
Anyone got some expierience with this subject and wants to help me?
I dont need coding or stuff like that, but if someone knows a BAPI or FM that i can use i´d be greatful.
Thanks for reading
Florian KemmerId don't know such ME41 BAPI, only BAPI_PR_CREATE PurchaseRequisition, BAPI_CONTRACT_CREATE PurchasingContract, BAPI_SAG_CREATE PurchSchedAgreement, BAPI_PO_CREATE1 PurchaseOrder.
In ECC-DIMP there is a released FM : BS01_MM_QUOTATION_CREATE, but if you don't have DIMP...
So I can only suggest you look thru SE80 at objects available on your system in application MM-PUR-RFQ.
Regards,
Raymond -
I need a bapi for service order
i need a bapi for serviceorders the fields which i required in the output should be
GLTRI(Actual finish date),
FTRMP(Planned release date),
RMANR( SD Document Number),
POSNV_RMA(Item number of the SD document),
PM_OBJTY,
ARBPL.Dear Jammer,
This question can be put in ABAP forum. You can also try SD forum. Chances of getting a reply on this query is almost nil in this forum.
Please let me know in case of any query and keep revisiting this forum.
Regards,
Rakesh -
BAPI - For Clearing Vendors by using Document Number in F-51.
Hi One and All,
As I have searched Forum before posting, I found few BAPI's and FM's which are not helpful for my requirement.
a. 'BAPI_PAYM_ITEM_POST_CLEARING'
b. 'POSTING_INTERFACE_CLEARING' and soon.
I am Posting the Vendor Invoice as in F-43 Using 'BAPI_ACC_DOCUMENT_POST' , Now I want to Clear these generated Document no.s in F-51.
By manually I can do it, But I need a BAPI / FM to do Clear a bunch of Vendor Document Numbers.
Welcome for all suggestions.
Regards,
Suneel GHi Suneel,
The FM is the correct one,,,! But you have the Above Exception,,,
Read the RFBIBL00 Documentation,,, Look how to pass the data in a Batch I/P....
Now lets put a break there,,, The RFBIBL00 Still calls the FM 'POSTING_INTERFACE_CLEARING', By this, the error may(I am not sure, But there is a chance) trigger again...!
The Alternate Solution may be, The FM 'POSTING_INTERFACE_CLEARING' calls
Include LFIPIF00 And if yo utry to look into that include,
FT-PROGRAM = REP_NAME_A.
FT-DYNPRO = '0105'.
FT-DYNBEGIN = 'X'.
APPEND FT.
IF NOT BELNS IS INITIAL.
CLEAR FT.
FT-FNAM = 'RF05A-BELNS'.
FT-FVAL = BELNS.
APPEND FT.
ENDIF.
IF NOT BUKRS IS INITIAL.
CLEAR FT.
FT-FNAM = 'BKPF-BUKRS'.
FT-FVAL = BUKRS.
APPEND FT.
ENDIF.
IF NOT GJAHS IS INITIAL.
CLEAR FT.
FT-FNAM = 'RF05A-GJAHS'.
FT-FVAL = GJAHS.
APPEND FT.
ENDIF.
IF NOT BUDAT IS INITIAL.
CLEAR FT.
FT-FNAM = 'BSIS-BUDAT'.
FT-FVAL = BUDAT.
APPEND FT.
ENDIF.
CLEAR FT.
FT-FNAM = 'BDC_OKCODE'.
FT-FVAL = '/11'.
APPEND FT.
PERFORM TRANSAKTION_BEENDEN USING P_NO_AUTH.
I have seen the 100's of lines like the above code...! Which means You can simple write a BDC for your requirement...(Its just an alternate when no other option)
Thanks & regards,
Dileep .C -
Bapi/FM to delete the status record from Business location(O402)
Hi,
Is there any BAPI/FM to delete the status from Business location?
My requirement is as follows:-
1. I have to delete the last status from business location.
2. I can find out the number of status maintained for a business location,
a. so if the status which i have to delete is visible in table contorl,
i can decide the cursor position very easily in bdc.
b. But if i have to scroll down to get the status record,
in that the cursor position is not known.
Please help.Hi,
Any idea?
Even if i write a bdc, i didn't know how to find the last record. The page down and page up will also not work as there may be chances that mutiple status can be removed. -
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 -
Could i use the function module in my BAPI
Hi,
guys i am confused, can i use the standard function module which has not been released, in my BAPI.
BAPI is used for cross applications.
regards,
chintaHi Chinta
It is not advisable to use a not released Function Module for any business purpose, as there is always a chance that, the function module may get changed. So it is better to create a custom function module and use it.
Thanks and regards,
Rinzy Deena Mathews. -
Bapi or function module to create a sales order in CRM 5.1 system
Hi experts,
Anyone knows any Bapi or function module to create a Sales order in CRM 5.1 system directly.
Thanks.
regards.
Ruchi.hi ruchi,
sory for the late respond, got a lot works to be done.
based on my experience, you need several more information such as currency, uom for quantity, sales organization, etc.
and honestly, i have never tried to create an order by just using 3 information ( sold to party, item, and quantity ),
but i think it is possible because some of the information can be determined using configuration, but still some information is missing and the order that you create will have an error and you can't do next process of the order unless somebody fix / fill the information needed.
just an idea, perhaps you need some z-tables to put your certain information needed for order creation and the information is maintained for each sold to party ( sold to party is a key of z-tables ) and each time order is created, all information will be query in this tables.
and for this tables may be you can create an offline maintainance scenario using an adobe document. by this way, the sold to party can maintained all his/her/their information by them self.
and by using this scenario, you can still maintain / create the order by programming ( perhaps using function module CRM_ORDER_MAINTAIN or else ).
actually i want to implement in my company but don't have a chance becuase all has been set up and the management will think twice for implementing this scenario.
hopes it hels
cheers -
Problems with variant configuration using BAPI on Business connector
Hi every body I need help.
Steps.
1.- I created an RFC with BAPI_SALESORDER_CREATEFROMDAT2 and then a commit function,
I call this RFC via SAp business connector
Im triying to create a Configure order(With characteristics) I fill all configuration structures exactly like note 567348.
I created a sales order but when i checked ti in VA01 transaction the order quantys are diferents at configuration tables, if the function is executed on directly on SAP this work fine the error is only in a SAP Business Connector
Is necesary to send another parameter when i Execute Bapis on SAPBC?
\[removed by moderator\]
Edited by: Jan Stallkamp on Jun 27, 2008 4:21 PMHi,
Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
If that is correct than there wont be much chances of problem in BC.
\[removed by moderator\]
Regards,
Siddhesh S.Tawate
Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM -
BAPI BAPI_MTRREADDOC_UPLOAD. Unable to identify device to upload MR result
Hi experts,
We have a scenario where several info records may have same serial number and device category. However, for a given installation we have a unique info records installed for a given serial number/device category.
When I try to upload a MR result using bapi BAPI_MTRREADDOC_UPLOAD I get an error saying
"Device xxxxx is allocated to several device cats and therefore not unique". That's strange for my point of view since other info records with that serial number are not even billing related installed in the system.
Does anyone know an alternative way of uploading a MR result for a given installation/PoD?
Thanks in advance.Hi, thaks for your answer.
Unfortunately we don't generate MRO in advance so we can't make use of them
This bapi doesn't have the equipment as an input parameter neither. Below are input parameters. I gues my only chance is trying to find another bapi. If any one knows any other bapi please, let me know.
Thanks again!
Input parameters:
MATERIAL
SERIALNO
REGISTER
MRREASON
MRIDNUMBER
READINGRESULT
METERREADINGNOTE
ACTUALCUSTOMERMRTYPE
METERREADER
MRDATEFORBILLING
MRTIMEFORBILLING
ACTUALMRDATE
ACTUALMRTIME
MRDATEOFMAXIMUM
MRTIMEOFMAXIMUM
SMORDER
ACTIVE
REFNUMBER
TARGETMRDATE
EXT_UI
MRDATEFORIDENTIF
Maybe you are looking for
-
Hello Forum, When I send a SearchRequest to OIM SPML Webservice, OIM returns this: HTTP/1.1 200 OK Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231054)/Tomcat-5.5 Content-Type: text/xml
-
for some reason I seem to be losing my connection to the internet or my download speeds are all of the sudden tanking. I will be watching a movie or using an app and out of now where the movie will freeze or the app will say loading for what seems l
-
Hi, I have multilevel BOM (almost 10 levels with around 1500 materials), in which many materials repeat at different levels. I am facing problem in one of the material during MRP, This material is used at 10 different levels. Altogether to produce a
-
Hi, Need help on ALV ..am a newbie on this...I have created the source code but i cant proceed with the below requirement The report will be generated in ALV , 1. executed in a background job 2. spool to be converted in a PDF 3. PDF to be save in SA
-
Skip by default 0000 (Actions) from PA40 and shows any other like 0185.
Hi Gurus. As you know, in PA40, its run infotype 0000 bydefult before executing any other defined infotype. I would like to skip 0000 and want to run first 0185 then 0000 and after that any other infotype. This is because when by default pa40 call