How to change payload data

Hello,
The Scenario is Idoc-file, we are generating XML file at target.
The requirement is to have IDOC number in file name eg. "File_IDOCNUMBER_datetimestamp.xml".
but in target file structure we have no separate field to map the IDOC number.
Kinldy help me, or give some possible solution
Regards,
Anu Singhal

>
Anu Singhal wrote:
> The requirement is to have IDOC number in file name eg. "File_IDOCNUMBER_datetimestamp.xml".
create a simple UDF. Suppose to the UDF you are passing two input values
a - IDOCNUMBER from the  IDoc
b - datetimestamp
in your case your code will be something like;
DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
    u201Chttp://sap.com/xi/XI/System/Fileu201D,
    u201CFileNameu201D);
    String MyFileName = "File_" + a + "_" + b + ".xml";
    conf.put(key, MyFileName);

Similar Messages

  • How to change the date format?

    Hi,
    I need to display the data format as(YYYY-MM-DD). But now it displays(2009-1-9)
    Here is my code snippet which i used to display the data format as(2009-1-9)
    *<INPUT TYPE=TEXT NAME="date_submitted" MAXLENGTH=20 SIZE=10 VALUE="" onBlur= "return dateSubmitted()">  (YYYY-MM-DD)*
    *<SCRIPT LANGUAGE="javascript">*
    dateSubmitted()
    *</SCRIPT>*
    function dateSubmitted()
                        if (document.pgUpdate.date_submitted.value == "")
                             date = new Date();     
                             month = date.getMonth() + 1     
                             document.pgUpdate.date_submitted.value =
                                            date.getYear() + "-" + month + "-" + date.getDate();
                        return true;
    Can anybody help me how to change the date format?
    Thanks in advance!

    prit123 wrote:
    use SimpleDateFormat class. The code is :He posted a Javascript related question, not a Java related question.
    Please use forums devoted to Javascript. You're here at a Java/JSP forum.
    There are JS forums at webdeveloper.com and dynamicdrive.com. Good luck.
    String formatPattern = "yyyy-mm-dd";
    SimpleDateFormat sdf = new SimpleDateFormat(formatPattern);
    sdf.format(yourdate);yyyy-mm-dd denotes year-minutes-days. Please go read the SimpleDateFormat API as well.

  • How to change billing date in S1 - cancellation billing document

    Dear Friends,
    Could you please tell How to change billing date in S1 - cancellation billing document which is even not released to accounting & in gray mode.
    Is it possible?
    Thanks in advance.
    Ranjan

    Dear,
    Thanks for asking exact problem.
    1. PGI in 2008
    2. F2 Billing date in 2003 ( By mistake by the user)
    3. S1 Billing date in 2008
    4. PGI reverse in 2008 & OBD deleted in 2008
    So reduced billing qty is shown in report in 2008 because of S1 Billing date in 2008,
    Billing qty  is not matching with the actual PGI quantity.
    So here if the cancellation billing document S1 could be changed for billing date in 2008, then you could balance it
    Now my issue is how to balance it.
    hope you find it it very interesting
    Awaiting your response.
    Ranjan

  • How to change release date in UCM

    Hi
    How to change the date(release date) of the released content?
    Thanks
    Deepak

    Hi ,
    What is the purpose to do that for a content that is already released ?
    If you want to do this en-masse then use Archiver and Import Map to achieve this .
    Thanks,
    Srinath

  • How to change a date value from "java.util.Date" to "java.sql.Date"?

    Hi all,
    How to change a date value from "java.util.Date" to "java.sql.Date"?
    I m still confusing what's the difference between them.....
    thanks
    Regards,
    Kin

    Thanks
    but my sql statement can only accept the format (yyyy-MM-dd)
    such as "select * from xx where somedate = '2004-12-31'
    but when i show it to screen, i want to show it as dd-MM-yyyy
    I m using the following to change the jave.util.Date to str and vice versa. But it cannot shows the dd-MM-yyyy. I tried to change the format from yyyy-MM-dd to dd-MM-yyyy, it shows the wrong date in my application.
         public String date2str(java.util.Date thisdate)     {
              if (thisdate != null)     {
                   java.sql.Date thissDate = new java.sql.Date(thisdate.getTime());
                   return date2str(thissDate);
              }     else     {
                   return "";
         public String date2str(java.sql.Date thisdate)     {
              if (thisdate != null)     {
                   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                   return sdf.format(thisdate);
              }     else     {
                   return "";
         public java.util.Date str2date(String thisdate)     {
              String dateFormat = "yyyy-MM-dd"; // = 1998-12-31
              java.util.Date returndate = null;
              if (thisdate != null)     {
                   SimpleDateFormat dateFormatter = new SimpleDateFormat(dateFormat);
                   try {
                        returndate = dateFormatter.parse(thisdate);
                   } catch (ParseException pe) {
                        System.out.println (pe.getMessage());
              return returndate;
         }

  • How to change the date and time during OVM installation for Fusion Apps

    Hi,
    The customer is using Fusion Instance which is a V1 (Build 19) OVM installation shipped by Oracle with Demo Data (including seeded user IDs and roles) in it.
    Now they have issue with Date format for the application on the screens is showing MM/DD/YYYY where as it should be (Singapore) Standard is DD/MM/YYYY.
    Q/A: How to change the date/time in OVM image
    Refer SR : 3-5640792461
    Regards
    Ganesh Ananthapadmanaban

    Not a problem. There are a number of other system and network setup commands that you might find useful at some time. From within the Remote Desktop Admin in the Send Unix Command window type:
    networksetup -help
    systemsetup -help
    That will give you lists of the commands, including the one I posted above, with their basic syntax. They're handy to know.
    Cheers.

  • How to change the date format in xml form?

    hi,
    How to change the date format in xml form?
    For example:  11/20/2008 3:00:03 PM    ->   11-20 03:00
    Any opinions greatly appreciated!
    Thanks.
    Edited by: ke wenxing on Dec 2, 2008 8:33 AM

    You could go to System - User Profile - Own Data would take you to the "maintain user profile screen"
    Click the defaults button and change the date format.This changes date format for all the dates in your login.

  • How to change the date format  YYYYMMDD to MM/DD/YYYY

    Hi ,
    How to change the date format  YYYYMMDD to MM/DD/YYYY .
    Ex :  20071008  to 10/08/2007
    Is there any function module for this ??
    Regards
    Rahul

    Hi Sharma,
    check the code:
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-031.
    PARAMETERS: date1 RADIOBUTTON GROUP rad1 DEFAULT 'X', "SAP date format YYYYDDMM
    date2 RADIOBUTTON GROUP rad1, "Date format like aprial31, 2006
    date3 RADIOBUTTON GROUP rad1, "Date format like 31 apr,2006
    date4 RADIOBUTTON GROUP rad1, "Date format like DD/MM/YYYY
    date5 RADIOBUTTON GROUP rad1. "Date format like DD.MM.YYYY
    SELECTION-SCREEN END OF BLOCK b2
    FORM getmonth .
    SELECT mnr
    ktx
    ltx
    INTO TABLE T_month
    FROM t247
    WHERE spras = 'EN'.
    IF sy-subrc NE '0'.
    MESSAGE I "Message - Not able to get month values from the table T247
    ENDIF.
    ENDFORM.
    DATA : temp_date(16) TYPE c,
    temp1_date(60) TYPE c,
    year(4) TYPE c,
    daymonth(11) TYPE c,
    daymonth1(11) TYPE c,
    month(9) TYPE c,
    day(2) TYPE c,
    mon LIKE t247-ktx,
    len TYPE i .
    MOVE date TO temp1_date .
    CONDENSE temp1_date NO-GAPS.
    MOVE temp1_date TO temp_date .
    IF date2 EQ 'X'. "The date format is like Aprial 31, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    _len = STRLEN( _daymonth1 ).
    l_len = 13 - len.
    SHIFT daymonth1 RIGHT BY len PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    SORT t_month BY monthltx.
    READ TABLE t_month WITH KEY monthltx = month.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    len = STRLEN( month ).
    CONDENSE daymonth NO-GAPS.
    SHIFT daymonth LEFT BY len PLACES.
    day = daymonth.
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date3 EQ 'X'. "The date format is like 31 apr, 2007
    CONDENSE temp_date NO-GAPS.
    SPLIT i_date AT ',' INTO daymonth year.
    IF STRLEN( year ) NE '4'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ELSE.
    daymonth1 = daymonth.
    CONDENSE daymonth1 NO-GAPS.
    SHIFT daymonth1 LEFT BY 2 PLACES.
    CONDENSE daymonth1 NO-GAPS.
    month = daymonth1.
    CONDENSE month NO-GAPS.
    TRANSLATE month TO UPPER CASE.
    SORT t_month BY monthstx.
    MOVE month to mon.
    READ TABLE t_month WITH KEY monthstx = mon.
    IF sy-subrc <> 0.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ELSE.
    CONDENSE daymonth NO-GAPS.
    day = daymonth+0(2).
    CONDENSE day NO-GAPS.
    CONCATENATE year t_month-monthnumber day INTO o_date.
    ENDIF.
    ENDIF.
    ELSEIF p_date4 EQ 'X' OR p_date5 EQ 'X'. "Date format is like DD.MM.YYYY or DD/MM/YYYY
    CONDENSE temp_date NO-GAPS.
    IF STRLEN( temp_date ) EQ 10.
    o_date0(4) = temp_date6(4).
    o_date4(2) = temp_date3(2).
    o_date6(2) = temp_date0(2).
    ELSE.
    error = 'X'.
    WRITE : 'Invalid date format.' .
    ENDIF.
    ENDIF.
    IF STRLEN( o_date ) NE '8'.
    error = 'X'.
    WRITE : 'Invalid date format.'.
    ENDIf.
    ENDFORM. " f0100_conv_date
    Reward if helpful.
    Regards,
    Harini.S

  • How to change the dates for open enrollment

    Hi Experts,
    I am implementing ESS BP 1.0 on EP 7.0 SP11 ERP2005. In the benefits and payment workset, there is open enrollment process which is allowed between certain dates. How to change those dates in the backend system?
    Thanks!

    The open enrollment period dates can be changes under Benefits>Flexible administration>Define administrative parameters.
    Thanks

  • How to change the Data sources after deploying the application ??

    Hi All,
    i want to know how to change the Data sources after deploying the application to the application server ???
    I'm using Oracle Application Server 10g Release 3 (10.1.3.1.0)

    Can you access the Enrprise Manager website of the target Application Server from your location? If so, you can change the datasource in it. If not, yo can bundle the datasource definition in your archive and use that one instead of the one configured in the target OC4J container. Or this will just be the responsability of your customer: whenever you send a new WAR file, they have to modify the datasource if needed and deploy the application?

  • How to change delivery date (LFDAT) in  me57 item data

    hi ,
    While  Creating purchase order  (me57)  . on the basis  of info rec   . i want to change  delivery date  by
    passing  info rec to table eine and get field aplfz  .
    then adding  aplfz to sysdate    and pass it to 
    Delivery date   .
    i have done this using USER EXIT  EXIT_SAPMM06E_016
    and modified table  teket  with field eindt   but still in screen fields  it shows  old date value   .
    After Debugging i found that  that  it passes value from internal table ETT[] .
    how to modify internal table ETT[]  which is used to display data on screen   .
    regards
    Deepak.
    Edited by: Deepak Dhamat on Jun 8, 2011 8:32 AM
    Edited by: Deepak Dhamat on Jun 8, 2011 10:35 AM

    hi ,
    i have  implemented BAdi  me_process_po_cust
    for changing Delivery date   .
    method if_ex_me_process_po_cust~process_item .
    data : eeind_dt type eket-eindt ,
             t_aplfz type eine-aplfz ,
             delivery_dt(10) type c.
      ls_item = im_item->get_data( ) .
    if sy-tcode = 'ME21N' .
        select single aplfz into t_aplfz  from eine
          where infnr  = ls_item-infnr .
        if sy-subrc = 0 .
          if t_aplfz is  not initial  .
            eeind_dt  = sy-datum  + t_aplfz  .
            concatenate  eeind_dt6(2) eeind_dt4(2)  eeind_dt+0(4) into delivery_dt .
          endif.
        endif.
        ls_item-eeind = delivery_dt .
        call method im_item->set_data
          exporting
            im_data = ls_item.
        clear : delivery_dt  ,t_aplfz  ,eeind_dt .
      endif.
    regards
    Deepak.

  • How to change the data type in the table ESLL for the field USERF2_NUM ?

    Hello Friends,
    I have a requirement in which one of the change is to convert the data type of the field 'USERF2_NUM' in the table 'ESLL'  from 'QUAN' to 'CHAR'. 
    How do i do it if i have an access to change it..........i think i should also check the impact of the change if done.
    Kindly tell me as my requirement starts with this small change.
    Regards,
    Rajesh Kumar

    Thanks for the reply Sowmya.
    I would like to know 2 things.
    1. Is it ok to change the data type of the field 'USERF2_NUM '  which is in the table ESLL. from quan to char.
    2.  The table ESLL  already has entries. if we change the data type from QUAN to CHAR what is the  effect on the existing entries of the table .
    Kindly reply me back.
    Thanks & Regards,
    Rajesh Kumar

  • How to change start date in IT0088.

    Hi All,
    I am not able to change start date of IT0088(maternity).
    Record was maintained from 01.01.2014 to 31.12.9999. Now I need to change from 10.01.2014 to 31.12.9999.
    When try to change the record I am facing Changes across Tax year can only extended the validity period".
    Could you please advice me how to changes.
    Regards
    AB

    In which activity type you are trying to change the display name ?
    Have you checked the field property to verify that the field is locked by any other person ?
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

  • How to change operation dates in Production Order /Capacity Leveling

    Dear Experts ,
    We are using ECC 5.0 .In production order , scheduling happing as Backward  based on the Sales Order Delivery Date .I am doing the following :
    1.Demand as Sales Order with Delievery date : 20.03.2010
    2.Running MRP with Lead Time Scheduling -2  in md02 and converting the Planned Order to Production Order .
    4.Production Order have following dates :
             Basic Finsish Date : 21.03.2010
             Basic Start : the day Pl.Or--Pr.Ord
             Schedule Start : 15.03.2010
             Schedule Finsish : 17.03.2010
            Schedule Release : 13.03.2010
    5.In schedueling margin key :  Float Before Production : 3    , FAP : 3 , Release Period : 2
    6.In material master : Work Scheduling View : Setup : 3 days , Processing : 4 ,Interoperation : 2 for one Base Qty 1
    7.In operation : Op1  : Start Date  : 15.03.2010    Finish Date: 15.03.2010
                             Op2 : Start Date : 16.03.2010      Finish Date : 17.03.2010
                             Op2 : Start Date : 17.03.2010      FD : 17.03.2010
    Question :
    1.How to change the Operation dates  in Production Order Operation over view screen ? Today,  operation over view screen , Start date and Finsih Date  of individual operation are not changable with in Production Basic Start /BF date  or beyond .It is only changing based on the Standard Value : Labor
    2.How to change/re-schedule operation dates d in CM21 (Graphical view -Work Center Capacity load as per   Production Order and Operation combination ) based on capacity availale in advance dates? I am using  Time Profile : SAPSFCZ002 -SFC Graph midterm-3 motnhs and Planning  ,
    How to solve this above issue in scheduling operation and capacity distribution .
    Regards
    JH

    Closing the thread

  • How to change the date value in FM SD_CUSTOMER_HIERARCHY_PATH

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

    Hi,
    I have one requirement while creating sales order the pricing herarchy should be
    based on the date mentioned in the Delivery date. Generally the pricing hierarchy
    happens based on system date.
    So how to get the hierarchy based on the date mentioned in the delivery date ?
    I analysed in debugging if I change the date field in debugging mode in the function module
    SD_CUSTOMER_HIERARCHY_PATH then i am getting the pricing hierarchy based on the desired date
    other then system date.
       CALL FUNCTION 'SD_CUSTOMER_HIERARCHY_PATH'
               EXPORTING
                    CUSTOMER        = lvf_knvh_kunnr
                    DATE            = SY-DATLO -
    > Desired Date menioned
                    HTYPE           = fif_hityp
                    SALES_CHANNEL   = fis_sdorgdata-vtweg
                    SALES_DIVISION  = fis_sdorgdata-spart
                    SALES_ORG       = fis_sdorgdata-vkorg
               IMPORTING
                    CUSTOMER_HZUOR  = lvf_customer_hizuor
               TABLES
                    HPATH           = lvt_hierarchy_partners
               EXCEPTIONS
                    HITYP_NOT_EXIST = 1
                    NODE_NOT_EXIST  = 2
                    PARVW_NOT_EXIST = 3
                    OTHERS          = 4.
    The Field for delivery date I mentioned is RV45A-KETDAT and this value is not appearing in this
    position of function module.
    Can any one have Idea to change the hierarchy based on the desired date other than system date.
    Waiting for kind response.
    Best Regards,
    Bansidhar

Maybe you are looking for

  • How to Use a Boolean Vector To Index an Array

    Say I have an array A = [1 2 3 4 5 6 7 8 9 10]. I also have a boolean array B = [1 1 0 0 0 0 0 0 0 1]. I want to use the boolean array B to pick out elements in A, creating a new array C = [1 2 10]. In MATLAB, I would just type C = A(B). I'm scratchi

  • Upgrading from windows vista to windows 7

    I am upgrading from windows vista to windows 7. The upgrade I am using is going to delete all of the information I currently have on my hard drive. I have itunes set up with all of the correct artist/album/track/cover image information for my files.

  • SAP UI5 export to PDF ( Fetch data dynamically )

    Hello Everyone, I am creating a utility wherein the data ( table ) would be fetched from the back end and then it would be displayed on the front end. I have follewed the approach of Chandrashekhar ( Display Smartform (PDF) in SAPUI5   ) but I want t

  • Changing Audio, encoder crash v3.0.0.4743

    Hello, After I upgraded to Flash Media Live Encoder 3,its crashing when I change the Audio Device. I'm using a Dell Laptop with Windows Vista - Ultimate 32Bits 2 GHz Core2Duo. 4 GB Memory. I have a built in microphone + line in, when i change to line

  • Change of CR XI database dynamically to Oracle

    The following code is the one which I am using to change the database of CR XI(JDBC(JNDI)) dynamically to Oracle .....    final String CONNECTION_STRING = "Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@servername:1521:EMUSER);" +