FM to create and update SCD vi01

Hi,
I am trying to create Shipment cost document (vi01) using the standard function modules. I followed this forum and could able to create vi01 using below stepsin sequence..
SD_SCD_REFOBJ_READ
SD_SCD_INITIALIZESD_SCD_ITEMS_CREATE
SD_SCD_ITEM_PRICING_COMPLETE
SD_SCD_ITEM_AMOUNT_ADJUST
SD_SCD_ITEM_CHANGE
SD_SCD_CHANGE
SD_SCDS_CHECK_COMPLETE
SD_SCDS_SAVE
SD_SCD_TYPE_DETERMINE
However, using the shipment number I need to update the Condition tab in T.code: vi01 with Pricing data, populating Condition types and values, calculate them and display the Net value, then save and transfer the Cost document. Can anyone suggest me, how can i achieve this?
even thought the used the following fn modules and passed l the values are not fetched from
SD_SCD_ITEM_PRICING_COMPLETE,
SD_SCD_ITEM_AMOUNT_ADJUST
SD_SCD_ITEM_CHANGE
i tried these tables
komv-kschl = Condition Type
komv-kawrt = condition base value
komv-kbetr = rate
komv-waers = currency key
konv-knumv = doc condition
Can anyone help me?

Hello Sirisha Kotnana
Check the below link :-
[BAPI or FM to create SCD (VI01)|BAPI or FM to create SCD (VI01)]
This answered.
In addition to your question You need to get the current data before updating the conditions using SD_SCD_ITEM_AMOUNT_ADJUST.
First get the current data and then find out / Investigate what needs to passed to the FM SD_SCD_ITEM_AMOUNT_ADJUST.
This will solve your problem.
Thanks,
Greetson

Similar Messages

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • BAPI to create and update scheduling agreement (type LZM) in ECC

    Hi,
    We have a requirement to create and update scheduling agreement of type LZM in ECC from an external system.
    Is there a BAPI available for this in ECC 6.0 which can be used?
    The integration is using PI.
    Regards,
    Srivatsan

    Hello,
    Please use the T-code "SE93" and then click on Display option after entering the T-code. After entering into the detail screen of the T-code, you shall find option to click on OBJECT LIST and then enter into the Function Group. Now enter the T-code and then click on function module and a list of function module will be displayed in referrence to the T-code. 
    For your easy reference i have also mentioned the flow.
    SE93 --> Use tcode (eg. VA01) > display> Object list ---> Function Groups --> Tcode ---> Function module.
    Regards,
    Sarthak

  • Default value in LOV field in Create and Update page in OAF

    Hi All,
    I am unable to default LOV field in Create and Update page in OAF.
    I tried in below way :
    OAMessageLovInputBean lovBean1 = (OAMessageLovInputBean)webBean.findChildRecursive("AAA");
    But I am getting developer mode exception, so please guide me how i can set the default value for create and update page instead of using code in process request method in controller.
    Thanks

    Hi,
    1) In case of create, you can default the value either in EOImpl or in AM while initializing the row:
    //in EOImpl
    public void create(AttributeList attributeList)
    super.create(attributeList);
    setXXAttribute(<value>);
    //in AM, VO new row initialization :-
    VOImpl VO = getVO1();
    VO.setMaxFetchSize(0);
    VORowImpl row = (VORowImpl)VO.createRow();
    row.setXXAttribute(<value>);
    VO.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    2) In case of update, execute the VO (also set the where clause if required) in PR method of update page.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem in creating and updating of  material by the use of bapi and bdc

    Hello All,
    I am using bapi (BAPI_MATERIAL_SAVEDATA ) and than bdc to create and update classification data of material.
    I am facing a problem.
    1) firstly I am creating material by the use of bapi and than after creation i want to update classification data for taht perticular material .
    2) To update classification data i am using bdc . while at the time of updating material through bdc system showing me error that material is currently locked by user (my login name ).
    Please suggest what to do.
    Tkank you
    With Regards
    Shantanu Modi

    When u update/create data it takes sometime to commit. So after using BAPI
    give 10 minutes wait in ur program before updating classification data.
    you can write like
    wait up to 20 seconds.
    and update the classification.

  • Creating and updating cross-references in a book

    Hello everybody,
    I created a book of several files. Now I would like to create and update cross-references from one chapter to another. What do I have to do? (I use Framemaker 8).
    Thank you for your help.
    Bye
    Vreni

    For creating cross-references between chapters, open the chapter documents and insert cross-references as is done for any normal document using menu command "Special->Cross-Reference".
    For updating all cross-references throughout the book, you can use the menu command "Edit->Update Book".
    Regards,
    Tarun Garg
    Adobe Certified Expert, FrameMaker
    http://blogs.adobe.com/techcomm/framemaker/

  • TCA API's to create and update employee vendors

    Hi All,
    We are doing an upgrade from 11.5.9 to R12 and I am looking for the Trading Community Architecture API's to create and update employee vendors for the HR Interface.
    We also need to change to use the Cash Management API's to create and Update Bank Accounts.
    Please help.
    Thanks in advance
    Regards,
    Sonia

    Hi Srini,
    Can you help me with the API's under Financials Receivables suite -> Trading Community in the Intergration Repository responsibilty? I am looking for the API's to create and update employee vendors
    Thanks so much
    --Sonia                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • DEBMAS IDOC for CREATE and UPDATE

    How do i use DEBMAS IDOC dynamically for create and update customer information.
    I have a file as source which would have combination of information for new and change customer information. and there is a field in the file with t code xd01(create) and xd02(update).
    Please advise.
    -Vasu

    Hi,
    The field MSGFN is the one which decide the operation.
    Please pass the values accordingly to indicate the Create/Update.
    In inbound IDOC case ,process code will check MSGFN and do the action.
    Regards,
    Akshay.

  • LDAPSYNC Reconn Job: LDAP User Create and Update Reconciliation

    OIM 11.1.1.5.4 (BP4) libOVD, trusted data source oid 11.1.1.5.0
    I have the reconn job working " LDAP User Create and Update FULL Reconciliation"
    But the incremental job not working "LDAP User Create and Update Reconciliation"
    No errors found in the oim server logs
    the msg found with the indication of the execution of the job.
    Has anyone been successful with the job "LDAP User Create and Update Reconciliation"
    [2012-10-21T08:09:03.922-04:00] [oim_server1] [NOTIFICATION] [IAM-1020005] [oracle.iam.scheduler.impl.quartz] [tid: OIMQuartzScheduler_Worker-2] [userId: oiminternal] [ecid: 0000Je3Cacy3n3WjLxuHOA1GWyFa000002,0] [APP: oim#11.1.1.3.0] Job Listener, Job was executed QuartzJobListener.jobWasExecuted Description null FullName DEFAULT.LDAP User Create and Update Reconciliation Name LDAP User Create and Update Reconciliation
    TIA
    gadba

    has any one had that worked, for the incremental job of ldapsync recon ?

  • Help with drop create and update table

    Sir/Madam,
    I have joined 5 tables and selected some columns ,then I need to update some columns in that. After updating I need to create a report with the new column values.
    To do this my method is to create temp table with the select statement then update the temp table , use this temp table for the report and then drop the temp table.
    Is there anyother way to do this ??
    Can I create a cursor and update the cursor column ??
    Does dynamic sql always be created as procedure ??

    Hi,
    you need to understand how eventing works in BSP and MVC architecture. Pls refer to the below link for a basic understanding of how BSP works - View, Controller and Model class concepts.
    http://www.sapdev.co.uk/webapps/bsp/washome.htm
    For your requirement -
    1. you need a view on which you will create a drop down list UI element and a table view element
    2. you will need to create a contoller class - this will be used to handle the event that will be triggered   when user selects an entry from drop down list
    3. you will need a model class in which you will write the business logic to retrieve employees of selected department.
    Pls search this forum or blogs for - data binding with BSPs, Table View. Pls read these concepts and try to develop your requirement. You can come back to this forum if you face any issues during development.
    hope this helps.

  • Role Create and Update Workflow

    I'm trying to use the ROLE FORM in a developed role management process to create or update roles. Although all my standard role fields come up, we're running in to several issues:
    1. the form doesn't list the new resources in the formtable (showing resource name, type, button) after adding or removing new resources and the form refreshing, and
    2. clicking the set attribute buttons does nothing but cause a form refresh, the next page is never displayed.
    Has anyone else run into this or know what may be causing the issue?

    No, for several reasons. We're on version 7, and we have some other issues we have to work around. Thanks for the suggestion though.

  • BAPI for COSS and COSP Table to Create and Update

    Hi,
    Is there a BAPI for COSS and COSP for creating and/or updating these tables?
    Thanks

    hi ,
    u dont have any bapis for updatign specific tables
    bapis are generally used for updating a transaction i mean number of tables
    where is the use of the tables u can search bapis in transaction bapi
    and where are the tables used i guess in fi/co so u can search under them
    regards
    afzal

  • Creaing sub Threads to create and Update UI to minimise delay

    Can somebody guide me How to create sub Threads ( optional automatically ) to create and show a big jframe .so as to minimise delay in starting and opening a jframe.
    Thanks
    sushil

    I believe the SwingSet demo that comes with the JDK is designed like this:
    directory: j2sdk1.4.2\demo\jfc\SwingSet2
    execute: ava -jar SwingSet2.jar

  • Creating and updating table in JSP Through ADD and SAVE button

    how do I create a table in JSP which has certain number of columns and rows. I have a button called "ADD", which when clicked should add the data I entered. How do I update and save the same?, if there are buttons called "SAVE" and "DELETE".

    Do u want to add it to the database or just in the JSP Cache???
    I think if you want to add to DB, take the subject offline.
    My Mail id is [email protected]

  • Question about creating and updating new columns in a table

    Hi, I have a couple of questions that would love some answers to
    Please bear in min that questions relate to datawarehouse / Just large tables with say about 50 million records
    1) How do you create new columns in a big table
    2) how do you update the new columns
    3) would you create an index on a column in a table with 200m rows when the only two possible values are stored in the column (e.g.Y, N) - give your resason
    my aswers to these would be
    1) simple alter table ...
    2) simple update statements
    3) No need to create an index
    I might be wrong on these in the context of datawarehouse
    cheers
    css_jay99

    If the number of Y vs. N is about 50/50, you only have to parse through 50% of the
    overall amount of columns.Fnord. If the ratio of Y to N was 1:20 then the index would be useful for searching for values of Y only. Or if the column is nullable and the bulk of the entries were null then it might be useful. But a 50/50 split? FTS is much more effective.
    So, it does depend on the data distribution, but in most cases such an index would never be used (or should never be used).
    Cheers, APC

Maybe you are looking for

  • Several single value selection in InfoPackage Data selection using Routine

    Hi, I am trying to extract data from a table(containing Ticket data) in R/3 using Generic extractor with table. As the table is not supporting the delta functionality i have to do daily full load for more than 5 lak records. I dont want all the ticke

  • Random selectionFailure errors at runtime - SOA 11g

    Hi All I am getting random selectionFailure errors at runtime. I have developed a bpel process and when I try to run this, at runtime I get below error randomly at assign activity. Non Recoverable System Fault : <bpelFault><faultType> <message>0</mes

  • BC Sets

    Hi Guru's, Can anyone explain me what is the use of BC sets. and if possible please send the configuration documentation on BC sets to my mail id [removed by moderator]. Thanks and Regards, Deepa

  • 10.9 update, how about bootcamp?

    I beleive that this topic is already well discussed, but I cannot find it. Please help. I have MBP5,1 and it has 10.8.5. I'd like to update it to 10.9, but how about bootcamp valume? I have so many Windows apps. My question is can I just update it to

  • Error MSB3323: Unable to find manifest signing certificate in the certificate store.

    Problems began when I received the MSDN Final VS 2005 v8.0.50727.42 and uninstalled the RC build which I had worked with without issue and replaced it with the previously mentioned. After four or so installs/uninstalls I got past the Invalid license