BAPI/FM used in service call to get sales order
Hi
I need to have a main view which contain an inputfield to insert a sales order, then check whether the sales order is existed in database, at last, pop up a message box to show the feedback.
So which FM or BAPI shall I have to use during service call?
Best Regards!
Stephanie
Hi Stephanie,
Both the replies given above are correct. Service call is nothing but a method in the Component Controller/Custom Controller of WD Component. It internally calls a function module and does all the required binding to the Context nodes.
In your scenario, even if you use a service call, finally you will have to check the output and invoke a method of the message manager.
Writing a simple query onEnter of the input field should be the best for you.
select single vbeln
from vbak
into lv_vbeln
where vbeln = <value of input field> .
if sy-subrc = 0.
* show message using message manager
else.
endif.
Similar Messages
-
Webdynpro ---- BAPI/FM used in service call to get sales order
Hi
I need to have a main view which contain an inputfield to insert a sales order, then check whether the sales order is existed in database, at last, pop up a message box to show the feedback.
So which FM or BAPI shall I have to use during service call?
Best Regards!
StephanieHi,
Use the BAPIs
To create -
BAPI_SALESORDER_CREATEFROMDAT2
To change -
BAPI_SALESORDER_CHANGE
I assume that you are trying to create a sales order or You want to change the salesorder.
For the sales order we need to write a selelct query on the check table for the existence of the sales order.
Please try to use the SE37 Tcode to view all the BAPIs related to salesorder.
Are you using WD for Java Or ABAP or BSP.
Please a\let me know in case of any issues.
Regards
Lekha -
Using service call to get sales order
Hi,
Which FM or BAPI can I use to get the sales order?
Thanks a lot.
Best Regards!
Stephanieyou can use the below functions, but they give all header and item mixed in one table.
SD_SELECT_SALES_DOCUMENTS
or
RV_SALES_DOCUMENT_VIEW_3 -
BAPI to create notification service with reference to sales order
Hi,
My need is to create a service notification TC IW51 with reference to sales order (credit memo request).
is there a bapi to do this or i must do a bdc?
please help.
A+
Ihsen ABROUGI have custom screen fields on notification service!
i think a bdc is better. -
ABAP source code to connect to third party systems using web service calls?
Hi all,
can any one provide an example ABAP source code to connect to third party systems using web service calls? The base system is CRM.Do you want to call a web service in a remote system, or do you want to provide a web service?
If you want to call a web service you should create a proxy object via SE80. Open your development package, right click on the tree entry and choose: Create -> Enterprise Service / Web Service -> Proxy Object and provide the needed information (including the WSDL description file). You may then use the proxy object to call the web service (if the connection and everything else works right).
See [http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/content.htm] -
No point of using Skype.. calls are getting drop f...
No point of using Skype.. calls are getting drop frequently..
I have waisted time and money too here.
My calls are getting dropped again and again.. now i am thinking how to finish available balance.
anybody can suggest me how to use my rest money because calling someone is not worth.Please, run the DirectX diagnostics tool. Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post. Be aware that you will have to zip this file before attaching it here.
-
Any function module or bapi to get sales order number and invoice number?
hi all,
with delivery order number provided, do we have any function module or bapi to get sales order number
and invoice number?
thanks.Hi,
Check
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_REMUREQSLISTA_CREATEMULT Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
BAPI_REMUREQSLISTB_CREATEMULT Agency Business: BAPI Create Invoice Lists from Payment Documents
BAPI_REMUREQSLISTC_CREATEMULT Agency Business: BAPI Create Invoice Lists from Posting Lists
BAPI_REMUREQSLIST_CHANGEMULT Agency Business: Change Invoice List Documents BAPI
BAPI_REMUREQSLIST_GETLIST Agency Business: BAPI Determine Detailed Data for Invoice List Documents
BAPI_REMUREQSLIST_RELEASE Agency Business: BAPI Release Invoice List Documents to FI
Edited by: Neenu Jose on Nov 26, 2008 8:53 AM -
BAPI/FM to get sales order incompletion log
Hi friends,
I need a FM/BAPI to read the incompletion log of a sales order. Any advice on that is much appreciated.
regards,
PrabhuHi,
try this FM:
CALL FUNCTION 'EHS003_CHECK_INCOMPLETENESS'
EXPORTING
DIALOG = SPACE
FEHGR = TVAK-FEHGR
TBNAM = 'DGMSD'
DIA_VISIBLE = CHARX
I_VBTYP = VBAK-VBTYP
I_VBELN = VBAK-VBELN
I_VBAK = VBAK
TABLES
I_VBUV_LAST = HVBUV
I_VBUV_TAB = XVBUV
I_VBUV_DIA = DVBUV
I_VBAP = XVBAP
EXCEPTIONS
OTHERS_ = 1. -
How to get sales order number before saving in VA01 by using parameter
Hi,
Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
can you please suggest how to do it?
Thanks & Regards.
Rahul VerulkarHi,
In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
Thanks & regards,
Rahul Verulkar -
Which table I can get sales order no from delivery numbar.
Hi,
I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
Thanks,hi,
sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
sales doc item table ( VBAP) copy to Delivery item table( LIPS)
you can see this in copy control VTLA ,
now u want slaes doc no. from dilv doc. no.
so go to t-code se11.....
fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
i hope it will help u. -
Should we use ORDER05 or SALESORDER_CREATEFROMDAT2 to place sales orders?
Hello all,
Should we use ORDER05 or SALESORDER_CREATEFROMDAT2 to place sales orders in SAP?
I know ORDERS05 is using call transaction to create it an the other one is using a BAPI.
One was released for version 46C and the other one from 620
It seems as we need to use the second one but I'm not sure the functionality or what is the purpose for this last message type.
My disconcert is just because I was expecting ORDERS06 for new versions...
Thanks in advance.
Jorge Rosa.You can check OSS Note 550431 - FAQ: BAPI in sales - general questions and Note 550726 - FAQ: BAPIs in sales - restrictions for addition information.
Regards, -
Function module to get Sales Order classification.
Hello everyone,
Can someone give me a function module to get Sales Order classification? Really appreciate it.Hi
Check the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
Reward points if useful
Regards
Anji -
BAPI for Outbound Delivery Creation with reference to Sales Order
Dear all,
I'm on R/3 4.6B platform and to develop an RFC for outbound Delivery creation instead of using the standard VL01N transaction.
I've review BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N thread which suggest BAPI_DELIVERYPROCESSING_EXEC .
However, in 4.6B, that function module doesn't exist. Appreciate any suggestion and or workaround.
Thanks.
Steven
Edited by: Steven Khoo on Mar 25, 2010 7:13 AM
Edited by: Steven Khoo on Mar 25, 2010 7:14 AMNot required anymore
-
How to get sales order data in R/3. Any FM?
Hi ,
Is there any FM in R/3 to get sales order data.
In CRM we use CRM_ORDER_READ to get the Header and Item details. Like wise FM in R/3 is required.
Actually I have to test 'Usage' in sales tab of VA01/VA02/VA03.
How to get the order details? what is the user exit for ORDER save?
If any body knows please do let me know.
Thanks and Regards
HarishHello Harish,
Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
Regards
Kaushal -
What's the name of FM for getting Sales Order Header / Item Status info
Hello All:
Do you know what's the name of Function Module for getting Sales Order Header / Item Status Overview ? Any sample code will be very much appreciated.
Basically, I am trying to create a Webpage where user can enter the Sales Order document number and will return the Sales Order: Status Overview.
Thanks,
Dipankar BiswasThanks everybody ! Appreciate for your prompt response. I was also looking for some sample code, and I did find some on. And here is one. I still have to try the code, but here is for all your reference:
*& Report ZBAPI_SALESORDER_GETSTATUS *
*& Read and Display the Sales Order Items and Status of the Order *
REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
TABLES: vbap. "Sales Document Item Data.
DATA: wa_bapireturn TYPE bapireturn,
wa_bapisdstat TYPE bapisdstat,
it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
TYPES: BEGIN OF ty_mat_name,
matnr TYPE makt-matnr,
maktx TYPE makt-maktx,
END OF ty_mat_name.
DATA: wa_mat_name TYPE ty_mat_name,
it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
START-OF-SELECTION.
SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = p_vbeln
IMPORTING
return = wa_bapireturn
TABLES
statusinfo = it_bapisdstat.
IF wa_bapireturn IS INITIAL. " Successful Execution.
WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
ULINE.
LOOP AT it_bapisdstat INTO wa_bapisdstat.
WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
40 wa_bapisdstat-prc_stat_h, " Processing Status
50 wa_bapisdstat-dlv_stat_h, " Delivery Status
60 wa_bapisdstat-itm_number, " Item Number
80 wa_bapisdstat-material, " Material
90 wa_mat_name-maktx, " Material Description
130(10) wa_bapisdstat-net_price. " Net Price
CLEAR wa_bapisdstat.
ENDLOOP.
REFRESH it_bapisdstat[].
ELSE.
WRITE: wa_bapireturn-message.
ENDIF.
Maybe you are looking for
-
What is diff. b/w Class loading and class initializing??
Hi Guys, When we are using final keyword as: final static int cout; Then class will load but not initialize? Could any one explain this?? Thanks in advance.
-
Logic Error code while assigning V Instruments
While I'm loading different virtual instruments into a song template for scoring, I get the following message: "Logical end-of-file reached during read operation" What is this actually telling me and what should I do about it? Thnx.
-
What can Power BI Replace ?
Being new to Power BI have few basic questions... 1. What is Power BI suppose to replace from Legacy Microsoft BI tools - Performance Point Server? 2. Is Power BI an Enterprise analytic, reporting, dashboard tool ? Where does Power BI fits in Enterp
-
Hello all, I have encountered the following problem when reading large BLOB data and sending it to an OutputStream. I receive the following error messages. exception thrown from the servlet service function (uri=/imagepush): java.lang.NullPointerExce
-
Dear Experts, I am trying to create a web report that shows a map and allows the users to drill down on that map. I have static-geo characteristics in my query. (country, region) I can show a map of europe with the right data on it, but there is no