CRM_ORDER_MAINTAIN for Appointment Item Level

Hi All,
I am currently trying to insert a date into DATE TYPE(APPT_TYPE) in Item Level. There are no errors in the code but the transaction is not updated.The dates are not shown in that particular document. Can somebody help me out ? Thanx a lot...
MOVE: gw_service_item_guid_ubb TO gw_appointment-
ref_guid,
'B' TO gw_appointment ref_kind,
'CONTDISMAN' TO gw_appointment-appt_type,
'20060901220000' TO gw_appointment-timestamp_from,
'20060901220000' TO gw_appointment-timestamp_to,
'CET' TO gw_appointment-timezone_from,
'CET' TO gw_appointment-timezone_to,
'B' TO gw_appointment-mode.
APPEND gw_appointment TO gt_appointment_ubb.
gw_fname-fieldname = 'APPT_TYPE'.
gw_fname-changeable = 'X'.
insert gw_fname into table gt_fname.
gw_fname-fieldname = 'TIMESTAMP_FROM'.
gw_fname-changeable = 'X'.
INSERT gw_fname INTO TABLE gt_fname.
gw_fname-fieldname = 'TIMESTAMP_TO'.
gw_fname-changeable = 'X'.
INSERT gw_fname INTO TABLE gt_fname.
gw_fname-fieldname = 'TIMEZONE_FROM'.
gw_fname-changeable = 'X'.
INSERT gw_fname INTO TABLE gt_fname.
gw_fname-fieldname = 'TIMEZONE_TO'.
gw_fname-changeable = 'X'.
INSERT gw_fname INTO TABLE gt_fname.
gw_input-ref_guid = gw_service_item_guid_ubb.
gw_input-ref_kind = 'B'.
gw_input-objectname = 'APPOINTMENT'.
gw_input-logical_key = '0000'.
gw_input-ref_handle = '0000000000'.
gw_input-field_names = gt_fname.
APPEND gw_input TO gt_input_fields.
gw_item-guid = gw_service_item_guid_ubb.
gw_item-header = '39CF8B702B8B334F90AF4B23CA991925'.
gw_item-ITM_TYPE = gw_orderadm_i_ubb-itm_type.
gw_item-mode = 'B'.
APPEND gw_item TO gt_item.
CALL FUNCTION 'DIALOG_SET_NO_DIALOG'.
CALL FUNCTION 'CRM_ORDER_INITIALIZE'
EXPORTING
iv_initialize_whole_buffer = true
EXCEPTIONS
OTHERS = 2.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_appointment = gt_appointment_ubb
it_status = gt_status_maint
CHANGING
CT_ORDERADM_I = gt_item
ct_input_fields = gt_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
CALL FUNCTION 'DIALOG_SET_WITH_DIALOG'.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = gt_obj_guids
IMPORTING
et_saved_objects = gt_saved_objects
et_objects_not_saved = gt_objects_not_saved
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
IF sy-subrc EQ 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
COMMIT WORK.
Useful help will be awarded. : )

Hi Michael,
You can debug in a following way to check if all the values are passed.
Sometimes, while using CRM_ORDER_MAINTAIN', we need to pass values in some other tables as well,
Put a debugger in CRM_ORDER_MAINTAIN. create the custom opportunity in crmd_order transaction and enter the value in the required place in GUI. Now check for all the tables present in CRM_ORDER_MAINTAIN. in the debug mode, u can seee all the tables when u ll click on the locals tab in the parameter window. Map all the tables with your code and make changes.
Hope this helps!!!
Prerna

Similar Messages

  • Search help for Custom Item level field

    Hi All,
    I have two custom fields at Item level. Both of them has fixed values defined at domain. The fixed values have a short text also given with them.
    The problem I am facing is when SRM provides default search help for these custom fields, for first field the 'Value' and 'Description' comes in the search result screen, but for second, only 'Value' comes in the search result.
    When I try to debug, it shows the SHLPTYPE as 'SH' for first one and for the second as 'FV'.
    What does this indicate?
    My requirement is to display both value and description in the search result screen.
    Please suggest.
    Thanks
    Nandalal

    Hi
    Sorry for the delay. My User got locked for some time.
    I have seen the document you sent me on my email id.
    <b> I noticed in the case where the Search help is working fine, there is no space in between the contents of the Fixed values and their short text under the value range tab of the Domain element.
    But in the case, where there is a problem with the search help. There both the Fixed values and their short description is having a space in between the words.
    Try maintaining COND_A instead of "COND A". Also with the short description use "COND_A" instead of "COND A".</b>
    <u>I hope this will resolve the issue.</u>
    <b>Update me once you have any issues.</b>
    Please reward suitable points, incase it suits your requirements.
    Regards
    - Atul

  • Workflow for Changing Item Level Permission in SharePoint 2013 (Office365)

    I am using OOTB Tasks List in SharePoint 2013 (O365). Now my scenario is like this:
    I have two user groups: 1.Sales Managers 2. Sales Executives
    Sales Managers can create & assign task to Executive.  I want something like Sales Managers Can view all tasks (Which is by default view of tasks list i.e. perfact) but Executives can see only their tasks assigned to them. How can I achive this?
    Can I use WorkFlow for this to Change item level permission or to assign permission to assigned to user? or JS
    Can anyone have proper solution? thanks

    1. make 2 SharePoint group 1>Sales Managers 2>Sales Executives
    2. Show 2 WP of same task list in same page.
    3. Use Audience Target for Sales Managers Sharepoint group in first Webpart property. (All
    Iten view)
    4. Show "My Task" view (assign to =[Me]) Bottom WP for same task list and use Audience Target for Sales Executives. Or if you want it to see
    Sales Managers as well, the dont use any Audience Target.
    Bottom line - SharePoint group use in Audience Target will do the trick. OOTB
    Regards Sudip Misra [email protected] +1-412-237-5435 Pittsburgh, PA

  • Table Control Variant For ME21N - Item level - account assignment tab.

    Dear All,
    I want to change Table Control Screen that is in Me21n(Service PO)>Item level> Account Assignment  tab -> Table control.
    In that table control i want to add one column Name is OrderNo(AUFNR) ,but system is not changing the table control.
    When i m going to change table control scrren in ---> Condition tab its working fine but not for above case.
    Please guide me to solve this issue.
    Regards,
    Sanket.

    Please provide the solution.
    Regards,
    Sanket.

  • Message Mapping for multiple item levels

    Hi,
    My query is regarding message mapping
    Example of source data structure & Target data structure
    Source data Structure
    <item>
          --<no>1</no>
          --<address/>
          --<ITEMS>
            ----<item>
              ------<Name>a</Name>
            ----<item>
              ------<Name>b</Name>
    <item>
          --<no>2</no>
          --<address/>
          --<ITEMS>
            ----<item>
              ------<Name>c</Name>
            ----<item>
              ------<Name>d</Name>
    Expected  Target data structure
    <Item>
      -- <no>1</no>
      -- <name>a</name>
    <Item>
      -- <no>1</no>
      -- <name>b</name>
    <Item>
      -- <no>2</no>
      -- <name>c</name>
    <Item>
      -- <no>2</no>
      -- <name>d</name>
    How I can map the '<no>' field to target '<no>' field to repeat value until to second sub item level occurance complete ?
    Thank you
    Sateesh

    Hi Sateesh,
    Please see the solution below.
    The are 2 contect changes you need to do on field level. Right click and go to context and select your context you need.
    Context on ITEMS - Should be on Root Structure(In my mapping it is MT_Multiple_Item_Level_Source)
    Context on Name - Should be on Item (The first Item Tag)
    Good Luck.
    Regards,
    Jannus Botha

  • Release strategy determination for PO item level characteristic value

    Hi Experts
    I have user material group as release characterstic for PO.
    I have created two line items with two different material groups.
    How the release strategy determination occurs when the two different material groups are linked to two different strategies?
    regards
    ramSiva

    Hi,
    in this case system is NOT able to find the release startegy.
    Please take care of the following explanation (see note 365604)
    o  For OVERALL RELEASE (purchase order and purchase requisition) the
       item fields such as Plant and Material Group will be aggregated
       to header level.
       For example you use Plant/material group
    as one of your characteristics. If all
    items do not belong to the same plant/material group
    then
    *******the relase strategy will not be found***********
    unless you have maintained a blank value as one
    of your allowed values for the characteristic Plant/material group
    . If all items
    belong to the same plant7material group
    then that plant is aggregated to the
    header; if one or more is different then a blank is aggregated to
    the header.
    If you use an overall release strategy all
    characteristics which you have defined in the customizing (CEKKO-MATKL
    must have the same value. If one item has material class x and the
    other y the system does not know with which material class it should
    look for a release strategy. Now the system sets the material class
    to 'blank' and tries to find a release strategy. If you do not have
    defined a blank entry in the customizing (Transaction: OMGS
    : OLME >release procedure for PO > rel. strategy ) the
    system won't find a release strategy.
    you need
    to add a blank value to your allowed characteristic values in your
    release strategy.  To do this you can define a blank value in your
    characteristic (CT04).  On the values screen leave the char.value
    blank and add a description and save.  Now in OMGS you can select
    this value as an allowed value for the characteristic.
    (Example:
    To avoid this you can do the following:
    - go into transaction CT04
    - enter the characteristic 'CEKKO-MATKL'
    - click on the tab 'values'
    - set a flag in 'additional values'
    - in the column 'Char. value' do not enter anything
    - in the column 'Description' enter a text like 'no material class'
    - save this setting
    Now
    - go into transaction OMGS -> button 'release strategy'
    -> button 'classification'
    - double click on CEKKO-MATKL' and set a flag in 'no material class' )
    Please also have a look into the attached note 365604 point  2d).
    BR
    Nadia Orlandi

  • Report Performance for GL item level report.

    Hi All,
    I have a requirements to get GL line items
    report based on GL Line items so have created data model like 0FI_GL_4->DSO-> cube and tested everything is fine but when execute in production the report performance is very bad.
    Report contains document number, GL act, comp.code, posting date objects.
    I have decided to do as follows to improve reporting performance
    ·         Create Aggregate on Document, GL characteristic
    ·         Compression.
    Can I do aggregates 1st then do the compression.
    Please let me know if I missing out anything.
    Regards,
    Naani.

    Hi Naani,
    First fill the Aggrigates then do Compression,run SAP_INFOCUBE_DESIGN Check the size of Dimension maintain Line item, High cordinality to the dimension, Set Cahe for query in RSRT,
    Try to reduce Novigational Attr in report. Below document may help you.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6071ed5f-1057-2e10-deb6-d3426fec0219?QuickLink=index&…
    Regards,
    Jagadeesh

  • User Exit for Updating Delivery Plant at Item Level in Sales Order

    Hello Experts
    There is a requirement to determine the delivery plant for each item level and than update the items with newly determined plant.  There is a user exit MV45AFZZ routine FORM USEREXIT_MOVE_FIELD_TO_VBAP. to update the item level entries in Sales Order in VA01 or VA02. Is this the right place to do this?, if yes , do i need to perform any other standard logic (like re determine Shipping points , schedule lines ) for newly determined plant? If not , can you please suggest any other place , BADI or user exit to change the delivery plant of sales order.
    Thanks a lot....
    -Harkamal

    Best place is MV45AFZZ-USEREXIT_SAVE_DOCUMENT_PREPARE. Populates the values just before saving the document. You can have your own deriving logic. Make sure that peice of code is trigger only for Sales Order create or change (VA01/VA02).
    Are you kidding???  You do realize that this is AFTER all validations against configuration, ATP, pricing, etc. have been performed??!!!  Never, ever change a critical value like plant in the SAVE user exits...

  • Block the Material at Item level in Sales Order automatically for delivery

    Hi!
    My business scenario needs a material to be Ckecked for Inspection after raising the Sales Order by thirdparty person. So, I need to block that particular material at Item level automatically for delivery and rest of the line items can get delivered. I can do this by selecting the reason for Block at Item level manually, but I want the system to get detemine this block. And one more thing is that there is NO Quality Management module for this. So, let me know what I need to configure for this effect.   Thank you.....

    hi,
    pl check the user exit " userexit_save_document_prepare" or "userexit_save_document".
    Take the help of your abaper to see if the logic written here can affect the item level block in the sales order for inspection. Create new reason for the item level block and have it triggered with this exit. Instead of hard coding which might require regular intervention of abaper for code changes for the business to be able to manage it, maintain a master data in the material master against some field with a key.
    now use that key to identify if these materials require to be blocked at the sales order level for inspection. To release this item again the user has to go in VA02 mode to release the block. Let this be done after the inspection of that material.
    regards
    sadhu kishore

  • Enable change logs for item level of Sales Document

    Hi,
    On transaction VA02, additional screen field (Booking Date) is added (& consequently 2 appends with date field in the tables VBAK & VBAP).
    When this date is changed in the header, the corresponding dates are changed in the item level as well.
    However, the change documents are created only for table VBAK (though item data is updated in VBAP also).
    When the date is changed at the item level, the change logs are created for the corresponding field in table VBAP.
    The data element has 'Change Document' checked.
    How can I activate the change to be logged for the item level (VBAP), when the date is changed at header level (VBAK)?

    Hi Nidhi,
    Maybe set a breakpoint in include MV45AF0C_CHANGE_DOCUMENT_CREAT
    Then check in UPDATE debug mode the value of upd_vbap and the contents of xvbap which are passed on to function VERKBELEG_WRITE_DOCUMENT .
    This function creates the change documents based on the data changes.
    I would have thought that since the date values are changed at item level as well when you only change it at the header, they should get a change document created automatically, since the dates must be in the XVBAP table (as their value is changed at the DB).
    So I would compare the various internal tables for both scenarios (header change,  item change) to determine their differences.
    After this use one of the user-exits to populate the internal tables for the header scenario based on the values of the item scenario. I would feel this to be a last resort though, since something appears not to be working correctly (I think).
    Hope this makes sense,
    Robert

  • ALV Display for Item & Sub-Item Level

    Hi Experts,
    i am developing one report and i want the display it in ALV as shown below.
    Item Level:
    Tax Jurisdiction    state     current balance       prior balance
    3900000               LA           10000                    15000
    Sub-Item Level:
    Jurisdiction Cd.   Posting Date       Type   Doc. no.    Amount
    3902948101        05/03/2008       AR      139          30,998.00
    3902948102        05/06/2008       AR      176         -56,987.00
    3902948123        05/11/2008                  178         -20,987.50
    3902948190        05/20/2008         AP      189          76,000.00
    3902948108        05/22/2008       GL       192          45,060.50
              Account Total                        74,164.00
    How can i achieve this for displaying Item Level And Sub-Item Level.
    Thanks & Regards,
    Ramana.

    hi,
    Plz refer this link for displaying hierarchical list in ALV.
    http://voiceofabap.blogspot.com/2008/05/how-to-use-alv-for-hierarchical-lists.html
    regards
    Sumit Agarwal

  • PR workflow for item level release (stock and non-stock)

    Hello gurus,
    I am not getting the agents.!!
    I am creating a workflow for pr( item level release)..and using standard wf WS00000038 for this, as the standard wf contains the simple release procedure  only but i have to add some custom steps to it, so i have copied this wf as custom wf .
    In this wf i have to fetch the agents based on the "stock" and "non-stock items".
    so i have maintained strategies and release code like:
    i have maintained two strategies W1(non-stock) and W2(stock)..and release code for W1 are P1 and P2..here P1 i have given for my first level of approval and P2 for second level of approval.
    The release code for W2 are P3 and P2..first level is P3 and second is P2.
    so what i have did in a workflow , started with a condition step where i have given "releasecode = p1".. if yes than than it will go for getting approval from p1 , in this activity i am using  standard rule 157.
    The main thing is  1). i am not getting how to fetch agents using standard rule. 2)and how and where to define next level of approval for both stock and non-stock.
    means by using condition step in the starting i am dividing workflow in two parts stock and non stock but how to proceed next.
    i am really confused. should i use rules or write my own methods. please if anybody has gone through the same scenario than please suggest some points. i will really appreciate the help.
    Kind Regards.
    Himanshu

    Hello HIM Joshi !
                       Include the task TS00007986 and all its branches and  in a loop and loop around it for two times.When the loop goes for the first time, it should pick the first agent and during its second iteration, it should pick the second agent.
                       To accomplish so, In the same loop, but before the above task , include a background task which should populate the agent ids depending on stock and non-stock details and pass it to the the task  TS00007986
                       That's all.
    Regards,
    S.Suresh

  • Line Item Level Approval For SC-SRM7.02-WS14500015

    Hi Expert,
    I am using workflow template WS14500015 for line item level approval.i have few doubts on this
    i am using cost center based approval, so if the 1st line item is approved will it generate a PO or will it wait for the entire shopping cart to be approved.

    Hi Mano,
    Are you using application controlled workflow or process controlled workflow?
    For process controlled workflow you can refer to the SRM 7.0 Workflow guide:
    https://websmp108.sap-ag.de/instguides > sap business suite and applications> SRM 7.0 > Workflow Guide - SAP SRM 7.0 and Configuration guide.
    Page 16, Approval Processes in SAP SRM; you will understand possibilities of SRM 7.0 process controlled workflow and then decide which one you need.
    Also refer to 7 Appendix B: Approver Determination Strategies in the Standard
    This has few example classes/BADI implementation for agent determination which you can refer to.
    Regards,
    Ashish

  • Line Item level Approval for Shopping cart

    Hi Expert,
    I am using workflow template WS14500015 for line item level approval.i have few doubts on this
    i am using cost center based approval, so if the 1st line item is approved will it generate a PO or will it wait for all the line items approval.

    Hi Mano,
    if you use approval. It will be approved by steps. Next step will not be started until previous completely done. In your case 1st Item should wait until all other items processed.
    Regards
    Konstantin

  • In report painter report, line item level drilldown report requirment

    Dear All,
    I created one report in GRR1, when I execute the report i am not getting line item wise drilldown option. For example one cost center no of line itemwise posting ( g/ls wise)posting is there. By double clicking on that specific line item we will go that ledger and see the data available in that ledger.In standard reports that option available but my own reports I unable to go drilldown at ledger level cost reports.
    Please sugget anyone, where I am doing mistake in report creation level.
    Thanks
    M Srinivasa reddy
    Ph : 9637399076

    Thank you,
    I attached reports to Library based on that I am able to drilldown line item level of the report.Is it corret or any other way for line item level drilldown option for report painter reports
    Thanks
    M Srinivasa reddy

Maybe you are looking for

  • Change the value of a field in a form when the form is displayed

    Hello I have a report which has a link to a form for updating the records. I have used a link to the form from report which displays the the record to be updated i.e it gets default values from the report. I need to change one of these values at the

  • Financial statement version download/upload

    Hi all, I have the following question concering the financial statement version: I want to bulid up structures and data from one SAP system in another SAP system. Therefore I also like to create the same financial stetement version. Is there a chance

  • Trying To Upgrade Phone - Getting Error Message When I Try To Upgrade to Incredible

    I'm trying to upgrade to the incredible on the web site and it comes back with an error message. I tried all other phones and I could select them fine. Thoughts?

  • Help disabling function keys

    I need help disabling my fn key, i game a lot and i like using my f keys without holding this down, and i cant access the BIOS menu by turning off laptop already tried that and tried turning off hybrid restart to access it and still didnt work, help

  • Yosemite made my MacBook Pro 17" so slow. Need help.

    Just updated and installed Yosemite to my MBP 17" and its gone on a major go slow... keep shrinking about things, loading apps slow etc almost unworkable when I'm a graphic designer and use this daily to earn my income!! is there anything i can do to