How to create a change document?

How to implement this:
When table IHPA is updated (fields: OBJNR, PARNR, PARVW)
A change document should be automaticly created in table CDHDR and CDPOS
I have gone to the T-code scdo to create a new change document object ZIHPA
and set the table = IHPA and marked Doc. for individal fields at delete
Then I generate the the fuction module ZIHPA_write_document.
I have create a program and call this fuction module.
But I'm confused by the import parameter.
And I have tried some parameter, the function run successful but no record has been created in table CDHDR and CDPOS.
Who can help me?  Thanks a lot.

Hi Siarhei,
Thank u for ur reply very much.
'If you are trying to log updates (change indicator = 'U') - it will log it for those fields only which have "Change document" checkbox ticked on data element level in your table.'
I have set the the checkbox as on already. But if I don't create change document manual, it will not create change document automaticlly.
Another reason for my saddness is that I have read some other write document fuction in where they are used. Such as material_write_document, but in fact, I am confused by the code. I still don't know how to get the new workarea. Can you help me? Thanks god and you. _

Similar Messages

  • How to create the change document functionality for a dependent objects?

    May I please know how to create the change document functionality for a dependent objects?
    I have done it follow the same process as for business process objects. But when i try to test it in BOBT, there is no records under "FIELD_CHANGE_WITH_FILTER". It seems the change hasn't been recorded.
    If the way I did to create change document for dependent object is correct, please also kindly advise the possibilities for why there is no record during testing.
    thanks in advance.

    I also have some doubts about the business object.In this case,one abstract BO hase a subnode wihich is root extended.I added the change document for this node under the category "root_extended" and then tested the function in BOBT.I got some error message "can't find the root key".Shall i redefine the method /BOFU/IF_CDO_CREATION~IS_CDO_CREATION_ACTIVE so as to solve the problem?
    Thx.

  • How to Create Test Sequence Document in HTML using command line

    How to Create Test Sequence Document  in HTML using command line
    I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using   C#  .Net

    If you aren't able to figure out how to call a C++ DLL in .net then there may be another option.  Unfortunately I don't know how to do this off the top of my head and I don't have an example.
    The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options.  Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Need to create a Change document for tracking Purpose on standard table

    Hi Experts,
    I am updating a field in standard table so need to create a change document for tracking the changes being done on the field.
    I created the change Document with transaction SCDO but I am stuck at point - How to call that in the report program to enable the change document.
    Please advice.
    Thanks!!

    Hi
    U can assign your transaction to Z-report like this:
    PARAMETERS: TAB1 RADIOBUTTON GROUP R1 DEFAULT 'X',
                TAB2 RADIOBUTTON GROUP R1,
                TAB3 RADIOBUTTON GROUP R1.
    DATA: TABNAME TYPE TABNAME.
    START-OF-SELECTION.
      CASE 'X'.
        WHEN TAB1. TABNAME = 'BSID'.
        WHEN TAB2. TABNAME = 'BSAD'.
        WHEN TAB3. TABNAME = 'BKPF'.
      ENDCASE.
      CALL FUNCTION 'RS_TABLE_LIST_CREATE'
        EXPORTING
          TABLE_NAME               = TABNAME
    *   ACTION                   = 'ANZE'
    *   WITHOUT_SUBMIT           = ' '
    *   GENERATION_FORCED        =
    *   NEW_SEL                  =
    *   NO_STRUCTURE_CHECK       = ' '
    *   DATA_EXIT                = ' '
    * IMPORTING
    *   PROGNAME                 =
    * TABLES
    *   SELTAB                   =
       EXCEPTIONS
         TABLE_IS_STRUCTURE       = 1
         TABLE_NOT_EXISTS         = 2
         DB_NOT_EXISTS            = 3
         NO_PERMISSION            = 4
         NO_CHANGE_ALLOWED        = 5
         OTHERS                   = 6
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

  • How can create and change PCA line items.

    How can create and change PCA line items.
    Please tell me the process and t.codes.

    If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
    If you are in new GL regular FI entry like FB50 will hold good for account types "S"

  • How to Create a Billing Document For SalesOrder

    Hi Guys,
    Any one please Explain me how to create a Billing Document for salesOrder. give me step by step procedure so i can easily understand the terms.Thanks in advance.
    Thanks
    Kiran.B

    Hi Kiran,
    Normally a billing doc is created after a sales order-->delivery.
    U can create a sales order w.r.t a Contract or another sales order.
    In your case, its possible only for sales Returns.
    pass billing doc number to ORDER_HEADER_IN-REF_DOC in BAPI_SALESORDER_CREATEFROMDAT2.
    Reward points if helpful
    Regards,
    Hemant

  • How to create the Change Advisory Board business partner?

    Dear SolMan Gurus.
    How can I create a business partner Change Advisory Board and add a members to it?
    Thank you.
    Petr

    Hi Petr,
    just to make it a bit more clear, the Change Advisory Board (CAB) is not a type of a business partner, but a partner function. So you just need to create a standard business partner, e.g. an organizational unit as Prakhar suggested. Later on in your change document you can assign this org unit to the CAB-function. In another document the same org unit can be another partner function.
    If you want to enter a fix CAB-partner for a system you can do this in IBASE, transaction IB52. There are a lot of customizing possibilites for the determination of business partners.
    Kind regards,
    André
    Edited by: André Urban on Jun 2, 2009 11:54 AM
    Edited by: André Urban on Jun 2, 2009 11:55 AM

  • How to create wave pick document and transfer order from that document

    Hi All,
    I want to create wave pick document based on delivery and correspondingly want to create transfer order for that. My requirement is that if in 3 delivery i have to pick material M1 as 100, 50, 100 qty then when i create wave pick for these deliveries and create Transfer order by this wave pick doc it should pick from single bin of warehouse , currently it is picking from 3 different bins though qty in each bin is more than 250 in each bin. Also suggest me the configuration requred for this.
    Thanks in advance:

    Hello Gordon, tha is working perfect now I finaly get the forecasted items in my MRP window If I click on show recommendations I see he recommends he wants to order some pcs, and Indd what I split in to Buy or Make is separated in an Production order. But how do I change the recommendations into orders?

  • How to create one GR document for mutiple Purchase orders

    Can you please explain me in SAP - How to create one Goods Receipt document for reference of Multiple purchase orders.

    Dear Tanuj,
    Both Rama & Stephen are correct.
    You can take Single GR for Multiple PO either in MIGO or MB01 as long as that POs belongs to same vendor.
    In MIGO, after putting the PO press,enter,  again give the next PO of that vendor .
    If this solve your problem, close the issue.
    With Regars,
    Krishna Reddy

  • How to Create a PDF Document and apply Digital Signature in C# using the Adobe SDK?

    Hi Everybody!
    I have to do two distinct tasks here:
    1) How can I create a PDF document using the Adobe SDK in my .NET Applications(C# - 2.0)?
    I just need a basic sample to create a document with a simple text, for example. I did not find any useful information in the adobe documentation. I have the Acrobat Professional 8.0 in my computer, but it's very dificult to work whith de Acrobat.dll and .NET with a poor documentaion.
    2)How can I apply digital signature in a existent pdf document?
    I need to sign documents using the SDK, just a basic sample in c# would be helpful to start!
    Anybody could help?
    Thank in advance!

    Leonard Rosenthol or anybody that can help, sorry to insist.
    I will explain better my problem:
    I have an ASP.NET WebPAge (C# - 2.0). In this page, the user make a request. The request should generate a PDF document with the informations of the request and with a field to add a digital signature. The document created will be send to a approver that will confirm the approval applying his digital signature (I need to do too, a webpage where the approver open the page, choose the pdf document, and sign, just selecting his own certificate and clicking in the button SIGN... but this is another problem).
    That's the reason that I have to create a PDF document. If I create a WORD or HTML document, and then convert to PDF, how can I add a field to digital signature in this pdf document?
    Is there any solution using Acrobat SDK?
    Thank you very much!

  • How to create a pdf document with specific security settings

    Hallo,
    in Adobe Acrobat you can set security settings which make documents unprintable, unchangeable etc.
    What I want to do is: I want to set these security settings by creating the pdf-document, because I do not want to open every document and change the security settings. Is this possible at all???
    Thank you for help
    Elisabeth

    How are you creating the documents? If using Adobe PDF printer, use the security options in Adobe PDF printer settings. If using PDFMakers (Acrobat buttons inside Office applications, open the Preferences menu item and set security there)

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • How to get the change document Number.

    Hi,
    We have a scenario where the any customer master changes need to be send to the agent. I thought of using CDHDR,CDPOS.I've checked the FMS CHANGEDOCUMENT_READ and position header FMS too.even for these we need to provide the object class.
    But for them we need to have the document number and object class. They can be changed from any transactions. We have many Z transactions through which he can change the customer master data too,but finally master tables only get updated. Is there any FM to find the document numbers.
    Thanks,
    Bharathi.

    Hi Bharti,
    In such situation, you can create the event based on the CDHDR table entries. In fact, based on the object ID and object class, the recent change document can be picked up. If standard change object does not work, a Z change document can be created. This practice can help in picking the change in selected fields as the master tables can be updated in many fields which are not relevant for the requirement.
    Do let me know in case you need more help on it.
    Thanks,
    Jyoti

Maybe you are looking for

  • Can't See Form Fields in Acrobat 9

    I created a form using the wizard. When I went in to create additional fields in the form field editor all the fields were gone and each field I added disappeared as well. My OS is 32 bit Windows 7 Pro. Everything is patched up to current levels. Som

  • Process screenreaderd not responding

    Having installed Leopard and all running mainly trouble free have suddenly found new problem. I have a border appearing in any screen or app I open. Like now it is around the message box I am typing into but may align itself with any block on an open

  • Purchased ProCam XL 2 app at AppStore/iTunes, filled out credit card info, but no download. What to do?

    Purchased ProCam XL 2 online this afternoon. Filled in all the boxes. Clicked OK. No download. No app. No confirmation. No email. Help.

  • Can't uninstall / delete quicktime

    I've been trying to delete quicktime to re-install it and itunes as itunes stopped working ( I couldn't open it at all). a reinstall didn't work, coming up with error code 2330, and when trying to uninstall quicktime it said could not delete zh_CN.lp

  • Custom paper size button missing on print dialog box

    I installed the print driver for our new Z5200ps printer on four machines--all with no issues. I installed it on the fifth PC, and when the user tried to print from Illustrator and Photoshop, neither print dialog box had the custom paper button as al