Posting Ad Content in AMC through BAPI_AMC_ADC_CREATEFROMDATA

Hi,
We are working on a scenario where we have to create Ad Orders as well as Ad Contents thorugh an ABAP program. The Ad content will consist only of some basic texts. I tried using BAPI_AMC_ADC_CREATEFROMDATA to create the Ad content and then creating the Ad Order using BAPI_ADMGMTSO_CREATEFROMDATA passing the Technical Ad SPec ID to the Ad Spec. Both these steps get complete without errors but when I open teh order in CIC0 and then navigate to the IS-M/AMC UI I am getting an error "XmlFile.loadXmlFile(): java.io.UnsupportedEncodingException: Not valid xml document - xml declaration is not found". I tried populating different fields in teh BAPI but still getting the same error. Have any of you worked on a similar requirement? Is there some other approcah I can try? Any pointers on this will be highly appreciated.
Thanks,
Praveen
Edited by: Muthu Praveen on Dec 23, 2009 1:47 PM

Hello Praveen,
I hope the issue below has been resolved by now.
The Ad content is stored as XML(native editor format) in M/AMC. This  explains the error you get when trying to open an Ad created thru the interface.
In case of web scenario or interface, where you plan to create the Ad content from external source other than CIC, you will need to use the Server Mode Interface.
Please see documentation for server mode interface at :
[http://help.sap.com/saphelp_amc30/helpdata/en/index.htm ]
Please also see documentation regarding process which describes how you run IS-M/AMC UI in the server mode to enter ad content.
[http://help.sap.com/saphelp_amc30/helpdata/en/index.htm ]
Hope this helps.
Kind regards,
Mandheer

Similar Messages

  • Error: While posting a G/L document through TC F-02

    Hi Friends,
    i am trying to post a G/L document through TC F-02 its giving the following Error
    "There is no item category assigned to G/L A/C No 20020/COA BCS.
    can any one help me out,
    Thanks
    RK

    Hi,
    When you are working in ECC 6.0 for the first time you will get this error.  Just go to SPRO search for Document Splitting and deactivate in new G/L
    If OK please assign points !!!!
    Srinivas Kommu.

  • How to search content in repository through portal

    i want to search the content present in my content repository with input as a string ,which will be searched in content and displayed through portal.
    or can i navigate bea content search into portal

    I am also trying to use content in the BEA content repository. I am able to create the content repository, but i do not know how to set it up so that it can be accessed from a portal. It seems that you are able to integrate it. Can you please tell me the steps or point me to a document? I will appreciate your help.

  • Db connection from content server context through JSP

    Hi All,
    Can anyone tell me how to get ucm db connection from Content Server context through JSP file? Thanks.
    Joe
    FMW Team,iTech,Shenzhen

    Start by getting a sample JSP here:
    http://www.corecontentonly.com/Blog/UsingJavaServerPagesWithContentServerAndAnExample
    Then, you can use the Workspace object in the jsp to create resultsets from SQL.
    String sql = "SELECT * FROM REVISIONS";
    // Execute the sql
    rs = objWorkspace.createResultSetSQL(sql);
    drs = new DataResultSet();
    drs.copy(rs);
    for (drs.first(); drs.isRowPresent(); drs.next())
    String dDocName = ResultSetUtils.getValue(drs, "dDocName");
    System.out.println(dDocName);
    }

  • Problem posting HTML content in WebForms

    I apologize in advance if this is posted in the wrong location; I cannot find a form for Webforms or ASP.NET in the listings.  (I also apologize if this is a duplicate question; I had trouble submitting it the first time.)
    I'm updating an existing WebForms application for a relative who will undoubtedly find lots of little details for me to fix over the next few weeks.  In order to reduce the number of service calls, I'm implementing a "site config" feature that
    will enable him to modify some of the site elements himself, such as toggling the display of certain labels or repositioning the hit count.  The configuration isn't being stored in a database, but rather in an XML document in the site root.  Each
    time the form is used to update the XML, a backup is saved, and the site can revert to a previous version if the current config becomes hosed.  In short, I'm not particularly concerned about malicious code going into the XML, although I do have some validation
    in place to make sure he doesn't screw things up.
    I'd like the config to be able to hold some HTML, so that he can apply custom formatting to the elements he configures, and I have of course applied Server.HtmlEncode to those fields.  But I can't get the form to post HTML content.  The article here
    (http://msdn.microsoft.com/en-us/library/a2a4yykt(v=vs.100).aspx) advises me to turn off the request validation using the @ Page attribute ValidateRequest="false."  However, this has no effect.  Upon form submission, the code behind is
    completely ignored, and the exception  "A potentially dangerous Request.Form value was detected from the client" is logged.
    Is there a way to override this behavior?  I'm using Framework version 4.0 (with Visual Studio 2010).

    If I remember correctly, you *should* be able to use whatever value you want for "key" in the RegisterOnSubmitStatement.  Have you tried something like this just for a test?
    this.ClientScript.RegisterOnSubmitStatement(
    this.GetType(),
    "I_Can_Put_Whatever_I_Want_Here",
    "alert('Microsoft is Awesome!');"
    But I *think* you are having a different issue.  It *sounds* like to me that maybe your EncodeAll ECMA/JavaScript function may not be getting registered properly or in a timely manner.  Have you used IE Developer Tools (F12) to poke around
    and view the available ECMA/JavaScript Files and definitions?
    There are different ways to register ECMA/JavaScript in *.NET.  One primitive way is to simply put something like this in the "head" tag of your MasterPage or ASPX file:
    <script type="text/javascript" src="./myJSFile.js">
    </script>
    Others ways are to use the
    ScriptManager or
    RegisterClientScriptInclude .  You can see a few easy examples of how to register ECMA/JavaScript in Mr. Akhtar's post here:
    https://stackoverflow.com/questions/1666797/how-to-include-javascript-file-in-asp-net-page
    One really *strange* behavior that seems to get a lot of people when registering JavaScript manually via the "script" tag as mentioned above is that you often have to use a *full* </script> end tag for scripts to register properly. 
    I have *no* idea why some browsers require this, but it is something web developers need to be aware of.  For example my
    "<script type='text/javascript' src='./myJSFile.js'></script>"
    example above should work if you have the right path but strangely
    "<script type='text/javascript' src='./myJSFile.js' />" does *not* necessarily work on all browsers even if you do use the correct path to the desired ECMA/JavaScript File.
    Best,
    Shawn

  • How the SAC amounts are posted to G/L accounts through Inbound Invoic Idocs

    Hi EDI/ABAP experts,
    Can anyone please tell me wow the SAC amounts are posted to G/L accounts through Inbound Invoic Idocs??
    Can anyone point me to the code that permits INVOIC02 IDocs to post the SAC (service allowances and Charge) amount to particular G/L account??
    What is the logic??
    Thanks,
    Creasy
    Edited by: Creasy Matthew on Apr 27, 2009 10:41 PM

    Hi Sunil,
    When ever you prepare a billing document it creates an entry in General Ledger as Trial Balance has to be generated for the company all the expenses for a company should be recorded in GL. So that a company can see view their profit/loss figures.
    As Billing is a sales related transaction it creates an GL Entry where in
    Debits    --> Customer Account
    Credit     --> Sales Revenue Account
    And when the Customer Makes a payment with reference to the bill
    One more GL Entry will be created i.e
    Debit     --> Bank Account
    Credit    --> Customer Account
    With this we can track the customer balance (What ever balance is there in Customer account is customer Balance)
    I think this is very clear with respect to the question you had asked.
    Reward points if it helps.
    Regards,
    Sreekanth

  • Post of Excise Invoice(Capture through EWPO)

    Hai,
    I am getting error when i am posting the excise document(Capture through EWPO)
    Balance in transaction currency
    Message no. F5702
    Diagnosis
    A balance has occurred in transaction currency 'INR' with the following details:
    Exchange rate '00', amount '        76,632.00' and currency key 'INR'.
    The data in the transaction currency were transferred from the calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application.
    Please give me the solution for above error
    Regards,
    Ramu

    hi,
    please  check that while simulating do it is debiting to both onhold account and clearing account.
    if it is,
    then goto to spro> logi gen> tax on goods movt> basic setting>account determination per excise transaction
    in that
    search for EWPO and delete the line  of onhold account .
    Please  COnfirm if that works,
    Regards,
    Vijay

  • Reading contents of asm through shell script

    How to read contents of asm through shell script?
    Please paste one small example also.
    Thanks
    Bala

    Hello Bala,
    The ASM contents is not visible from the operating system or its utilities. Only visible to database instances, RMAN, and other Oracle-supplied tools.
    Please see http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/glossary.htm#sthref4105
    Regards,
    Rodrigo Mufalani
    http://mufalani.blogspot.com

  • Method to pass the content of pdf through offline(without internet connection)

    Hi All,
    Is there any method available to pass the content of the pdf field from client machine having no internet connection?
    Barcode is the one way to pass the content of pdf field but my data is large and barcode capacity is not more than 1800 characters.
    Please suggest me the way i can send the data to server environment.
    I would like to know the if any data compression technique is available with which i can reduce the data size.
    Thanks in advance
    Regards
    Abhishek

    Hi Steve,
    Thanks for your quick reply.
    offline means no internet connection
    I have following 2 problems while form designing
    1. I want to update the databarcode by the clicking on the button but everytime i need to write a code in calculate event of the script of paper barcode as "this.rawValue = "Abhishek"".i dont want to have any script for any events in barcode. i want to update the barcode through click event of button as form.page.paperformBarcode.rawValue="Abhishek". Barcode is not getting updated when i am clicking on the button. I have attached sample PDF for better understanding.
    2. I want to store xml file in the barcode and retrive the same in server environment. I dont know how to do it?
    I am not getting an option to attach the files to post. will you please help?
    Please forward me a test mail to provide you the sample pdf.
    Regards
    Abhishek
    Email-id --- [email protected]

  • POSTING G/L account documents through custom program

    While posting the documents through the tcode fb01,
    when I tick at PA segement button ASSIGNMENT TO
    PROFITABILITY SEGMENT screen opens, DERIVATION
    BUTTON is activated/enabled . But through a custom program when session is
    processed and when PA segement button is ticked on
    ASSIGNMENT TO PROFITABILITY SEGMENT screen, DERIVATION BUTTON is not visible. I can only see Continue, Next Page, Delete Assignment, and Cancel buttons. Where do I need to check this problem?

    Hi,
    Nope, in standard SAP you can not do that.
    You would need to develop your custom program for it.
    Regards,
    SDNer

  • Does family sharing allow content not purchased through itunes?

    Most of my music has been ripped from my CDs, not purchased through itunes. The family sharing feature in ios8 sounds tempting since I currently have 4 of us working from a single account which causes some issues at times. Will I still be able to share the ripped CDs and other content not purchased from itunes with other family members if we split up and then turn on family sharing?
    Thus far, the 5S that just arrived today is the only device with ios8 on it. The other iphones and ipads in the house will need to be updated when it seems safe to do so. We are also running itunes on two macbook pros and a few PCs.

    Yes, home sharing works with both purchased and ripped music, as well as videos.  It does not allow you to move content from one computer to another; it allows you to stream content from one computer to another computer or device on the local network (or connected via a VPN).
    If you want to access music outside of your network and copying it is a problem, then you might consider Match.

  • Distributing content in portal through KM

    Hi friends,
      My requirement is to distribute the documents to some group of users through KM.
    Can anybody pls help me how to do this? and what r all the pre-requisites and how to configure the KM?
    Please help me out.
    Regards
    sireesha.

    Hi sireesha,
        I guess that you are familiar with KM Documents iview  and know how to upload  files to a KM folder in "KM Content".
        The key point of this question is setting the permission of the KM folder.
        e.g:  Upload files "test.doc" to folder " testfolder" in "KM Content".Then create a KM documents iview point to the folder "testfolder".At the time, the iview could display all the content of the folder "testfolder".
            You should navigation to "testfolder" in "KM Content", then click the label near to folder name , it will popup a menu, click "Details->Setting-> Permission".
    You can add the permission of some user groups which you want,  but the other users and group should have no permission.
            Then the users group which had no permission could see the iview , but they can't see the content of the "testfolder".
            The authorized users can see the content of "testfolder".
            Please forward the poins if the anwser is helpful:)
    BR,
    Jianguo Chen

  • Posting an 850 Purchase Order through EDI

    Heyy Guys,
    I am trying to post an 850 from translator and I am struck at the control record mapping.
    I maintained VOE4 entries for mapping external partner number to internal partner number.
    But doesn't the SNDPRN field in the control record use that table??  Can we populate the SNDPRN field with external partner number?
    I tried to do it and it is not determining the partner profile.
    My other issue is if we have to populate SNDPRN field with the actual SAP customer number, do we need to maintain a cross reference in translator again? Doesn't that defeat the basic purpose of SAP's VOE4 table?

    Dear,
    Check: http://help.sap.com/saphelp_sm32/helpdata/en/dc/6b7c9f43d711d1893e0000e8323c4f/frameset.htm
    and
    Sending PO through EDI
    Anybody can help me with how SAP can link other system throuh EDI.
    http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/100e954a-0f36-2b10-dfa9-9c3880da7ff3&prtmode=print [original link is broken]
    Regards,
    Syed Hussain.

  • Problem when posting GR for Inboun Delivery through MIGO

    Hi All,
          I am trying to post a GR for an Inbound Delivery by using the Function Module 'BAPI_GOODSMVT_CREATE'. The problem is that after the GR has been posted successfully through the report I am still able to post GR through MIGO. This happens only for few Inbound Deliveries and not for all. What could be the reason for this? Also are there any user exits for MIGO using which I can stop the multiple posting of GR for a single Inbound Delivery.
    Thanks in Advance,
    Regards,
    Sowmya.

    Hi !
    Try setting the parameter NO_MORE_GR in the cases you don't wand any more GRs.
    This could also be set automatically - wich has to be customized in MM-PUR customizing.
    Also you shuld check the overdelivieries tolerances of the purchases ! They may be "unlimited" ....
    Regards
    Rainer
    Some points would be nice if that helped.

  • Problems obtaining POST data / content using Sockets

    Hi,
    I have a servlet which needs to listen on a specific port for HTTP post requests.
    At present I have the following code:
    try{
       inputStream=client.getInputStream();
       streamReader=new InputStreamReader(inputStream);
       reader=new BufferedReader(streamReader);
    }catch(IOException e){
       //Write error entry in the log file.
    //Get the request and HOPEFULLY the params...
    try{
       System.out.println("encoder "+streamReader.getEncoding());
       for (String thisLine = reader.readLine();thisLine!=null;thisLine = reader.readLine()){
          if (thisLine!=null){
         System.out.println(thisLine);
    }     This produces the following....
    POST /sms HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-
    powerpoint, application/vnd.ms-excel, application/msword, */*
    Referer: http://localhost/test.html
    Accept-Language: en-gb
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
    Host: 127.0.0.1:9999
    Content-Length: 74
    Connection: Keep-Alive
    Cache-Control: no-cache
    I can see that the content is there 74 bytes of it, and it is encoded application/x-www-form-urlencoded, however I don't understand what I need to do to get the FORM information???????
    It works fine if it is an HTTP Get, however I have to get it to work with a POST.
    Can Anyone help??????????
    Thanks
    Glenn

    client is a java.net.Socket.
    Found some further information:
    I'm actually getting an exception I've just noticed from the log files see below:
    java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
         at java.net.SocketInputStream.socketRead(Native Method)
         at java.net.SocketInputStream.read(Unknown Source)
         at java.net.SocketInputStream.read(Unknown Source)
         at java.io.InputStreamReader.fill(Unknown Source)
         at java.io.InputStreamReader.read(Unknown Source)
         at java.io.BufferedReader.fill(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at java.io.BufferedReader.readLine(Unknown Source)
         at com.nokia.wap.server.IM.service.hd.run(hd.java:108)
    the offending line in my code from above is line 108:
    for (String thisLine = reader.readLine();thisLine!=null;thisLine = reader.readLine()){though i'm not sure if this is a code problem / when I close the html browser and hence cancel the http request?!
    sorry to add to the situation. :o(

Maybe you are looking for