FM EDI_PATH_CREATE_CLIENT_DOCNUM is creating XML ONLY for control record

Hi Experts,
We have configured a port of XML type and used EDI_PATH_CREATE_CLIENT_DOCNUM function module to create XML and put that XML in a directory path (Configured in FILE transaction).
IDOCs are being generated using sales order output type and EDI partner for the same is using above configured XML port.
The problem here is, it does not create a complete XML, it just creates XML for control data.
Could you please help us here...
Thanks
Mohit

DATA: L_DIRNAME LIKE EPSF-EPSDIRNAM,
        L_FILEMASK LIKE EPSF-EPSFILNAM,
CALL FUNCTION 'EPS_GET_DIRECTORY_LISTING'
    EXPORTING
      dir_name                     = l_dirname
      file_mask                    = l_filemask
* IMPORTING
*   DIR_NAME                     =
*   FILE_COUNTER                 =
*   ERROR_COUNTER                =
    TABLES
      dir_list                     = pi_filelist
EXCEPTIONS
   invalid_eps_subdir           = 1
   sapgparam_failed             = 2
   build_directory_failed       = 3
   no_authorization             = 4
   read_directory_failed        = 5
   too_many_read_errors         = 6
   empty_directory_list         = 7
   OTHERS                       = 8

Similar Messages

  • Creating xml complience for dtd

    Hi,
               i have a pdf with forms data, and a dtd.
               In pdf we have a button which has to create xml file with forms data on click action of that button.
               And in that main thing is to create xml file in complience with dtd. means i want create xml complience for dtd
              how to do that using java script(i dont want to use adobe life cycle designer).
    Any help would be highly appreciated.

    Have you read the Acrobat javaScript documentation?  What did you find there that you didn't understand that is preventing you from accomplishing this goal?

  • How to create validation only for created rows in tabular form

    Hi all,
    I have a simple question. Is it possible to create a validation for tabular form which will be fired only for created?
    There is a possibility in APEX 4.1 to choose two types of "*Execution scope*" first is "*For created and Modified Rows*" and second is "*All Submitted Rows*".
    Thanks in advance!
    Regards,
    Jiri

    Hello Jiri,
    >> Is it possible to create a validation for tabular form which will be fired only for created?
    You can still use the scope of For created and Modified Rows and use a PL/SQL Expression condition of:
    :APEX$ROW_STATUS = 'C'You also need to change Execute Condition to For Each Row .
    Hope it helps,
    Arie.
    Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.

  • From XML (import) for each record automatic new page creation?

    Hello,
    I'm playing around with XML.
    Can someone tell me where to look and help me?
    I load variable data via XML.
    Example content xml:
    <pages>
         <page>
             <id>1</id>
             <article>title page 1</article>
             <info>Info page 1</info>
             <price>price page 1</price>
         </page>
         <page>
             <id>2</id>
             <article>title page 2</article>
             <info>Info page 2</info>
             <price>price page 2</price>
         </page>
         <page>
             <id>3</id>
             <article>title page 3</article>
             <info>Info page 3</info>
             <price>price page 3</price>
         </page>
    </pages>
    I have 1 page classified (ie 3 text boxes). The idea is that for each record in the xml (in this case 1, 2 and 3) a new page is created (Qua layout identical to the page that I had prepared, but with the corresponding data in each box)
    How do I do this?
    Thanks!

    If you need to keep the three parts of your page in separate text frames, you are probably out of luck.
    I can't tell from your question whether you know how to tag frames and import XML content into them. If you don't, the manual is fairly clear on it. However, it states more than once that "InDesign flows merged XML content into existing frames only."  That means that it won't add frames or pages for you -- you can only load XML into tagged frames on the first page and will have to add extra ones by hand.
    If you could rework your design so that all the elements could be accommodated in a single text frame, using paragraph styles to keep them apart, you could just import the XML and map tags to styles, then drag it into a frame on the first pages. If your article style was set to start in a new frame,  everything but the first would go into overset text, which you could deal with in the usual way -- shift-click on the in port of a new frame and InDesign will add the pages you need.

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • Table cntrol field to be display/Change only For each record

    Hi all,
    How to set a particular Field in table control either as display only or
    change only for <b>each row</b> based on certain condition.I need to set this property for each record in table control not for the entire coloumn?.I know the procedure for setting up an entire coloumn in table control either as diplay or change only using <b>Loop at screen</b> statement.
    Conditions:
    If Material is batch managed:
    itab-batch field has to be <b>Display only</b> mode.
    if material is not batch managed:
    itab-batch field has to be <b>change mode</b>.
    <b>O/p of Table Control :</b>
    Material     Batch
    1000         Display only
    2000        Change only
    8000        Change only
    3500        Display only
    3600        Display only

    Hi Ravi,
              Thanks for your reply.I have put the code as u said. It is modifying the whole coloumn insted of  modifying Current row of the coloumn.
    I have tried to modify the screen property using  Table control attributes (TC-COLS).The following commented code is that logic.Even that also doing the same thing.Can yoy please tell me how to do it.
    MODULE tc_get_lines OUTPUT.
    LOOP AT SCREEN.
        IF screen-name = 'X_ZPINV-CHARG'.
          IF fg_batch = ' '.
            screen-input = 0.
          ELSE.
            screen-input = 1.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    LOOP AT tc-cols INTO tc_wa
      WHERE screen-name = 'X_ZPINV-CHARG'.
       IF x_zpinv-matnr IS NOT INITIAL.
         CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
             input  = x_zpinv-matnr
           IMPORTING
             output = v_matnr.
         SELECT SINGLE * FROM marc WHERE matnr = v_matnr
         AND werks = w_plant.
         IF marc-xchar IS INITIAL.
           tc_wa-screen-input = 0.
         ELSE.
           tc_wa-screen-input = 1.
         ENDIF.
         MODIFY tc-cols FROM tc_wa INDEX sy-tabix."    transporting screen-input
       ENDIF.
    ENDLOOP.
    ENDMODULE.                    "TC_GET_LINES OUTPUT

  • Log for control record

    can anyone tell me how to view changes log for payroll control record..
    Thanks

    You wrote:
    If mistakenly i release the control record and then exit also for the period that the payroll is not run..in production system.....is it advicable to delete and create a new control record in production?
    You can do just that: delete the control record and recreate it. You need to be careful when doing that in production, typically if I do it (for whatever reason), I try to do it during off hours. And to be sure what you're doing, try it out in a development system, first.

  • Bapi_po_create is not creating Purchase Orders for multiple records in file

    Hi All.
    iam trying to create contracts and Purchase Orders  In me21n,me31k .
    here iam using bdc for contract creation against services and using bapi_po_create for PO Creations.
    in this process i could create contracts and POs for the first record in the file but for second record bapi_po_create couldnt create POs and the return table in bapi says
    1.document contains no items.
    2.no services or limits have been maintained.
    wil be waiitng for  r great answer.
    bye.
    regards.
    seeta.

    Hi Seeta Ram,
    Did you pass the table PO_ITEM_SCHEDULES to BAPI_PO_CREATE with the coresponding Item numbers for each item in the table PO_ITEMS?
    Regards,
    Vitz.

  • Graphical mapping question - need to create 2 nodes for each record

    The mapping is from flat to nested, i.e. flat file to FIDCC2 idoc. Each record has to go to 2 repeated IDoc segments, each one with different posting key. Right now, I have it working for each record to a segment(for one segment) by using splitByValue (value change). How can I repeat the creation of another but with slightly different constant.
    Also, how do I add line numbers? I remember seeing a posting on this a while ago - cannot locate it.
    Will be Rewarded WELL.
    Thanks,
    Pam

    Hi, Pam
    Using the following example to store it as global variable
    SetParameter from GloabalContainer:
    container.getGlobalContainer ().setParameter ("COUNTER", "0");
    GetParameter from GloabalContainer:
    String myCounter = (String) container.getGlobalContainer().getParameter ("COUNTER");
    When you map to your constant, store it in global variable, then you map other field, get current global variable, check its value, based on the value, you do proper mapping.
    Hope it helps
    Liang

  • What is the recommended approach to create XML input for forms service

    Context:
        As part of our development project, we need to retrieve data (eg. Policy details) from different modules and using this data we need to generate PDF document using a particular template (what we have uploaded to live cycle)
    Solution we have tried:
    We have created Java classes from XSD (for a particular template) using JAXB complier. Using these Java classes we instantiated all the parameters using data from different modules and got XML after marshalling. We send this XML as a byte array to forms service to get PDF. No issues in this context.
    After displaying the PDF, under writer will modify some of the data and submit back to the application. Application again uses forms service to retrieve XML back as a byte array. This is where we had issues. We tried un-marshalling using same JAXB classes but we are loosing data for all the rich text fields.
    Can you please guide us to handle this issue ASAP, because we are completely stuck in the development stage. We really appreciate if some one can respond to this issue.
    Thank you
    Srini P

    Context:
        As part of our development project, we need to retrieve data (eg. Policy details) from different modules and using this data we need to generate PDF document using a particular template (what we have uploaded to live cycle)
    Solution we have tried:
    We have created Java classes from XSD (for a particular template) using JAXB complier. Using these Java classes we instantiated all the parameters using data from different modules and got XML after marshalling. We send this XML as a byte array to forms service to get PDF. No issues in this context.
    After displaying the PDF, under writer will modify some of the data and submit back to the application. Application again uses forms service to retrieve XML back as a byte array. This is where we had issues. We tried un-marshalling using same JAXB classes but we are loosing data for all the rich text fields.
    Can you please guide us to handle this issue ASAP, because we are completely stuck in the development stage. We really appreciate if some one can respond to this issue.
    Thank you
    Srini P

  • How to create XML string for an object matching the result of a marshal?

    I'm trying to create a XML string representation of an object which exactly matches the XML which results from marshalling the object into a request. I'm almost there except that the XML string I come up with is missing the attribute "standalone=\"yes\"" in the topmost xml element, and this attribute is present in the marshalled XML. I'm using the XML string to create a payload signature which must match exactly with the XML payload of the request, so the two XML representations of the object really do need to be identical.
    Here's what I'm doing to create the XML from the object:
       private String myObjectToXmlString (final MyObject myObject)
           throws Exception {
                 try {
               DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
               Document document = documentBuilder.newDocument();
               myObjectMarshaller.marshal(myObject, document);
               Source source = new DOMSource(document);
               StringWriter stringWriter = new StringWriter();
               Result result = new StreamResult(stringWriter);
               TransformerFactory factory = TransformerFactory.newInstance();
               Transformer transformer = factory.newTransformer();
               transformer.transform(source, result);
               return stringWriter.getBuffer().toString();
           } catch (Exception ex) {
               throw new Exception("Unable to convert a MyObject object to an XML String -- " + ex.toString(), ex);
       }The XML which is produced looks like this:
    <?xml version=\"1.0\" encoding=\"UTF-8\"?>
    <ns2:myObject xmlns:ns2=\"http://sunconnection.sun.com/xml\">
       <myObjectId>0</myObjectId>
       <objectType>1</objectType>
       <description>Test Object</description>
    </ns2:myObject>The payload object is marshalled to the request like so:
        // marshall the MyObject to the output stream
       OutputStream outputStream = myHttpUrlConnection.getOutputStream();
       myObjectMarshaller.marshal(myObject, outputStream);
       outputStream.flush();
       outputStream.close();When I view the XML payload of the request it looks like this:
    <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
    <ns2:myObject xmlns:ns2=\"http://sunconnection.sun.com/xml\">
       <myObjectId>0</myObjectId>
       <objectType>1</objectType>
       <description>Test Object</description>
    </ns2:myObject>As you can see the two XML representations of the object are identical except for the standalone attribute in the xml element.
    It'd be a hack to make the assumption that the standalone attribute will always be there in the marshalled object and to just hard code it into the XML string returned by my object to XML method. Since I'm using the same Marshaller to create the XML string as I am to perform the marshalling to the request I assume that there's some way to make it give the same XML in both cases, and that I'm doing something wrong in my method which converts the object to an XML string. If anyone can see where I'm going wrong in that method (myObjectToXmlString() above), or can suggest a better way of doing this, then I'll certainly appreciate the insight.
    --James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    It turns out that I was taking the wrong approach in my object to XML string method. A cleaner/better way to do it, which gives the correct result, is this:
        private String myObjectToXmlString (final MyObject myObject)
            throws Exception {
            try {
                ByteArrayOutputStream stream = new ByteArrayOutputStream();
                myObjectMarshaller.marshal(myObject, stream);
                return stream.toString();
            } catch (Exception ex) {
                throw new Exception("Unable to convert a MyObject object to an XML String -- " + ex.toString(), ex);
        }--James                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to Create XML output for EFT payments.....?

    I am new to creating eText templates. My Understanding is to get XML output then build a template based on the XML output. Right or wrong I am not totally sure. Either way, here is what I need to accomplish and I am not sure where to start.
    (We are in R12....)
    Select EFT payments and create EFT output to send to the bank. I am looking for some guidence. Is there a generic payment program I can relate to an eft payment bank to generate the xml output? Is there a template already built for EFT payments? Does anyone out there have a solution that they are willing to share? Any guidence would be greatly appreciated.

    Figured this out on our own

  • Create BPM only for WAIT step..

    HI All,
    I am working on a IDOC-XI-File interface. Its working perfectly fine.
    Due to excellent processing times in SAP, our system ends up sending many files almost at same time( diff in milliseconds I guess) to the legacy system. However Legacy system doesnt like it and wants us to send a file every 1 second apart.
    I tried using the '
    WAIT UP TO 1 SECONDS'
    statement in R/3 ssytem but somehow system does not wait for 1 second( I guess that why they call it UP TO and not WAIT TILL ) ).
    Instead of relying on R/3 I thought of creating a BPM witha WAIT step. However have never done BPM before, so wanted your opinion before venturing into it for the following:
    1. Can I create a BPM just to introduce 1 sec delay.
    2. Since my interface is working currently, If I need to use BPM, will I have to redo the mapping etc.
    3. How much time effort do you guys think will be needed to convert an existing(working interface) to BPM interface with WAIT step. (Its an Z-IDOC with 3 segments and no-hierarchy)
    4. Any blogs, threads to do it would be highly appreciated.
    Many thanks
    Shirin

    u can use BPM to wait for other message.
    you have to create abstract message interface for BPM.
    but no need to change anything in mapping.
    use abstract message interface in interface mapping.
    use blog:
    Using a BPM to collect messages for a set interval of time
    Delivery Modes in BPM.

  • Alert to be fired only for first record when duplicate entries exist

    Hello,
    This is related to Oracle forms 10g.
    I have a multi record block wherein I am entering and storing some codes, something like below
    Code Description
    =====================
    ABCD AAAAAAAAAAAA
    PQRS BBBBBBBBBBBBB
    DDDD SSSSSSSSSSS
    ABCD DHGFKSDHKSHG
    PQRS DFJHHGS
    EEEE SDT85604ET
    =====================
    Now I need to display an alert/msg from when-validate-item of the Code field. So now if I am on first record, the alert/msg will be displayed for code ABCD which is Ok. Now on next record I enter a different code PQRS as given above, the alert will again be displayed which is Ok. If I enter a code which was previously entered in the multi record block and alert/msg had been displayed at that first time, the alert/msg need not be displayed now again i.e. if I enter ABCD again in fourth record, the alert should not be displayed.
    Note that this need to be done at the data entry time itself. I guess may be it can be done using record groups/ plsql table.
    Any help with a way to solve this issue will be highly appreciated..
    Thanks and Regards...

    As you have already guessed, you have to be able to keep track of how many times a value has been entered. If you know what all of the possible "CODE" values are at design-time, you could create a counter variable for each value, but this would be a total pain. A better solution would be to keep a dynamic running total that you can quickly check against. For this I recommend you use a Forms Record Group. Take a look at the Forms - Record Group Processing (Duplicate Value Checking) demo I wrote. Using the Forms Rec_Group package provided in this demo, you could easly modify the process listed in the document to work in your scenario. Follow all of the steps in the demo. For your situation, you will need to modify the When-Validate-Item trigger so that instead of checking for dupicates and failing the form if a duplicate is found, you will check the number of entries for a value in the record group and display a message if the count is 0 or not display a message if the count is greater than 0. Your modified WVI trigger might look like this:
    DECLARE
       ignore     NUMBER := 0;
       bignore   BOOLEAN := FALSE;
    BEGIN
       IF ( :YOUR_BLOCK.CODE IS NOT NULL ) THEN
          ignore := Rec_Group.Get_Number(Rec_Group.rg_name, :YOUR_BLOCK.CODE);
          IF ( ignore = 0 ) THEN
              -- Display your message
          ELSE
              -- Don't display any message
          END IF;
          /* add the code to the record group */
          bIgnore := Rec_Group.Add_Value(rec_group.rg_name, :YOUR_BLOCK.CODE, :system.trigger_record);
       END IF;
    END;Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Edited by: CraigB on Mar 30, 2011 3:07 PM

  • How do I create a storedprocedure for inserting records using UserId?

    micah D

    Authentication and interaction are two seperate topics.
    How are you managing your authentication? Via SQL Server? Inside your app? Using Active Directory?
    The insert proc itself isn't a big deal. You'll have to provide the user a form within your app to submit the data, and probably pass it to your proc as variables:
    CREATE PROC createCustomer (@firstName VARCHAR(30), @lastName VARCHAR(30), @phone VARCHAR(15), @address1 VARCHAR(30), @address2 VARCHAR(30), @city VARCHAR(30), @state VARCHAR(30), @zip VARCHAR(10), @userID BIGINT)
    AS
    BEGIN
    INSERT INTO myCustomerTable (firstName, lastName, phone, address1, address2, city, state, zip, userID)
    VALUES (@firstName, @lastName, @phone, @address1, @address2, @city, @state, @zip, @userID)
    END
    This is assuming of course, that the information will be passed from your app to the proc using something like:
    createCustomer @firstName, @lastName, @phone, @address1, @address2, @city, @state, @zip, @userID

Maybe you are looking for