Assigning of smart from to print Service Order using Tcode IW32
Hi Gurus
i have developed a Z smart form to print shop papers using IW32 how how to assign the Zprint program and Z smartforn to print shop papers using iw32
thanks in advance.
Edited by: jvp111 on Jun 11, 2010 4:20 PM
In config, under Plant Maintenance & Customer Service -> Maintenance & Service Processing -> Maintenance & Service Orders -> Print Control -> Define Shop Papers you can assign you own Shop Paper number , Form Routine, Form name. The SAP standard is a Sapscript but I have used a Smartform. Note that you will have to give a shorter name for your Smartform to fit in the Form section in config.
Similar Messages
-
Problem in Changing the Service Order Using BAPI_ALM_ORDER_MAINTAIN
Hi ABAPers,
I want to change the Service order(<b>TCODE-IW32</b>) Using <b>BAPI_ALM_ORDER_MAINTAIN</b>.But i don't know what are all the
Parameters needs to be passed.I want to chnage the <b>COMPONENT</b> of the Service Order.Please anyone tell me what all are the
mandatory parameters should be passed to change the <b>COMPONENT</b> of the Service Order.If anyone has the code Please send me.
It is very Urgent Kindly help me to Solve this problem.
Regards,
Ashok.Hi Ashok,
i am sending u the sample eg thread for bapi create i thnk u can find out the mandatory fields frm tht ...
check this link though it is for create the mandatory fields and structure will be same .
Create Order BAPI
regards
Sana M.
reward for useful answers.. -
Hi ,
I am creating order from IW31. For printing Service order layout I have created a custom print program wtih copy of stanard print porgram 'RIPRCT00'.
For printing Purchase order number given in IW31,
select single * from PMSDO where OBJNR = caufvd-OBJNR.
field PMSDO-BSTKD.
When I save Service Order and then print Order field PMSDO-BSTKD, is appering in layout.
But When I tries to print new Service Order (W/O saving)I am not able get any value in same field PMSDO-BSTKD, as it first print and then value is updated to PMSDO table.
Is there any BADI or user-exits present using that I could get the value of screen field for Purchse Order.
Thanks and regards,
Amit RautHi Mani,
Thanks for prompt reply.
But this user exit is before releasing.
I need to print after release.
After pressing the green flag accidentally we have the option not to save.
I thin If i use this user exit order will be printed. But i want to print it after the system status has changed into RELS from CRTD.
Regds,
Vinsa.R -
Is it possible to print service order directly with PDF formular?
does anybody know:
is it possible to print service order directly with PDF formular?
i don't mean to use the SE38 calling PRG RSTXPDFT4 to transfer SAP sript into PDF.
thanks
RDNot possible directly..
But you can call this tranzaction to convert to PDF & print. For this you need development -
Creating service order using BAPI_BUSPROCESSND_CREATEMULTI
Hi Experts,
I have a requirement to create a Service order using a BAPI.
I'm trying to use the BAPI BAPI_BUSPROCESSND_CREATEMULTI. I found some code related to this BAPI on this forum and and I've written my code based on that and while executing it i'm getting a short dump. Could anyone please help me figure out what the problem is.
My code is as follows:
data: lv_header_guid type guid_32.
data: begin of lit_header occurs 0,
include type BAPIBUS20001_HEADER_INS,
end of lit_header.
data: wa_header type BAPIBUS20001_HEADER_INS.
data: begin of lit_inputfields occurs 0,
include type BAPIBUS20001_INPUT_FIELDS,
end of lit_inputfields.
data: wa_inputfields type BAPIBUS20001_INPUT_FIELDS.
data: begin of lit_partner occurs 0,
include type BAPIBUS20001_PARTNER_INS,
end of lit_partner.
data: wa_partner type BAPIBUS20001_PARTNER_INS.
Create Contract header guid
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = lv_header_guid.
Fill orderadm_h
wa_header-guid = lv_header_guid.
wa_header-process_type = 'YSC'.
APPEND wa_header TO lit_header.
Fill input fields
MOVE: lv_header_guid TO wa_inputfields-ref_guid,
'A' TO wa_inputfields-ref_kind,
'0001' TO wa_partner-ref_partner_handle,
'ORDERADM_H' TO wa_inputfields-objectname,
'PROCESS_TYPE' TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
CLEAR wa_inputfields.
Fill PARTNER DETAILS
Sold to Party
MOVE: lv_header_guid TO wa_partner-ref_guid,
'A' TO wa_partner-ref_kind,
'0001' TO wa_partner-ref_partner_handle,
'CRM000' TO wa_partner-partner_fct,
'5000000288' TO wa_partner-partner_no,
'BP' TO wa_partner-no_type,
'BP' TO wa_partner-display_type,
'X' TO wa_partner-mainpartner.
APPEND wa_partner TO lit_partner.
CLEAR wa_partner.
Fill input fields
MOVE: lv_header_guid TO wa_inputfields-ref_guid,
'A' TO wa_inputfields-ref_kind,
'0001' TO wa_inputfields-logical_key,
'PARTNER' TO wa_inputfields-objectname.
MOVE 'PARTNER_FCT' TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
MOVE 'PARTNER_NO' TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
MOVE 'NO_TYPE' TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
MOVE 'DISPLAY_TYPE' TO wa_inputfields-fieldname.
APPEND wa_inputfields TO lit_inputfields.
CLEAR wa_inputfields.
CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
TABLES
HEADER = lit_header
ITEM =
ACTIVITY =
SALES =
PARTNER = lit_partner
ORGANISATION =
SHIPPING =
APPOINTMENT =
TEXT =
SERVICE_OS =
STATUS =
INPUT_FIELDS = lit_inputfields
CREATED_PROCESS =
RETURN =
LEAD =
OPPORTUNITY =
PRODUCT =
SCHEDULELINE =
CUSTOMER_HEAD =
CUSTOMER_ITEM =
PRICING =
PRICING_ITEM =
CONDITION_CREATE =
BILLING =
CONFIG_CFG =
CONFIG_BLB =
CONFIG_INS =
CONFIG_PRT =
CONFIG_VAL =
CONFIG_VK =
CONFIG_REF =
ADDRESS =
BILLPLAN =
BILLPLAN_DATE =
EXTENSIONIN =
DOCUMENT_FLOW =
BATCH =
PRICING_AGR_CRM =
FINPROD_ITEM =
CANCEL =
CANCEL_IR =
PRODUCT_LIST =
PRODUCTS =
OBJECTS =
PAYPLAN =
PAYPLAN_DATE =
CONFIG_FILTER_CFG =
CONFIG_FILTER_INS =
CONFIG_FILTER_PRT =
CONFIG_FILTER_VAL =
ACTIVITY_I =
EXT_REF =
ENDFUNCTION.
I'm getting the following dump.
Runtime Errors ITAB_ILLEGAL_COMPONENT
Date and Time 07.09.2006 21:29:03
Short dump has not been completely stored (too big)
Short text
Invalid line component &V2 in "... KEY k1 = v1 ... kn = vn".
Error analysis
When the ABAP/4 program "SAPLCRM_BUSPROCESSND_BAPI" attempted to process the
internal table "HEADER[]"
with "... KEY k1 = v1 ... kn = vn", a component "HANDLE " was specified
dynamically as the contents
of the field "LV_STR_HANDLE". However, the line type "u" of the internal table
"HEADER[]"
contains no component "HANDLE ".
| -
Information on where terminated
Termination occurred in the ABAP program "SAPLCRM_BUSPROCESSND_BAPI" - in
"SET_RETURN_VALUES".
The main program was "RS_TESTFRAME_CALL ".
In the source code you have the termination point in line 36
of the (Include) program "LCRM_BUSPROCESSND_BAPIF80".
Source Code Extract
Line
SourceCde
6
7
text
8
9
-->P_LT_ORDERADM_H_COM text
10
-->P_LT_ORDERADM_I_COM text
11
<--P_HEADER text
12
<--P_ITEM text
13
14
form set_return_values tables header structure BAPIBUS20001_HEADER_INS
15
item structure BAPIBUS20001_item
16
using p_lt_orderadm_h_com type any table
17
p_lt_orderadm_i_com type any table
18
19
20
data: lv_str_handle type fieldname,
21
lv_str_headerhandle type fieldname,
22
lv_str_objectid type fieldname.
23
24
25
field-symbols: <ls_orderadm_h> type crmt_orderadm_h_com,
26
<ls_orderadm_i> type crmt_orderadm_i_com,
27
<ls_header> type BAPIBUS20001_HEADER_INS,
28
<ls_item> type BAPIBUS20001_item.
29
30
31
lv_str_handle = 'HANDLE'.
32
lv_str_headerhandle = 'HEADER_HANDLE'.
33
lv_str_objectid = 'OBJECT_ID'.
34
35
loop at p_lt_orderadm_h_com assigning <ls_orderadm_h>.
>>>>>
read table header with key (lv_str_handle) = <ls_orderadm_h>-handle
37
(lv_str_objectid) = <ls_orderadm_h>-object_id
38
assigning <ls_header>.
39
if sy-subrc = 0.
40
<ls_header>-guid = <ls_orderadm_h>-guid.
41
endif.
42
endloop.
| 43|
Could anyone please help me with this.
Thanks,
Preethi
Message was edited by: Preethi SoothFirst off. Debug.
Put a break point on the line that is generating the short dump and run your code. The ABAP debugger should display before the dump...now....
The error specifies that the line type of the table HEADER (which is the internal representation of your lit_header table and has line type BAPIBUS20001_HEADER_INS ) doesn't have a field called HANDLE.
Check if it does (it should have or something is very wrong, and you should report a bug to SAP).
Check all runtime variables for that command. See if the table has any values in it. Try using your lit_header table with header-line or not.
Your in a far better position to determine what the error is then me. Right now, I don't have access to a CRM server.
From my experience that BAPI is a piece of .... It is hard finding functions in CRM that actually do what you want...properly...Try using CRM_ORDER_CREATE (i think it's called like that). Much better, and if you need RFC capability just write a wrapper RFC.
Message was edited by: João Sousa -
I need to tell Print services to use the 2nd ethernet port
I need to tell Print services to use the 2nd ethernet port
Thanks in advance to anyone who can shed some light. My research has led me to a dead-end so far. Running 10.3.9 on my server. XServe Dual 2.3
I want to have File services and the various other duties pushed through one ethernet port, and print services on the other. I know there is probably a config file to make one simple edit, but I can not find it, or perhaps a "defaults" type command.
Also, where is this "command-line administration guide" that I keep running across on Apple's support?
Thanks in advance.
MattSimilar issue here too. Is it the subnet? Basically, I'm having a problem printing to an AirportExpress-served printer. Our network looks like this:
(From Outside...>>>...to Inside)
(Public IP) DSL Modem
...(10.0.0.x) Airport Express -- HP DesignJet 100 USB -- Airtunes/stereo
...(10.0.0.x) NetGear Wireless Router
...(10.0.0.x nic 0) Mac OS X Server (192.168.0.x nic1)
......(192.168.0.x) Mac OS X client
......(192.168.0.x) Mac OS X client
......(192.168.0.x) Mac OS X client
The printer driver does not appear to be able to do IP printing, it assumes a direct USB connection. We can setup the OS X Server with the printer served by the Airport Express, as it is found via Bonjour, and then we share its queue via Server Admin. The problem is that the LAN clients cannot print to this server queue. The printer gets stopped at the server.
If we turn OFF the OS X Server's firewall, printing works from both the clients and obviously from the Server. I think my question is this: what ports or services need to be turned on in order for the clients to print? There is no clear checkbox for "Bonjour Printer Sharing", and I'm curious what ports this would open, and if it would be safe. I thought it would work because we're pushing the print job up through the firewall, but apparently some response needs to come back through the firewall, and that's what's not happening.
And to tack onto this, how could we also push iTunes to the Airport Express from the Clients? Assuming the music goes over different ports than the print jobs. ?
Thanks in advance for any help. -
How open a service order using event handling
HOw to open a service order using event handling
Hi,
Can you explain your requirement elaborately.
I understand from it as, you want to open Service order creation page, based on some event(may be submit button).
For that technically you can use navigation->goto_page('Provide the URL').
or you can use inbound-plug and out-bound plug concept for naviagation.
Regards,
Devender V -
Creating a service order using FM
Hello everyone,
I am new to CRM technical. I have a requirement to create a service order using standard function module passing only 3 parametrs like category1, category2 and short text. How should I start the report. Can anyone help me in posting the code and the approach.
Thanks in advance!Hi Sandeep,
The best approach to learn this development is to debug the standard functionality by providing the data which you need in your requirement. Then you will get familiar with what are structures which needs to be populated and send to One Order API - CRM_ORDER_MAINTAIN.
This above mentioned API will be the one which you need to use in the creation of Service Order. So, you can also search with the above mentioned Module.
Hope this helps. Scan the Forum for FAQ's on problems that you might get in the development.
Thanks,
Samantak. -
How to create the service order using CRMXIF_ORDER_SAVE
Hi Friends,
I want to create service order using thsis function module
CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
Any body please explain the above questionHi Friends,
I want to create service order using thsis function module
CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
Any body please explain the above question -
Creating Purchase Requisition/Order from a CRM Service Order
Hello,
My client is using CRM 4.0 with Service Industry add-on.
I am trying to kick out a purchase requisition from a service order, but does not go through.
The Service Order is released in CRM and an internal order does get created in R/3. The material that I am using is a service product (defined in R/3 and used in CRM) and I trying to procure External services.
All the requisite configuration in CRM and R/3 have been done.
I get an error message E06 436 (In case of account assignment, please enter account assignment data for Item).
Would appreciate any feedback in this regard.Hi,
I am working on the some scenario. Based on the limited documentation, it appears that you have to create a service master in R/3 that is than replicated to CRM (object SERVICE_MASTER). I did this, and this works. However, I am facing the issue that there is no sales data assigned to the service product in CRM, while you do need this (service order is not complete).
I hope that I will have an answer for this, and then I think that it should work.
The PO that is created in R/3 will contain an item with item category D and account assignment F (in our case, as we work with internal orders as account assignment object).
The receipt of the service provided will then be posted by means of a service entry sheet in R/3. -
How to assign status profile to components in service order
Hi,
For my business requirement, I want to assign status to individual components planned in the service order. Even though there is a status button on the component tab, there is no config where I can assign the status profile. We can only assign status profile to the order header and the operations and not to components level.
As SAP has provided the status button in the component tab, I am hoping that there is a way to assign the status to the parts planned.
Your help is much appreciated.
Regards,
Ram.hi all,
It will be helpful if you give any useful tips on maintaining status for the component level in the service order.
regards,
ram. -
Ship-to party to copy from contract to service order
Is there a way to copy the ship-to party from the contract (not from the customer master) to the service order when creating the service notification and service order with reference to the contract?
Hello Sylvia, Can you please tell me, how could you achieve the requirement of creating the service notification and service order with reference to the contract.
Has it been done by manually using any tcode or customization or it did involve technical coding ?
Please let me know the details of the process followed in any case.
Thanks in advance,
Vishnu Priya -
Req Assignment Tab page not coming for Service order
Hi All,
I am working on simple service order SM01 type scenario. where in i am entering the operation & time for the same.
Now when i am going in to operation detail screen . I am not able to find out the requirement assignment tab page.
Strangely when i am using same reference object & creating the Maintenance order PM01 & doing the same as above it is showing the req assignment tab page.
Regards,
AmarHi , I have found out the solution for the same.
I have found that the external scheduling flag is
set for order type SM01 in customizing. Since this is set, requirement
assignment tab will not be populated as this will be taken care
externally.
Remove the flag in below customising path.
Plant Maintenance and Customer Service--Maintenance and Service ProcessingMaintenance and Service Orders-Scheduling--External Scheduling--Define for Each Order Type
Once this flag is removed for order type SM01, this tab will appear
for service orders.
Regards,
Amar -
How can i retrieve Items and Dates from an specific Service Order in a Report?
Hi Partners,
i was debbuging a lot without a good solution,
My team develop a new report (SE38 Report) to list on the screen an specific Service Order (BTQSrvOrd) with their corresponding Items & Dates (BTHeaderDates)
Here is my code (Attached on Message), i reach the data of the service order but i need to get the children information for Items & Dates but i saw thar those 2 types are in a 4 lower level and it's a little difficult to access througt code.
Regards.Let me get this straight.....You lost your phone. You never backed it up, either to your computer or to a cloud service.
How in the world would you expect to get data back? -
Dump ,when i am assigning operation to multiple resource in service order
405 CLEAR <fs_***>-assignment_key.
406
407 CALL METHOD lref_mnt_res->assignment_maintain_ext
408 EXPORTING
409 iv_operation = gc_operation-insert
410 is_assignment = <fs_***>
411 iv_no_checks = true
412 IMPORTING
413 ev_failed = lv_failed.
414 IF lv_failed = true.
415 MESSAGE x000(/mrss/sge).
416 ENDIF.
417 CLEAR <fs_***>.
418 endif.
419 else."pre-demand assignment
420
421 *If dispatch flag is checked, status = Released.
422 *If dispatch flag is not checked, status = Assigned.
423 *Hence, status should not be hardcoded to I0880(released).
424 * <fs_***>-appl_status = 'I0880' .
425 CLEAR <fs_***>-assignment_key.
426
427 CALL METHOD lref_mnt_res->assignment_maintain_ext
428 EXPORTING
429 iv_operation = gc_operation-insert
430 is_assignment = <fs_***>
431 iv_no_checks = true
432 IMPORTING
433 ev_failed = lv_failed.
434 IF lv_failed = true.
>>>>> MESSAGE x000(/mrss/sge).
436 ENDIF.
437 CLEAR <fs_***>.
438
Dump is at line 435hi All,
User repeatedly getting this termination with a short dump error message when trying to change the time period of planning board of MRS. below is the dump details.please could you let me know the cause of this dump. user is using Tcode /MRSS/PLBOORGSRV when the dump occurred. is this report to do with changing the T Code.please advice
Termination occurred in the ABAP program "/MRSS/SAPLRSG_PM_ORDER" - in
"/MRSS/RSG_MAINTAIN_MRS".
The main program was "SAPLCOIH ".
In the source code you have the termination point in line 783
of the (Include) program "/MRSS/LRSG_PM_ORDERU04".
iv_concretize = lv_concretize
IMPORTING
ev_failed = lv_failed.
IF lv_failed = true.
MESSAGE x000(/mrss/sge).
ENDIF.
CLEAR ls_assignment.
ENDIF.
ELSE."pre-demand assignment
If dispatch flag is checked, status = Released.
If dispatch flag is not checked, status = Assigned.
Hence, status should not be hardcoded to I0880(released).
ls_assignment-appl_status = 'I0880' .
CLEAR ls_assignment-assignment_key.
CALL METHOD lref_mnt_res->assignment_maintain_ext
EXPORTING
iv_operation = gc_operation-insert
is_assignment = ls_assignment
iv_no_checks = true
iv_no_authority_check = iv_no_authority_check "This is set by the callin
IMPORTING
et_messages = lt_messages
ev_failed = lv_failed.
IF lv_failed = true.
>>>>>> MESSAGE x000(/mrss/sge).
ENDIF.
CLEAR ls_assignment.
ENDIF.
Corrections Note 908130.
During cancellation of TECO do't take the appl_status into consideration
because the standard function module returns the same assignment but
with status 'completed'.So avoid duplicate assignment.
IF lv_teco_exist = 'X'.
READ TABLE lt_***_old
TRANSPORTING NO FIELDS
WITH KEY demand_key_ext = ls_assignment-demand_key_ext
demand_logsys = ls_assignment-demand_logsys
resource_key = ls_assignment-resource_key
beg_tstmp = ls_assignment-beg_tstmp
Maybe you are looking for
-
Why Would The Logical Standby Lag?
Oracle 11.2.0.2 Linux RedHat 5.3+ Logical standby I have a logical standby that is lagging behind the primary a lot. The databases have the same amount of data...about 20 million rows. They have the same indexes. I am using SQL Apply. I know that the
-
HT201401 Iphone 3GS screen flashes and doesn't display
Hi there i have been given a Iphone 3gs 16Gb from a friend as they have upgraded to a nexus 4 and the screen connecter was damaged so i have now replaced the LCD with a new one now the screen flashes and doesn't show anything on the screen there is n
-
ITunes crashes each time I try to access Music Videos
I have downloaded (twice) the newest version of iTunes (7.2?) and have access to the music store, but each time I try to access the music videos, iTunes closes and also states that I do not have album artwork on my computer. I have run diagnostics (s
-
Hi support, I have a question regarding my sound card embedded on my notebook Pavilion DV6-2140el. Could you please give me more details about the technical specifications of the sound card? I would have also the model of the chipset. I am interested
-
HI I'm a legal alien allowed to work in USA and I've my W2 from my company for taxing purposes. I've built an iAd based app and want to publish them. I've paid my tax returns properly for the last 2 years without fail. Should I register myself a