Including Extra Field into Transformation/DS

Hi All,
This is the scenario.
In BW system the infoobject 0GLACCEXT(DS : 0GL_ACCOUNT_TEXT) got one extra field 0BAL_DEPEND in the infosource .
Since this field is not available in DS , I couldnot able to access 0BAL_DEPEND in transformation.Based on that infoobject i need to write some routines.
So anybody can suggest me what i have to do for including that extra field in transformation.
Thanks in Advance
Regards ,
   Anju

Hi Praveen,
In BW system, the field 0BAL_DEPEND is available in the infosource.In BI we are not using any infosources and using the 0gl_account_text DS we are creating the transformation.
Since the field, 0BAL_DEPEND is not available in DS,we cannot able to write a routine where we need this field.
Hope now u can understand the scenario.
Please advice me to proceed further.
Thanks an Advance.
Regards,
  Anju

Similar Messages

  • How to include z-fields into BAPI_GOODSMVT_CREATE

    Hi,
    In MIGO transaction, we have aded some fields on external tabs.
    These fields are mandatory fields
    The data of these fields will be stored in a Z-table when we save the MIGO.
    We have used BADI s to do this. It is working fine.
    Now, I want to post some data using MIGO tansaction. I want to use BAPI_GOODSMVT_CREATE to post tha data.
    How can I include my newly added fields in this BAPI ?
    Can u plz write the solutions?
    Thanks

    Hi,
    Go through the FM documentation of BAPI_GOODSMVT_CREATE, this gives some information how to populate the custom fields.
    Table parameter : EXTENSIONIN
    And check the BADI:  MB_BAPI_GOODSMVT_CREATE which is used to populate the custom fields for the material document.
    I think you also require to implement this badi in your case.
    You also need to extend the tables with the custom fields
    With regards,
    Dwarakanath.S

  • Send email including the data field into the html message body

    Hi all,
    I would like to send an email to each recipient once only, and including a data field into the html body message. I am not sure how to achive that with my current stored procedure.
    USE [CallManager]
    GO
    /****** Object: StoredProcedure [dbo].[PersonalCallsReminder] Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author: <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
    -- SET NOCOUNT ON added to prevent extra result sets from
    -- interfering with SELECT statements.
    SET NOCOUNT ON;
    -- Email Users
    declare @email varchar(max)
    declare mycursor cursor FAST_FORWARD for
    SELECT dbo.HumersStaffExtension.email
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email,
    dbo.HumersStaffExtension.res_id
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
    EXEC msdb.dbo.sp_send_dbmail
    @profile_name = 'CallsManagement',
    @recipients = @email ,
    @body_format = 'HTML',
    @subject = 'Personal Calls Reminder',
    @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
    body {
    font-family: "Times New Roman", Times, serif;
    font-size: 11pt;
    .auto-style1 {
    background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>
    <table style="width: 800px">
    <tr>
    <td>Dear,<br />
    <br />
    Please review your phone bills and submit your personal calls using the following link:<br />
    <a href="http://companyxyz/personalcalls/">Personal Calls</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>Kindly be informed that the deadline to process new bills is on the
    <span class="auto-style1">15th of each month</span>.</strong></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td>For assistance, please contact <a href="mailto:[email protected]">[email protected]</a></td>
    </tr>
    </table>
    <br/>
    <table style="width: 800px">
    <tr>
    <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
    </tr>
    </table>
    </div>
    </body>
    </html>
    FETCH NEXT FROM mycursor
    INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Changing the query to the following:
    SELECT TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
    FROM dbo.Calls_Mobile_Header INNER JOIN
    dbo.HumersStaffExtension ON
    dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
    GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
    dbo.Calls_Mobile_Header.ExtractDate
    HAVING (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
    ORDER BY dbo.HumersStaffExtension.email
    Will provide me with the following results:
    email ExtractDate
    [email protected]
    July-2014
    [email protected]
    August-2014
    [email protected]
    July-2014
    [email protected]
    August-2014
    Is it possible to send email to [email protected] once only including in the html message body the ExtractDate field results for July-2014 and August-2014? 
    I appreciate any assist on the issue.
    Thank you in advance.

    Refer the below code highlighted in bold.
    USE [CallManager]
    GO
    /****** Object:  StoredProcedure [dbo].[PersonalCallsReminder]    Script Date: 08/27/2014 10:26:55 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:  <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description: <Description,,>
    -- =============================================
    ALTER PROCEDURE [dbo].[PersonalCallsReminder]
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     -- Email Users
    declare @email varchar(max),@date datetime
    declare @temp table (email varchar(50), extractDate datetime)
    insert into @temp
      SELECT     TOP (100) PERCENT dbo.HumersStaffExtension.email, dbo.Calls_Mobile_Header.ExtractDate
      FROM         dbo.Calls_Mobile_Header INNER JOIN
             dbo.HumersStaffExtension ON
             dbo.Calls_Mobile_Header.TelNumber = dbo.HumersStaffExtension.telnr_prv COLLATE SQL_Latin1_General_CP1_CI_AS
      GROUP BY dbo.Calls_Mobile_Header.RecordStatus, dbo.HumersStaffExtension.usr_id, dbo.HumersStaffExtension.email, dbo.HumersStaffExtension.res_id,
             dbo.Calls_Mobile_Header.ExtractDate
      HAVING      (dbo.Calls_Mobile_Header.RecordStatus = N'0') AND (NOT (dbo.HumersStaffExtension.email IS NULL))
      ORDER BY dbo.HumersStaffExtension.email
    declare mycursor cursor FAST_FORWARD for SELECT DISTINCT email from @temp
    OPEN mycursor;
    FETCH NEXT FROM mycursor
    INTO @email
    WHILE @@FETCH_STATUS = 0
    BEGIN
        DECLARE @date nvarchar(200)
        SELECT @date=Stuff((SELECT ',' + [extractDate]
                  FROM   @temp  where email = @email
                  FOR xml path('')), 1, 1, '')
           EXEC msdb.dbo.sp_send_dbmail
                @profile_name = 'CallsManagement',
                @recipients = @email ,
                @body_format = 'HTML',
                @subject = 'Personal Calls Reminder',
                @body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <title>Personal Calls Reminder</title>
    <style type="text/css">
     body {
     font-family: "Times New Roman", Times, serif;
     font-size: 11pt;
    .auto-style1 {
     background-color: #FFFF00;
    </style>
    </head>
    <body>
    <div>Extract Date : ' + @date + '</div>
    <div>
     <table style="width: 800px">
      <tr>
       <td>Dear,<br />
       <br />
       Please review your phone bills and submit your personal calls using the following link:<br />
       <a href="Personal">http://companyxyz/personalcalls/">Personal Calls</a></td>
      </tr>
     </table> 
     <br/>
     <table style="width: 800px">
      <tr>
       <td><strong>Kindly be informed that the deadline to process new bills is on the
       <span class="auto-style1">15th of each month</span>.</strong></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
      <tr>
       <td>For assistance, please contact <a href="[email protected]:[email protected]">[email protected]</a></td>
      </tr>
     </table>
     <br/>
     <table style="width: 800px">
     <tr>
     <td><strong>*** This is an automatically generated email, please do not reply ***</strong></td>
     </tr>
     </table>
    </div>
    </body>
    </html>
          FETCH NEXT FROM mycursor
          INTO @email
    END
    CLOSE mycursor;
    DEALLOCATE mycursor;
    END
    Regards, RSingh

  • Include structure and extra fields in the same Internal Table

    Hi developers,
    im trying to declare an internal table with include structure and extra fields,
    something like this:
    data: BEGIN OF it_loans occurs 0,
          include structure zthrca006,   
          status(10),
          pernr   like pa0001-pernr,
          sname   like pa0001-pernr,
          tipomov(20),
          monto   like zthrca006-monto,
    data: END of it_loans.
    zthrca006 is huge so i dont want to type everithing.

    What is the issue?
    data: BEGIN OF it_loans occurs 0.
                 include structure zthrca006.
    data :     status(10),
    data :     pernr like pa0001-pernr.
    data :     sname like pa0001-pernr.
    data :     tipomov(20).
    data :     monto like zthrca006-monto,.
    data:  END of it_loans.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Insert extra field in ALV report

    Hi All,
    I’ve requirement like … need to add Vendor’s ‘Country Code’ very next to ‘Tax code’ field in standard SAP standard ALV report S_ALR_87012357 .
    I’ve copied program (RFUMSV00) into z-program.
    But I’m not getting any idea how can I add extra field in field catalogue and corresponding value in internal table.
    Any ideas please…..
    Full points will be rewarded for useful answers…

    I didn´t understand the question very well, but if i am in certain, you will have to modify the internal table to add the field. If the table which shows the alv is like a data base type, you will have to modify this in this way:
    data: begin of gt_table occurs 0,
         include structure ,
         new_field type XXXX.
    data: end of gt_table.
    Then, you will have to add this new field to the field catalogue, in this form:
    ls_catalogue-fialdname = 'NEW_FIELD'.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your requeriment.
    ls_catalogue-tabname  = 'GT_TABLE'.
    etc...
    Luck in your travel.

  • Vl10 extra field not translated

    Hi,
    In my company we use an user-exit to enhance the transaction vl10 (via "V50R_USEREXIT_TRANSF" and another include -> see source code below). This user-exits adds an extra field called "ST_ZZPRO" to the slider "Sales Order" of the selection screen of the transaction vl10 (see the attached picture "vl10 German")., This field allows to also choose the product hierarchy. This was implemented a long time ago and works afaik fine.
    The only problem with it is that the name (sic!) of the field "ST_ZZPRO" is not translated. So when I choose English ("EN") as a login language, the name of the field just shows up as "ST_ZZPRO" in the transaction vl10 (see the attached picture "vl10 English").
    This really suprises me as when I look up the selection texts of "ST_ZZPRO" it says "dictionary ref." and even translates it when I look at it in English (see the attached picture "Dictonary reference").
    Below I also attached the relevant code of the user-exit. Aside from comments there is nothing missing from my excerpt.
    Any help would be greatly appreciated!
    BR Michael
    "V50R_USEREXIT_TRANSF":
    ===
    FORM userexit_select_options_transf
    CHANGING  cx_select_options  TYPE shp_vl10_select_options
                    cx_list_profil     TYPE shp_vl10_list_profil.
    cx_select_options-zzpro = st_zzpro[].
    ENDFORM.
    ===
    The extra include:
    ===
    select-options: st_zzpro for vbap-prodh.
    ===

    Hi....Kiran....
    Say know we are craeted sales order with help of BDC... Now we are going to upadete one Ztable , which is having VBELN as a field.
    After complition of your BDC....
    > select * from <dbtable> into corresponding fields of table i_docno.
    >   read table i_docno with key <any key>.
    >   if sy-subrc = 0.
    >    i_docno-vbeln = p_new_vbeln.  <-----generated by BDC
    >    modify <dbtable> from i_docno.
    >   endif.
    Same logic you can use for internal table or flat file entry, If so you hav to write above code with in the loop.
    All the best. Plz get back here. If any problem with this.
    Thanks,
    Naveen.I

  • Formatting Address Fields into one

    Using Acrobat X PRO:
    I have a multi-page document in which a user is prompted for the address in two different formats:
    1) With the address split into 4 different values/fields:
    Street Field, City Field, State Field, Zip Field
    Example: "1234 Count Rd" (Next Line) "St Louis", "MO"  "55555"
    2) With the address all together:
    Complete Address on one line with a maximum length of 40 Characters.
    Example: 1234 Count Rd, St. Louis, MO 55555
    I would like users to be able to Fill in the Street, City, State, and Zip fields, and no matter what the format of the following fields, have the data autopopulated.
    This isn't a problem for example #1.  However, with #2 if i place all fields close together, I have to guess on how far apart to space each field and still have it fit and format properly.
    Is there any way to combine the values of 4 fields into one value (separated by commas)?
    Making the address field 'auto-fit' may be necessary but it's ugly if there is extra space in the remaining fields. 
    PLEASE SEE THIS EXAMPLE document i have created for the purpose of this post

    And if the combined fields are longer than 40 characters?
    With Acrobat 4 there was a sample form that one entered the data in fields like tile, first name, mi, last name, abd degrees  and then created a full name from those individual fields and adjusted for missing data.
    The doucment level script:
    / Concatenate 3 strings with separators where needed
    function fillin(s1, s2, s3, sep) {
    Purpose: concatenate up to 3 strings with an optional separator
    inputs:
    s1: required input string text or empty string
    s2: required input string text or empty string
    s3: required input string text or empty string
    sep: optional separator sting
    returns:
    sResult concatenated string
    // variable to determine how to concatenate the strings
      var test = 0; // all strings null
      var sResult; // re slut string to return
    // force any number string to a character string for input variables
      s1 = s1.toString();
      s2 = s2.toString();
      s3 = s3.toString();
      if(sep.toString() == undefined) sep = ''; // if sep is undefined force to null
    assign a binary value for each string present 
    so the computed value of the strings will indicate which strings are present
    when converted to a binary value
      if (s1 != "") test += 1; // string 1 present add binary value: 001
      if (s2 != "") test += 2; // string 2 present add binary value: 010
      if (s3 != "") test += 4; // string 3 present add binary value: 100
      /* return appropriate string combination based on
      calculated test value as a binary value
      switch (test.toString(2)) {
      case "0": // no non-empty strings passed - binary 0
         sResult = "";
      break;
      case "1": // only string 1 present - binary 1
         sResult = s1;  
      break;
      case "10": // only string 2 present - binary 10
         sResult = s2;  
      break;
      case "11": // string 1 and 2 present - binary 10 + 1
         sResult = s1 + sep + s2; 
      break;
      case "100": // only string 3 present - binary 100
         sResult = s3;
      break;
      case "101": // string 1 and 3 - binary 100 + 001
         sResult = s1 + sep + s3; 
      break;
      case "110": // string 2 and 3 - binary 100 + 010
         sResult = s2 + sep + s3; 
      break;
      case "111": // all 3 strings  - binary 100 + 010 + 001
         sResult = s1 + sep + s2 + sep + s3; 
      break;
      default: // any missed combinations
         sResult = "";
      break;
    return sResult;
    And then one could use a custom calculation script for a full address field:
    // Full business address including country
    function doFullBusinessAddress() {
      var ba = this.getField("business.address.full");
      var bc = this.getField("business.address.citystatezip");
      var bu = this.getField("business.address.country");
      event.value = fillin(ba.value, bc.value, bu.value, ", ");
    doFullBusinessAddress();

  • Adding fields into DSO in the Key Fields

    Hello Experts,
    I am using a Cube which loads data from DSO. Now, for some requirement I have to add one field into DSO in the key  fields Part. But DSO already has 16 fields which I cannot remove.
    So how can I add one more field into DSO in this case?
    The cube I am using is 0FIGL_C10 and the DSO is 0FIGL_O10.
    Regards,
    Nirav Shah

    You can create an Infoobject - acts as a custom key to concatenate multiple fields into one and make it a keyfield.
    15 fields + custom key ( concatenate 2 fields ) = 16 Keyfields
    Procedure  - > Example
    16th Key - > RVERS-Version-CHAR-3-0VERSION
    17th Key - > RMVCT-TransactnType- CHAR-3-0MOVE_TYPE
    1. Create one infoobject - ZKEY - Length = 6 ( add lenghts of the two objects)
    2. Make ZKEY as a keyfield for the DSO.
    3. Make 16th Key and 17th Key datafields.
    Create a routine for ZKEY in the transformation or transfer rules to concatenate values coming from source into one.
    TRFN Routine
    Concatenate SOURCE_FIELDS-RVERS SOURCE_FIELDS-RMVCT into RESULT.
    Or
    Transfer Rules Routine
    Concatenate COMM_STRUCTURE-RVERS COMM_STRUCTURE-RMVCT into RESULT.
    This way nodata will be lost/overwritten due to less number of keyfields in the DSO.
    We have as many as 21 Keyfields for GL Totals DSO.

  • I downloaded the Special Edition of 'Avatar' with the included 'Extras'... I use to see them in my iTunes library, but, can no longer locate them anywhere on my computer or in the iTunes library files! What happened?

    I purchased 'Avatar' The Special Edition with the included Extras with a gift card. I had enough money in my account to cover this purchase. I only got to watch the 'Extras' for one or two times, and now, they have vanished! They no longer appear in my iTunes library or anywhere on my computer! Where are they and how do I regain access? The movie, itself, is still in the library...only the downloaded 'Extras' are gone!

    Visibility of the Podcasts section is controlled from within the Edit > Preferences dialog.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    Missing tracks
    Typically this can happen because a file or folder is accidentally shunted to the wrong location. iTunes can also get confused if it expects to be talking to an external drive which isn't there. If will often reset the default media folder location and may have trouble finding files in the old folders.
    Select one of your tracks that is missing in action. Press CTRL-I to Get Info. Cancel when asked to try to locate the file, then look at the location given on the summary tab. This where iTunes thinks the file ought to be? Now find out where it actually is. Post back the two locations for comparison. I should be able to give you some steps to reconnect everything once I can determine which of the things that might have gone wrong is most likely in your case.
    When you get it all working make a backup!
    tt2

  • Query : Addition of extra fields in the User Registration page of portal.

    Hi All,
    I have a query, about adding extra fields in the new user registration page of portal.
    If you can suggest the required source files in details,inorder to incorporate two more fields.
    Say, AGE and COMPANY,with the existing fields in the same page.
    Along with this,can you please send the details of retrieving those information from backend and the backend functionalities associated with the SUBMIT button on the registration page.
    Regards,
    Sudeep

    Hi,
    Your query is divided into two parts.
    The first part is adding new fields into existing form. This feature comes under Branding of portal. Plz use the link below understanding the same and related help :
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/affe402a5ff223e10000000a155106/frameset.htm
    The second part is retrieving the values from backend.Here it will be the UME database. You need to develop a logon.par file and replace the same in your portal.
    Happy Customizing.
    Sukanta Rudra

  • How to  include a report  into the  SAP-SCRIPT

    plz tell me 
    How to  include a report  into the  SAP-SCRIPT
    ASAP

    creat a z report like this....................
    REPORT  zmmgl_picklist1.
    TABLES : likp,ltap,ltak.
    data : lv_NUM1 type c .
    data : lv_NUM type c.
    *&      Form  get_data1
          text
         -->IN_DATA    text
         -->OUT_DATA   text
    FORM get_data1 TABLES in_data STRUCTURE  itcsy
                         out_data STRUCTURE itcsy.
    READ TABLE in_data WITH KEY name = 'LTAP-VBELN'.
    lv_NUM = lv_NUM1 + 1.
    out_data-name = 'lv_NUM'.
      out_data-value = lv_NUM .
    APPEND out_data.
    endform.
    *&      Form  get_data
          This form is to read  details from  LIKP    *
         -->IN_DATA    text
         -->OUT_DATA   text
    FORM get_data TABLES in_data STRUCTURE  itcsy
                         out_data STRUCTURE itcsy.
      READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single bldat from likp into likp-bldat where lgnum = ltap-lgnum.
      out_data-name = 'LIKP-BLDAT'.
      out_data-value = likp-bldat.
      APPEND out_data.
       READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single vstel from likp into likp-vstel where lgnum = ltak-lgnum .
      out_data-name = 'LIKP-VSTEL'.
      out_data-value = likp-vstel.
      APPEND out_data.
    READ TABLE in_data WITH KEY name = 'LTAK-VBELN'.
      Select single kunnr from likp into likp-kunnr where lgnum = ltap-lgnum.
      out_data-name = 'LIKP-KUNNR'.
      out_data-value = likp-kunnr.
      APPEND out_data.
    ENDFORM.                    "get_data.
    after this go to the script editor......
    /: perform get_data in program zmmgl_picklist1.
    /: using &ltap-vbeln&                 (Reference field.this field          should be there in both program and script.....)
    /:changing &likp-bldat&         
    /:changing &likp-vstel&
    /:changing &likp-kunnr&
    \[removed by moderator\]
    Regards
    Anbu
    Edited by: Jan Stallkamp on Jun 10, 2008 2:26 PM

  • How to include new fields in PRICAT

    Hi,
    My aim is to import a new field to the PRICAT price catalogue, and be able to
    maintain this field in transaction W_PRICAT_MAINTAIN.
    I have entered the new field in table PRICAT_K003 (using an append structure),
    and have used the Badi implementation WRF_PRICAT_DIALOG to include the new field in the ALV report definition for transaction W_PRICAT_MAINTAIN. For this purpose I also included the field in structure WRF_PRICAT_K003_STY.
    However, when trying to make the necessary changes to copy the field content  from PRICAT_K003 to the new screen field, I encounter a few problems.
    For this I have created a new Badi implementation for Badi definition
    WRF_PRICAT_POOL, method IF_EX_WRF_PRICAT_POOL~EXTEND_ARTICLE_MASTER.
    This method uses parameter io_inbound_item (type ref to CL_INBOUND_ITEM). The field doesn't seem to be visible in any of the available structures in this method. I have attempted to include the new field in some of the other structures (in addtion to WRF_PRICAT_K003_STY), but have been told by the system not to do this.
    Any suggestions on how to solve this problem?
    If there is anybody out there who have a description on how to import new fields
    into PRICAT and further on to the article master, I would very much appreciate if you could pass it on to me.
    Best regards,
    Per Erik Fjelde

    Hi,
    I have a similar problem with inbound pricat. I extended PRICAT_K003 with a few custom fields. These fields are filled using a BAPI table extension and implementing IF_EX_PRICAT_IN_EXTIN. The fields show up correctly in W_PRICAT_MAINTAIN and are also filled when I look in the database table. But when I create an article master from an entry in the pricate catalogue, all custom fields are cleared. I wanted to use IF_EX_WRF_BADIPRE_POST_MAT~PRICAT_PRE_POSTING_PROCESS to transfer the custom fields to MARA, but the incoming structures of the method only include blank custom fields.
    So I found IF_EX_WRF_PRICAT_POOL, but it's methods include only structures which are not extendable. So I don't see how I can preserve the data in my custom fields.
    Per Erik, have you found a solution for your problem?
    Is there anybody else out there who knows how to transfer custom fields from the price catalogue to material master data?
    Best regards,
    Holger Merk

  • How to validate Extra Fields in Journals

    Hi all.
    We are working with journals in SAP EPM 10, and we have created several extra fields as a part of the process. as you already know, the extra fields are dummy fields, and we would need to perform some validation when the user save or post the journal.
    Is there any way to do it? any badi or something similar?
    Thanks in advanced.
    Regards

    First of all and just to avoid misunderstandings. For my purpose which was to check the values in the additional fields added into a journal template, I´ve implemented the BADI UJJ_CALCULATED_AMOUNT.
    Then, I´ve added the code into the method IF_UJJ_CALCULATED_AMOUNT~CALCULATE_AMOUNTS. That code should work when the user is saving the journal.
    If by adding a breakpoint, you are still having problems to debug this piece of code, what you can do  is to add an ABAP code at the beginning of the mentioned method like this:
      DATA:lv.
      lv = 1.
      IF sy-uname EQ 'YOURUSERNAME'.
        WHILE ( lv = 1 ).
          lv = 1.
        ENDWHILE.
      ENDIF.
    And after that, in the transaction sm50, you should be able to select and debug the process.
    Please let me know if you are ok after that.
    Regards.

  • Add extra field to RFUMSV00

    Hi,
    I'm struggling with programming RFUMSV00.I have to extend this program with one extra field (BSEG-EGBLD).So I made a Z-copy of the original.But this program is working with a logical database.Program is using two field-groups : header and daten.Futher one it's using
    INSERT ep INTO daten.
    So I have extended this structure (ep) in the program with the field EGBLD.Then before the extract statement I have added the following code :
    GET bseg.
    select single egbld from BSEG into ep-user_field_a
                              where bukrs = ep-bukrs
                                and belnr = ep-belnr
                                and gjahr = ep-gjahr
                                and bschl = '01'
                                and mwskz = 'A4'.
    EXTRACT daten.
    Program is working with ALV.But seems to be that subroutine PERFORM print_table
                TABLES
                   <gt_alv>-t_auste_ep     "lt_outtab
                USING ...
    is not modifable for parameter <gt_alv>-t_auste_ep  .
    So I am lost.
    Is this the way ? Or do I have to use Badi's ?Anybody who can give me some advice ?
    regards,
    Stefan

    Stefan,
    I am not sure which version of WAS you are working on. But if you are working on WAS 6.40 by any chance, there might be some help.
    Take a look at my weblog.
    /people/ravikumar.allampallam/blog/2005/12/05/need-a-way-to-change-appearance-of-a-standard-existing-alv-report
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • How to enhance extra fields in BAPI_GOODSMVT_CREATE.

    Dear Sap Gurus,
    I am facing a problem . I am using standard bapi for MIGO transaction i.e. BAPI_GOODSMVT_CREATE . it is working fine. in our company, along with BADI, MIGO was modified with two extra tab viz. Waybill and ExchangeRate. Here we are maintaining some of  own developed fields . Plz guide me how can i modify this Bapi so that i can update these developed fields . The appropriate answers will be highly appreciated <removed by moderator>.
    Is there any alternative solution?
    NOTE : Currently Using ECC 5.0 SAP
    Thanks & Regards,
    Vijay
    Edited by: Thomas Zloch on Oct 19, 2010 5:43 PM

    Hello,
    1. Use structure BAPIPAREX for passing custom fields. (There are several blogs/posts on how to make use of this).
    2. In the BAPI i noticed there is a BAdI to populate these fields into your business tables.
    Call BAdI MB_BAPI_GOODSMVT_CREATE to fill own fields
        TRY.
            get badi lo_mb_bapi_GOODSMVT_CREATE.
          CATCH cx_badi_not_implemented.                    "#EC NO_HANDLER
        ENDTRY.
        TRY.
            call badi lo_mb_bapi_goodsmvt_create->extensionin_to_matdoc
              EXPORTING
                EXTENSION_IN = EXTENSIONIN[]
              CHANGING
                CS_IMKPF     = S_IMKPF
                CT_IMSEG     = T_IMSEG[]
                CT_RETURN    = return.
          CATCH cx_badi_initial_reference.                  "#EC NO_HANDLER
        ENDTRY.

Maybe you are looking for