Customer service order Form

Dear all ....
I have a problem with output the data of the fleet object (license num, chassis num ..... )found in the equipment master record to the service order form (PM_Common) with printing program (RIPRJT00).
I have make a Z copy from the form and i have made the following changes in order to have these data in the printout but till now i can't have these data , so please help me to find the reason ..
I have created a program with the following code..
REPORT ZZCS0002.
TABLES FLEET.
TABLES AFIH.
TABLES EQUI.
FORM Fleet_Data TABLES IN_TAB STRUCTURE ITCSY OUT_TAB STRUCTURE ITCSY.
DATA:
I_ORDER TYPE CAUFVD-AUFNR,
I_EQUIPMENT TYPE RIWO1-EQUNR,
I_OBJECT TYPE RIWO1-OBJNR,
I_CHASSISNUM TYPE FLEET-CHASSIS_NUM,
I_LICENSENUM TYPE FLEET-LICENSE_NUM.
READ TABLE IN_TAB WITH KEY 'CAUFVD-AUFNR'.
MOVE IN_TAB-VALUE TO I_ORDER.
READ TABLE IN_TAB WITH KEY 'RIWO1-EQUNR'.
MOVE IN_TAB-VALUE TO I_EQUIPMENT.
READ TABLE IN_TAB WITH KEY 'RIWO1-OBJNR'.
MOVE IN_TAB-VALUE TO I_OBJECT.
SELECT SINGLE FLEET~LICENSE_NUM
INTO I_LICENSENUM
FROM AFIH INNER JOIN EQUI ON EQUIEQUNR = AFIHEQUNR INNER JOIN FLEET ON FLEETOBJNR = EQUIOBJNR
WHERE AFIH~AUFNR = IN_TAB-VALUE
AND FLEET~OBJNR = IN_TAB-VALUE
AND EQUI~EQUNR = IN_TAB-VALUE.
READ TABLE OUT_TAB WITH KEY NAME = 'I_LICENSENUM'.
IF SY-SUBRC = 0.
OUT_TAB-VALUE = I_LICENSENUM.
MODIFY OUT_TAB INDEX SY-TABIX.
ENDIF.
IF I_LICENSENUM IS INITIAL.
I_LICENSENUM = 'NONE'.
ENDIF.
ENDFORM.
and i have made the following changes to the sapscript form ...
/:   PERFORM FLEET_DATA IN PROGRAM ZZCS0002
/:   USING &CAUFVD-AUFNR&
/:   USING &EQUI-EQUNR&
/:   USING &EQUI-OBJNR&
/:   CHANGING &I_LICENSENUM&
/:   ENDPERFORM
T2   CHASSIS NUMBER : &I_LICENSENUM&

Hi Adel.
Please use tthe following code
SELECT SINGLE FLEET~LICENSE_NUM
INTO I_LICENSENUM
FROM ( ( AFIH INNER JOIN EQUI ON EQUI~EQUNR = AFIH~EQUNR )
                      INNER JOIN FLEET ON FLEET~OBJNR = EQUI~OBJNR )
WHERE AFIH~AUFNR = I_ORDER
AND FLEET~OBJNR = I_OBJECT
AND EQUI~EQUNR =I_EQUIPMENT.
                       or if your where condition is according to your requiremnet means use below code.
SELECT SINGLE FLEET~LICENSE_NUM
INTO I_LICENSENUM
FROM ( ( AFIH INNER JOIN EQUI ON EQUI~EQUNR = AFIH~EQUNR )
                      INNER JOIN FLEET ON FLEET~OBJNR = EQUI~OBJNR )
WHERE AFIH~AUFNR = IN_TAB-VALUE
AND FLEET~OBJNR = IN_TAB-VALUE
AND EQUI~EQUNR = IN_TAB-VALUE
instead of your below code.
SELECT SINGLE FLEET~LICENSE_NUM
INTO I_LICENSENUM
FROM AFIH INNER JOIN EQUI ON EQUI~EQUNR = AFIH~EQUNR INNER JOIN FLEET ON FLEET~OBJNR = EQUI~OBJNR
WHERE AFIH~AUFNR = IN_TAB-VALUE
AND FLEET~OBJNR = IN_TAB-VALUE
AND EQUI~EQUNR = IN_TAB-VALUE.
plz reward points if helpful
Thanks,
Suma.

Similar Messages

  • Service Order Form - Customer Service

    Gurus,
    Is it possible with IW3D to send the Service Order Form to the customer via e-mail automatically from SAP?
    Thanks.
    Marco

    Hello,
    We ha a similar requirement, but it was not through IW3D. It was done through the service order user statuses. We have developed a FM to trigger a mail to the customer when the user saves the document in a particualr user status.
    It worked fine. If you want to use IW3D, then you need to chage the progam (shop paper) and include the mail triggering programs. Speak to your technical expert, he will guide you.
    Regards,
    SAM

  • Object Link to Customer Service Order

    I have setup the object link in DMS and was able to insert the Customer Service Order to a Document Number. However, I do not see the Document Number when I view a Customer Service Oder. What is the correct path to view the Document Number from a Customer Service Order?

    Hi Christoph,
    I have already maintained the screens for object link (AFKO). I created a new screen as well and therefore I was able to assign the Customer Service Order in transaction (CV01N/CV02N).
    However, when I go to the Customer Service Order (IW32 / IW33), I wasn't able to see the Doc Info Rec number.

  • Customer Service Order

    My client will soon be implementing customer service order and I need to know what are the FI and CO entires related to a creation of a CS order. ....
    eg... I know expenses and materials will be assigned to a cs order.... so will it hit the FI system or will they be managed in CO until the CS order is settled?
    how is WIP calculated for a CS order?
    Thanks

    Hi,
    When you issue goods to service order,
    The inventory gets Dr & Credit, at this time it is not hit to P&L account,
    Once if you make any invoice(Resource related billing), then revenue come, and after order settlement,the revenue which is genrated from this order  & whatever cost like labour cost & cost of components is hit to COPA,(It flow in P&L accounts),
    If you don't want to flow this  cost of goods used for order then
    IW32 (Change service order) >>> Component tab >>> Select component >>> click on genral data >>> Costing relevancy - Make it not relevent for costing.]
    Kapil

  • Tree structre on service order form

    Tree structre on service order form
    Hello...
    Is it possible to build tree structure on newScale service order forms? Please advise If anyone has developed it on a newscale form in past.
    Thanks,
    Mihir

    not sure what "tree structure"  you are refering to
    but if you are thinking of dynamically driven dropdowns, then yes you can do it in multiple number of ways
    1. Load a large JS array object and go thru it
    2. Same thing with XML
    3. run ISF to query some DB tables with the data
    4. Hard code multiple all the options in differnet fields and show/hide based on selection

  • IW32 - Service Order Form

    Hi guys I have a problem trx iw32 use a form to print a service order however the description order has only 40 character field  CAUFVD-TEXT in "description "   you can put a longer text but when you try to pass this to form only you can see the 40 chr . What can i do , How can I show a longer test.

    Hi,
    Maybe look at a standard print program such as RIPRJT00. The function READ_TEXT is used to read the long text for order header, operations, etc.
    You might also get more help in the [Enterprise Asset Management (EAM)|Enterprise Asset Management (SAP EAM); forum.
    -Paul

  • Customer service order subtabs

    Hi All
    I have configured in ECC6.0 the CS order types
    but I m not gettting the sub tabs under header Tab as customer address ,order address ,object address
    please address where I am wrong any confirguration is missing
    Regards
    pratap

    The standard practise will be to copy SAP standard order types SM01,SM02 or SM03 and then change the settings as required.
    Sarang

  • Customer service Order settlement

    Resource related billing.
    I created a Service Order. I finished all the steps from Create Order to Billing VF01.
    Next Service Order Settlement. I did not activate Profitability. I freezed the settlement profiles and allocation structure.
    I configured the settlement to Sales document item.
    I cannot settle the order. if I give Sales document also in settlement rule order is not accepting.
    Suggest.

    Error message.
    Maintain the settlement rule of the sender.
    I have maintained the settlement rule. I have assigned a settlement cost element  to receiver category as SDI.
    I got the error message when i do settlement.

  • Issue Related to CS { Customer Service order }..Revenue settlement in COPA

    A CS order was created with correct partner information, however with the revenue settlement in COPA, the correct partner profit center was not derived. The derived profit center is incorrect and can lead to incorrect data/figures.

    Dear amitha,
    Please check your work center.
    In work center you can find Cost center.
    In cost center(KS02) you can find Profit center. Change the right profit center here it will impact on your service order.
    Let me know if you need more clarity on this.
    Thanks & Regards
    Raj

  • Plant Maintenance / Customer Service Orders - Component Data

    I asked this question yesterday but was told to go and look at SAP Help. Which I had done anyway but i've looked again and I'm still confused. On our SAP ECC system we use PM/CS Orders. I can see that I can extract the data from these orders using the 2LIS_17 & 2LIS_18 (Cubes 0PM_C04 & OCS_C03) . However these dont show the linked component data it's pureley operation data. I can see there is a goods movement cube that shows goods movements but is there any standard PM/CS cube that show stock and nonstock components that are linked to operations?
    Thanks
    Joel

    Hi,
    Thanks for your suggestion.
    I've also already turned on the BC for inventory management and I can see the stock / non stock data there but i want to actually link it to the operation on the order. If the inventory management stuff si the only way to do it I guess we'll have to see if there is anyway of customising to get there.

  • 2 Service Orders created on save

    Experts,
    We are trying to create service order process type by directly using the logical link "SRV-ORD-CR" from the navigation bar of IC webclient. However its creating 2 orders on save. This happens only once per session.
    I have debugged through EH_ONSAVE for the overview view for the component BT116H_SRVO, and am unable to find the extra entity that is created during the save. This phenomenon also doesn't occur when the service order creation page is reached through the search screen by clicking the 'New' button.
    Please advise.
    Thanks,
    Ayeung

    Manfred,
    It seems like when the leading transaction type is changed, it automatically creates the transaction that is placed in that field.
    For example, if we use Transaction Type 0010, it creates a transaction record and a customer service order on save.
    Any suggestions on how to avoid creating two records/orders?
    Thanks,
    AYeung

  • Automatic Rule Determination Based on Service Order Type

    Hi Experts,
    I have a requirement to determine the rule based on the custom service order type.
    I have created 2 custom rules which are then assigned to 2 different org units as needed.
    Now the thing is i want to avoid putting condition step if else based on various order types.
    Is there any way by which i can directly determine which rule to be used by passing the Order type.
    If there is any FM then please suggest and also how to use the same.
    If no FM exists then is there a possibility of having only 1 if else condition and assign rule number in local container variables and pass it thought out the workflow to all the manual validation workitems. Please suggest how this can be achieved.
    Thanks,
    Jessica

    Hi,
    only 1 if else condition and assign rule number in local container variables and pass it
    thought out the workflow to all the manual validation workitems
    Create a workflow container element lets say with probably 15 characters length...
    Now create a background step in which you determine the rule based on the order type.
    data: lv_Rule(10) type c.
    if order_type eq 'X'.
      lv_Rule = '1234567890'.
    else.
       lv_Rule = '0123456789'.
    endif.
    " export the rule concatenated with 'AC' which indicates a rule...
    concatenate 'AC' lv_rule into ev_rule. "ev_rule size may be lets say 15 characters.
    condense ev_Rule.
    "export the EV_RULE to workflow and store it in WF cotainer element.
    In the step where you want to give the rule, select the Agent type as Expression and select the container element.
    Hope this would solve your issue.
    Regards
    Narin

  • Problem with Purchase Order Form - SAPscript

    I have a custom purchase order form (Z_MEDRUCK) created using SAPscript. The address paragraph looks like this:
    ADDRESS PARAGRAPH AS
       TITLE        &LFA1-ANRED&
       NAME         &LFA1-NAME1&, &LFA1-NAME2&
       STREET       &LFA1-STRAS&
       LOCATION     &STR_SUPPL1&
       POBOX        &LFA1-PFACH& CODE &LFA1-PSTL2&
       CITY         &LFA1-ORT01&, &LFA1-ORT02&
       POSTCODE     &LFA1-PSTLZ&
       COUNTRY      &LFA1-LAND1&
       REGION       &LFA1-REGIO&
       FROMCOUNTRY  &T001-LAND1&
    ENDADDRESS
    When the Purchase Order Form is printed, if a POBOX exists, it is used instead of the STREET.  I did not write the SAPscript or any code involved with it.  I would like the POBOX to only be used if a STREET does not exist. 
    Where would the logic to use POBOX exist?  I have stepped through ME_PRINT_PO and have found nothing. Any ideas?
    Thank You.

    After the word ADDRESS, add DELIVERY.  This should make a physical street address take priority.
    ADDRESS DELIVERY PARAGRAPH AS

  • Mainataince/Service Order possible in SRM 7.0 SUS ?

    Hi Experts ,
    We have SRM7.0 and We have requierment  to access the Mainataince/Service Order  by Supplier in SUS. I am sure that is not a part of Std SUS functinality Order Collaboration in Std SUS system
    Can anyone please confirm me wheter any how it is possible ?  If yes , how ?
    Thanks in advance
    NAP

    Hi,
    Maintenance Order/Customer Service Order are not setup in XI scenario.
    PO/Conf/Invoice etc are setup in XI scenario so that you get(see) those(MM) documents in SUS.
    Now if you can tweak XI scenario you can get those documents in SUS.
    P.S. All documents from MM generates IDoc. I think you should look for IDocs in MM so that you can setup XI scenario accordingly.
    I hope it resolves your doubt.
    Regards,
    yaniVy
    reward if helps

  • The customers and orders form modules

    Please,i am new to oracle forms.I have been reading a book on forms ,but the book uses two form modules created by Oracle for demo purposes, the Customer and Orders form modules.I need to access and open these form modules from my form builder.I have not been able to figure out how to do that.Please how can i open the customers and orders module from form builder.
    I will appreciate any help.

    Assuming you have the .FMB files stored on your hard drive, you can simply double-click on them or use File -> Open in Forms Builder.

Maybe you are looking for

  • HT1947 Can I use the remote app on my ipad to operate my iPhone?

    As the title reads really, if the answer is yes, how? I have the app, I have home sharing switched on, and I can control my lap top with my ipad but I can't find a way of operating the iPhone. Cheers Oaf

  • Olympus E-3 and Photoshop CS2 .ORF Raw Files

    I've recently purchased an Olympus E-3 (previously owned E-330). I use CS2 and Windows XP Media. I am new to shooting RAW images and just got back from a trip where I shot RAW (.ORF) images. I updated my DNG converter and Camera Raw to 3.7 (as that i

  • What is the size of ios6 update on iPad

    I started updating my iPad(3rd Generation), for about 1 hour it was displaying the message"estimating time remaining"...So I decided to update my iPad via itunes..The difference I noticed in size was that on iPad it showed 791 MB and via itunes it sh

  • Uploaded  image not shown

    hello experts, I have been done a web java application in struts. Its working fine in my pc, where i have netbeans 6.0 IDE. But when i deployed the war file at client pc, where jdk1.5 and tomcat 5.5.9 are installed, its not showing newly uploaded ima

  • To switch between map layers

    Hello, I have several layers at my map and would like to switch some of them if necessary. This is because sometimes the objects overlap each other and total picture doesnt look impressive Can somebody give me the necessary code? I found one on this