Get the sales order number based on customer number
HI all,
how can i get the sales order numbers based on the customer number?
plz tell me the table names.
thanks,
Srini
hiiiii..
go to database table VBAK
where you can find customer id and sales order
use a select statement in your report program
and key as kunnr ...
i hope it does ...the job
Similar Messages
-
Get the Sales Order number from Service Notification
Hi Experts,
Please let me know if there are any BAPI's or standard Function modules to get the Sales order for a given Service Notification number.
Thanks a lotHi Ashish,
Hope the listed BAPI's let you solve the issue:
BAPI_SERVNOT_CLOSE Complete service notification
BAPI_SERVNOT_CREATE Create service notification
BAPI_SERVNOT_DEL_DATA Delete Items, Causes, Activities, Tasks, Partners of the service notif.
BAPI_SERVNOT_GET_DETAIL Get details about a service notification
BAPI_SERVNOT_MODIFY_DATA Modify a service notification or associated subdata
BAPI_SERVNOT_POSTPONE Postpone service notification
BAPI_SERVNOT_PUTINPROGRESS Put in process a service notification
BAPI_SERVNOT_SAVE Save service notification
BAPI_SERVICENOTIFICAT_CREATE Create service notification
BAPI_SERVICENOTIFICAT_GETLIST Select service notifications according to customer or contact person
BAPI_SERVNOT_CHANGEUSRSTAT Change the user status of a service notification
Regards,
Soundarya. -
Retrieve the sales orders for a particular customer in selection screen
Hi
I want to retrieve the sales orders for a particular customer(entering customer number field in the selection screen and then clicking on f4 help on sales order field in the selection screen I should get only sales order numbers for that particular customer number).How can I achieve this through search helps?Are there any standard search helps that I can use.
<removed_by_moderator>
Edited by: Julius Bussche on Apr 9, 2009 12:55 PMHi,
try this:
at selection-screen on value-request for p_par.
select * from vbak
into itab
where kunnr = p_par.
then use the FM 'F4IF_TABLE_VALUE_REQUEST'.
with
retfield = 'VBELN'
dynprog = sy-repid
dynpnr = sy-dynnr
dynprofield = <name of parameter>
value_org = 'S'
tables = itab.
Regards,
Leo. -
How to find out the Sales order no based on spool no
Hi Experts,
Anyone tell me how to find out the Sales order no based on Spool no.
Thanks and regards,
AmjadHello Mohammed,
Please check the following SAP Spool tables for your spool request.
You will find your required document number as an Object key in these tables.
TSCMSTAT --> Field OBJNO
SOOS --> Field APPLKEY (Document number will be a part of this key)
If your document is getting printed by SAP Script, then dont forget to take SCR value in the OBJTP field while searching for your record.
Thanks and Best Regards,
Vikas Bittera.
***Points for Usefull answers *** -
Changing the status of the sales order item based on reason for rejection
Hi All,
When a Sales order item is rejected then the status at the item level is changed as 'TECO'.When the reason for rejection is removed the status 'Teco' is reset.This status change can be achieved using the user exit 'MV45AFZZ'.But the exit does not allow re-atp calculation whenver a blocked item is release.I have use the exit 'MV45AFZB' ,through this the status change as well as re-atp calculation takes place.But the status changed(Based on reason of rejection) does not appear in the same screen.The change gets reflected only when the sakes order is saved and i open it again.
I want the status change to appear in the same screen.I am doing my code in the form 'userexit_check_vbap' of the exit 'MV45AFZB'. Please let me know if there are any user exits or BADI's available for the same(Changing the status of the sales order item based on reason for rejection ).
Regards,
S.SubasreeHi subburamaiah
If you want the report you can create a separate SIS report . In that take the input field as a Reason for rejection.. and ask for the output the list of sales orders .Now when you check this user defined report you will give the reason for rejection and check what all orders got rejected on that reason for rejection.
Regards
Srinath -
Function module or BAPI to get the sales order details.
Hi,
Can any one revert back with the FM or BAPI to get the sales order details.
I tried using BS01_SALESORDER_GETDETAIL, in my driver program of smartform but when i execute the form using VA03 -> Sales Document -> Issue output to -> Print preview, I am getting the required output.
if i see the print preview in the overview of the sales order (enter sales order and press enter), the above specified FM is not populating any data.
Thanks,
PrathapHi Prathap,
The above specified FM BAPISDORDER_GETDETAILEDLIST should work. As you need the item conditions,
Fill the I_BAPI_VIEW with header = 'X', item = 'X' and sdcond = 'X'.
Fill the SALES_DOCUMENTS-vbeln = sales order number.
Regards,
Shylaja -
Reserving the sales order stock for a customer
Hello SAP gurus !!
My client is wants to Reserve the stocks once the order is placed or confirmed by the Customers.
For Example; --
If 10 c/s are available in the plant and a customer has ordered 10 c/s... next time .. if someone is creating order for the same Material, system should not confirme sales Order as this particular stock has already booked by the customer.
Can we MAP this scanario in creating DUMMY sales order??
I have also tried to move the sales order stock to Reserved Stock by creating Reservations (Tcode MB21) using movement type 412 E.
but i m not sure whether i m on the right way or wrong??
Please help me on this particular issue. Points will be rewarded for Helpful answers.
Thanks in advance.
Regards,
MAYANKHi Ravi
Actually we have started this particular issue with Product Allocation only.... but the problem with product allocation is : you can not reserve/block the stocks even if it has been allocated to other customers.
If some other user is creating the sales Order for some other customer, system will confirm and you can do the delivery also.
Basically Client want to first allocate( here allocation could be through creation of Dummy Sales Order also) then also want to BLOCK /RESERVE for those customers... so that nobody should be allowed to use those Stocks.
We have Already tried with:--
1. Product Allocation
2. OVZ9 ( checking Group 02/ Sales Order Combination)
3. MB21 ( creating Reservation with Movement Type 412 E)
4. Consignment Process
& some other Options but exact requirement has not been met.
Now we are trying to solve this Issue using some scenarios Other than Prod Alloc.
I hope i have clearly explained the requirement still you have any doubts, please revert back.
Thanks in advance
Warm Regards,
MAYANK -
Calling VA01 from Report,how to get the Sales Order No when Back.
Hi all,
I have a requirement of calling va01 from the report and have done that using
did recording ...&
call transaction va01 using bdcdata.
but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls shareUse the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
Effect of MESSAGES INTO itab:
Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
And when doing the call transaction pl. choose update mode as 'S' or 'L'.
Regards,
Joy. -
BAPI to get the Sales order line item details
Hi,
My program gets Sale sorder and item as the input and I need to fetch all the item (Given item) details for this Sales Order from VBAP. Is there any BAPI to get the item details?Hi,
This is a sample code of BAPI.Try to map it to your requirement.This is not related to vendor.This is related to sales order.
Constants
CONSTANTS: c_contract LIKE vbak-vbeln VALUE '0020000720',
c_item LIKE vbap-posnr VALUE '000010'.
Structures
Structure to hold BAPI Header
DATA: st_bapisdhd1 LIKE bapisdhd1.
Internal Tables
Sales Order Create BAPI Return Messages
DATA: tbl_return TYPE STANDARD TABLE OF bapiret2
WITH HEADER LINE.
Sales Order BAPI Line Item
DATA: tbl_bapisditm TYPE STANDARD TABLE OF bapisditm
WITH HEADER LINE.
Sales Order BAPI Line Item
DATA: tbl_bapisditmx TYPE STANDARD TABLE OF bapisditmx
WITH HEADER LINE.
Sales Order BAPI Pricing Conditions
DATA: tbl_bapicond TYPE STANDARD TABLE OF bapicond
WITH HEADER LINE.
Sales Order BAPI Partner Functions
DATA: tbl_bapiparnr TYPE STANDARD TABLE OF bapiparnr
WITH HEADER LINE.
Sales Order BAPI Schedule Lines
DATA: tbl_bapischdl TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
Sales Order BAPI Schedule Lines
DATA: tbl_bapischdlx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
Sales Order BAPI Pricing Conditions
DATA: tbl_bapicondx TYPE STANDARD TABLE OF bapicondx
WITH HEADER LINE.
Customer Enhancement for VBAK, VBAP, VBEP
DATA: tbl_bapiparex TYPE STANDARD TABLE OF bapiparex
WITH HEADER LINE.
Table to hold BAPI Detail Conditions
DATA: tbl_bapisdcond TYPE STANDARD TABLE OF bapisdcond
WITH HEADER LINE.
Table to hold Return Messages from Sales Order Change BAPI
DATA: tbl_return_chg TYPE STANDARD TABLE OF bapiret2
WITH HEADER LINE.
Variables
DATA: g_vbeln_created LIKE vbak-vbeln,
g_valid_contract TYPE c,
g_cont_price_date TYPE d.
Start of Selection
START-OF-SELECTION.
PERFORM validate_contract.
PERFORM create_sales_ord.
PERFORM update_sales_ord.
End of Selection
END-OF-SELECTION.
PERFORM write_output_report.
Subroutines
*& Form create_sales_ord
Create the Sales Order
FORM create_sales_ord .
PERFORM populate_bapi_tables.
PERFORM call_create_sales_ord_bapi.
ENDFORM. " create_sales_ord
*& Form populate_bapi_tables
Fill up the BAPI Tables
FORM populate_bapi_tables .
PERFORM populate_bapi_header.
PERFORM build_bapi_partners.
PERFORM build_bapi_items.
PERFORM build_bapi_sched_lines.
ENDFORM. " populate_bapi_tables
*& Form populate_bapi_header
Build BAPI Header Details
FORM populate_bapi_header .
CLEAR st_bapisdhd1.
st_bapisdhd1-doc_type = 'ZOC'. "Order type
st_bapisdhd1-sales_org = '026'. "Sales Org
st_bapisdhd1-distr_chan = '00'. "Dist Channel
st_bapisdhd1-division = '00'. "Division
st_bapisdhd1-purch_no_c = 'Cust Po No'. "Cust PO No
st_bapisdhd1-name = 'Orderer'. "Name of Orderer
st_bapisdhd1-ord_reason = ''. "Order Reason
st_bapisdhd1-sales_off = '3001'. "Sales Office
st_bapisdhd1-sales_grp = '301'. "Market Area
IF g_valid_contract = 'X'.
st_bapisdhd1-price_date = g_cont_price_date.
ENDIF.
ENDFORM. " populate_bapi_header
*& Form build_bapi_partners
Build BAPI Partner Functions
FORM build_bapi_partners .
CLEAR tbl_bapiparnr.
tbl_bapiparnr-partn_role = 'AG'.
tbl_bapiparnr-partn_numb = '0000100750'.
APPEND tbl_bapiparnr.
CLEAR tbl_bapiparnr.
tbl_bapiparnr-partn_role = 'WE'.
tbl_bapiparnr-partn_numb = '0000504472'.
APPEND tbl_bapiparnr.
ENDFORM. " build_bapi_partners
*& Form build_bapi_items
Build The BAPI Line Items
FORM build_bapi_items .
DATA: l_matnr LIKE mara-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = '10000072'
IMPORTING
output = l_matnr.
CLEAR tbl_bapisditm.
tbl_bapisditm-itm_number = c_item.
IF g_valid_contract = 'X'.
tbl_bapisditm-ref_doc = c_contract.
tbl_bapisditm-ref_doc_it = c_item.
tbl_bapisditm-ref_doc_ca = 'G'. "Contract
ENDIF.
tbl_bapisditm-material = l_matnr.
tbl_bapisditm-plant = '3012'.
tbl_bapisditm-target_qty = '5.000'.
tbl_bapisditm-target_qu = 'M3'.
tbl_bapisditm-item_categ = 'ZZOC'.
tbl_bapisditm-sales_dist = '301'.
tbl_bapisditm-dlv_prio = '02'.
tbl_bapisditm-prc_group5 = '080'.
tbl_bapisditm-cust_mat35 = 'kdmat'.
tbl_bapisditm-route = 'TESYS'.
tbl_bapisditm-usage_ind = 'CIV'.
APPEND tbl_bapisditm.
CLEAR tbl_bapisditmx.
tbl_bapisditmx-itm_number = c_item.
tbl_bapisditmx-ref_doc = 'X'.
tbl_bapisditmx-ref_doc_it = 'X'.
tbl_bapisditmx-ref_doc_ca = 'X'.
tbl_bapisditmx-material = 'X'.
tbl_bapisditmx-updateflag = 'I'.
tbl_bapisditmx-plant = 'X'.
tbl_bapisditmx-target_qty = 'X'.
tbl_bapisditmx-target_qu = 'X'.
tbl_bapisditmx-item_categ = 'X'.
tbl_bapisditmx-sales_dist = 'X'.
tbl_bapisditmx-dlv_prio = 'X'.
tbl_bapisditmx-prc_group5 = 'X'.
tbl_bapisditmx-cust_mat35 = 'X'.
tbl_bapisditmx-usage_ind = 'X'.
tbl_bapisditmx-route = 'X'.
APPEND tbl_bapisditmx.
ENDFORM. " build_bapi_items
*& Form build_bapi_sched_lines
Build the BAPI Schedule Lines
FORM build_bapi_sched_lines .
CLEAR tbl_bapischdl.
tbl_bapischdl-itm_number = c_item.
tbl_bapischdl-req_qty = '1'.
tbl_bapischdl-req_date = sy-datum.
APPEND tbl_bapischdl.
ENDFORM. " build_bapi_sched_lines
*& Form build_bapi_conditions
Pull the BAPI Pricing Conditions from the Contract
FORM build_bapi_conditions .
LOOP AT tbl_bapisdcond.
CLEAR tbl_bapicond.
MOVE-CORRESPONDING tbl_bapisdcond TO tbl_bapicond.
APPEND tbl_bapicond.
CLEAR tbl_bapicondx.
tbl_bapicondx-itm_number = tbl_bapicond-itm_number.
tbl_bapicondx-cond_st_no = tbl_bapicond-cond_st_no.
tbl_bapicondx-cond_count = tbl_bapicond-cond_count.
tbl_bapicondx-cond_type = tbl_bapicond-cond_type.
tbl_bapicondx-updateflag = 'I'.
tbl_bapicondx-cond_value = 'X'.
tbl_bapicondx-currency = 'X'.
tbl_bapicondx-cond_unit = 'X'.
tbl_bapicondx-cond_p_unt = 'X'.
tbl_bapicondx-varcond = tbl_bapicond-varcond.
APPEND tbl_bapicondx.
ENDLOOP.
ENDFORM. " build_bapi_conditions
*& Form call_create_sales_ord_bapi
Call the Sales Order Create BAPI
FORM call_create_sales_ord_bapi .
CLEAR g_vbeln_created.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = st_bapisdhd1
IMPORTING
salesdocument = g_vbeln_created
TABLES
return = tbl_return
order_items_in = tbl_bapisditm
order_items_inx = tbl_bapisditmx
order_partners = tbl_bapiparnr
order_schedules_in = tbl_bapischdl.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDFORM. " call_create_sales_ord_bapi
*& Form update_sales_ord
Update the newly created Sales Order with the Pricing Conditions
from the Contract
FORM update_sales_ord .
CHECK g_valid_contract EQ 'X'.
PERFORM get_contract_details.
PERFORM build_bapi_conditions.
PERFORM call_change_sales_ord_bapi.
ENDFORM. " update_sales_ord
*& Form get_contract_details
Get Contract Details
FORM get_contract_details .
Need to manually get the relevant Pricing Conditions as the BAPI
BAPISDORDER_GETDETAILEDLIST causes problems when we call the BAPI
BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_SALESORDER_CHANGE (I think
this is due to the fact that these BAPIs belong to the same Function
Group and there must be some common structures that are not cleared
causing us all sorts of grief when we try and call the next BAPI)
DATA: tbl_konv TYPE STANDARD TABLE OF konv WITH HEADER LINE.
DATA: tbl_komv TYPE STANDARD TABLE OF komv WITH HEADER LINE.
DATA: tbl_vbak TYPE STANDARD TABLE OF vbak WITH HEADER LINE.
Pricing Condition Master
DATA: BEGIN OF tbl_t685a OCCURS 0,
kschl LIKE t685a-kschl,
kaend_wrt LIKE t685a-kaend_wrt,
END OF tbl_t685a.
SELECT *
INTO TABLE tbl_vbak
FROM vbak
WHERE vbeln = c_contract.
READ TABLE tbl_vbak INDEX 1.
SELECT *
INTO TABLE tbl_konv
FROM konv
WHERE knumv = tbl_vbak-knumv AND
kposn = c_item.
CHECK sy-subrc EQ 0.
We now need to make sure we only bring across the Condition Types that
are EDITABLE. If we bring across non editable conditions (such as
'ZPR1') the Change Sales Order BAPI will fail
SELECT kschl kaend_wrt
INTO TABLE tbl_t685a
FROM t685a
FOR ALL ENTRIES IN tbl_konv
WHERE kappl EQ 'V' AND "Sales
kschl EQ tbl_konv-kschl AND
kaend_wrt EQ 'X' AND "Value is Editable
kmanu NE 'D'. "Process manually
Prepare for Binary Search
SORT tbl_t685a BY kschl.
LOOP AT tbl_konv.
READ TABLE tbl_t685a WITH KEY kschl = tbl_konv-kschl BINARY SEARCH.
IF sy-subrc EQ 0.
MOVE-CORRESPONDING tbl_konv TO tbl_komv.
APPEND tbl_komv.
ENDIF.
ENDLOOP.
CHECK NOT tbl_komv[] IS INITIAL.
Map KOMV into the more BAPI friendly BAPISDCOND structure
CALL FUNCTION 'MAP_INT_TO_EXT_STRUCTURE'
TABLES
fxvbak = tbl_vbak
fxkomv = tbl_komv
fxbapikomv = tbl_bapisdcond
EXCEPTIONS
entry_missing = 1
OTHERS = 2.
ENDFORM. " get_contract_details
*& Form call_change_sales_ord_bapi
Call the Change Sales Order BAPI
FORM call_change_sales_ord_bapi .
DATA: st_head_chg LIKE bapisdh1x,
st_logic_switch TYPE bapisdls.
CHECK NOT g_vbeln_created IS INITIAL.
CHECK g_valid_contract EQ 'X'.
st_head_chg-updateflag = 'U'.
st_logic_switch-cond_handl = 'X'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = g_vbeln_created
order_header_inx = st_head_chg
logic_switch = st_logic_switch
TABLES
return = tbl_return_chg
conditions_in = tbl_bapicond
conditions_inx = tbl_bapicondx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDFORM. " call_change_sales_ord_bapi
*& Form write_output_report
Produce Output Report
FORM write_output_report .
IF NOT g_vbeln_created IS INITIAL.
WRITE:/ 'Success! Sales Order', g_vbeln_created, 'was created!'.
ELSE.
WRITE:/ 'Failure! Sales Order was not created!'.
ENDIF.
SKIP.
WRITE:/ 'Sales Order Create Log'.
LOOP AT tbl_return.
WRITE:/ tbl_return-type, tbl_return-id, tbl_return-number,
tbl_return-message.
ENDLOOP.
SKIP.
WRITE:/ 'Sales Order Change Log'.
LOOP AT tbl_return_chg.
WRITE:/ tbl_return_chg-type, tbl_return_chg-id,
tbl_return_chg-number, tbl_return_chg-message.
ENDLOOP.
ENDFORM. " write_output_report
*& Form validate_contract
Make sure that the Contract is Valid
FORM validate_contract .
DATA: l_gueen LIKE vbak-gueen,
l_prsdt LIKE vbkd-prsdt.
SELECT SINGLE vbakgueen vbkdprsdt
INTO (l_gueen, l_prsdt)
FROM vbak
INNER JOIN vbkd
ON vbakvbeln = vbkdvbeln
WHERE vbak~vbeln = c_contract AND
vbkd~posnr = '000000'.
IF sy-datum LE l_gueen.
Contract is valid! Set Order Price Date
g_valid_contract = 'X'.
g_cont_price_date = l_prsdt.
ENDIF.
ENDFORM. " validate_contract
Regards
Rajesh Kumar -
To release the sales order credit block by Customer Group
Hi,
1. I want to release the sales order credit block based on the Customer Group.
Normally we release the credit block using the t.code VKM3.
2. When i am maintaining the credit using the FD32, under the status screen of Credit control area Tab, the field "Credit Horizon Date", when i am creating the credit limit on 17/05/08, the system will take this field by default ie 16/07/08. I have maintained as 12 months in horizon ie OVA8.
If any one could let me know, how the system is taking this date.
Regards
Ravishankar MHi Ravi
Sap default horizon time is 2 month,thats why systym is taking two months time,so if you want to change this as 12 month you can go to
OMO1 and select S66 then change it as month you want.
Reward if it helps you
thanks
Utpal -
Can't open sales order for a deleted customer number
Dear all ,
i have deleted a customer cos it was repeated ,now there were some sales orders where that customer is a sold-to-party
when ever i try to open thous sales orders the systems gives an error message [ no customer record exist for sold to party ******* ]
the sales orders that does not open because of this error are no more wanted
would you advise about how to delete them ?
thanks and best regardswell,
thanks for the fast reply but
the customer no. is generated automatically and I can't assign the same number again . -
Get the sales order text from ITS and save it in SAP.
Hi,
I have created an application to create sales order from ITS. In this app i'm having a text field to fet the header text for the order. & after that I'm calling an RFC which has a BAPI to create the sales order.
Now, when i enter the text for header texts in frontend (separated by ENTER), then it saves only the first line of the text.
I've tried using :
SPLIT ordernotes AT cl_abap_char_utilities=>cr_lf INTO TABLE t_ordnotes.
and using FM: CREATE_TEXT,
but still, it is saving only the first line.
Can anyone please help me with this ?????
Its urgent.
Thanks in advance,
Hemant.Hi
See the sample BDC program that is used to upload the Material LONG Texts into SAP using MM01 Tcode
check this may be helpful
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
<b>Reward points for useful Answers</b>
Regards
Anji -
Direct URL to open the Sales order transaction based on the Transacation ID
Hi All,
Please help me...
When i click the below link then it will navigate to the sales order transacation.
https://dev1crm...:18020/sap(bD1lbiZjPTIwMCZkPW1pbg==)/bc/bsp/sap/crm_bsp_frame/entrypoint.do?appl=CRMD_BUS2000115&blview=&analyze=X
but my requirement is, now i have to create a differnet url for different transaction ID's.
Let us consider few sales order transacation ID's :
6500000001
6500000002
6500000003
6500000004
6500000005
now i will create a hyper link to these transaction id's from the portal screen, and when ever user clicks on any of these transaction id, then i should navigate to the sales order transaction by showing the details about this transaction id.
Please do suggest me how to handle this.
Thanks in advance.
anilHi,
I got the solution,
append this string to the URL
&crm_object_id=4603D4CDF5950535E100000082974D14
4603D4CDF5950535E100000082974D14 --- Guid.
Thanks,
Anil -
FM to get the sales order data using GI as input
Hi Friends,
I am looking for a way to read the sales order data (document no. )using the Goods issue document no as my input.
basically reading the Docflow in the opposite direction i.e GI -> SO .
If you can suggest a FM which can do so it would be really helpful.
Thanks,
Poonam.Hi Poonam,
Not FM but I can tell you the Std. way.
Go to SE16 --> Table VBFA --> Enter your goods movement document list in field "Follow-on doc." --> In the feild "Prec.doc.categ." --> choose "C Order" --> Execute
Hope it helps,
Regards,
MT -
How do I get the Sales Orders Statuses? Is there any API for that?
Hi!
I'm trying to track all the statuses of a sales order. I want to get the header status, lines status, holds status, shipping status and the invoiced status.
Does anyone knows if there is an API for that? Or I'll have to make lots of querys for that?
I found out the following APIs, but it only returned me Y or N:
-oe_header_status_pub.get_booked_status;
-oe_header_status_pub.get_cancelled_status;
-oe_header_status_pub.get_closed_status;
-oe_holds_pub.check_holds;
-oe_line_status_pub.get_pick_status;
-oe_line_status_pub.get_ship_status;
-oe_line_status_pub.get_invoiced_status;
Thanks for the help!Hi,
You can find the status of both SO Headers ahd Lines from the FLOW_STATUS_CODE column in oe_order_headers_all and oe_order_lines_all tables.
Thanks
Gowrishankar
Maybe you are looking for
-
My ipod touch 4g is not showing my songs after it syncs w/itunes
hi there, i have an ipod touch 4g as a gift recently. i downloaded the newest version of itunes from the internet. i transferred my songs from my computer to itunes music library. when i sync-ed my ipod touch to my itunes library, it doesn't show Any
-
What are the tables corresponding to sales order - parners
Hi Folks, Can u pls let me know what are the corresponding tables n fileds for the va02->parners i.e sold to party, ship to party etc, buyer , bill to party and contact details , adress of these parners wil store. Thanks in advance. Regards Rajesh
-
Submitting completed PDF forms by email rather than responses in a table
Can I set up my PDF form with a submit button that will email the completed form to me - I don't want to see the responses collated in a table as I need to file each completed form electronically per client?
-
I'm missing a really important picture that I hope was backed up on Time Capsule. I'd like to view the pictures. But I'm afraid if I reinstall, that all the pictures that I've added since will disappear. Is that a correct assumption? I really j
-
I wanted to test some SQL to make sure it was SQL 92 compliant. My understanding is that the command I was using was compilant. I set on the validator: ALTER SESSION SET flagger=FULL;and issued the statement: SELECT COALESCE( NULL, 34, 13, 0 from dua