Fix Values

Hello All,
I am currently working on a scenario where the data is coming from a external system for goods receipts and reversal of goods receipts for purchase orders. I am using a bapi_goodsmvmt_create(IDOC is MBGMCR). Can I use the same function module for the reversal of goods receipts too? Actually, the external system is sending "Accepted" if its a goods receipt (movement type = 101) and "Rejected" if its reversal (movement type =102). Can I use the fix value conversion to map this two fields like accepted - fixed value 101, rejected - fixed value 102. Also, Do I need to fill the IDOC control records during the mapping or if it takes the values from the XI message header automatically?
Looking forward to hearing from you all. Please help me.
Regards,
Shalini.

Hi ,
You don't need to use any value mapping ...i.e. you can accomplish the same using ...standard mapping function...i.e.
Let us just say if you recieve "Accepted / Rejected " ...compare it with a constant value
"Accepted/Rejected" and based on the result  send the movement type value (101/102) to the corresponding  BAPI/IDOC interface  field.
Now that way you can use the same BAPI or idoc ...whichever you prefer.
But first be clear about what you want to use ...BAPI or IDOC .
If you are using IDOC then you can use the following approach.
During mapping :
Control Records :
Specify TABNAM--- EDI_DC40
MANDT --- Here based on the business system based on DEV ,QA,PRD...specify the client...
i.e. choose standard function reciever ...and check if reciever is equal to the name of business system for dev ..then specify the client for dev ..and so forth (QA , PRD).
In the field direct specify ... constant value 1.
in the idoctyp  : specify the idoctype name.
in mestyp :specify the messsage type name.
in the field SNDPOR just like the mandt field check the reciever and specify sender port of dev ,qa and prd .
in the field sndprt : specify LS.
in sndprn :  just like the mandt field check the reciever and specify sender partner number for dev qa and prd
in the rcvpor : just like the mandt field check the reciever and specify reciever  port for dev qa and prd .
in rcvprt : LS
In RCVPRN  :just like the mandt field check the reciever and specify reciever  partner number for dev qa and prd .
In communication Channel in Directory:
Check these two enteries :
Apply control record values from payload.
TAKE sender for payload.
Best of Luck

Similar Messages

  • The fixed value date is empty and not displayed in the VA05 report

    Hi SD Gurus,
    With in the Sales Order in the line item level in the billing tab we have the fixed value date (VBKD - VALDT) were entered. 
    But when we try to execute the report VA05 were the fixed value date column shows empty (i.e without the date it shows the blank).  Can you any one help me with regard.
    We would like to fix this problem.
    Thanks in advance for providing solution to this query.
    Thanks and Regards,
    SAP-SD group

    Hi janarthanam,
    Ok.
    Goto t-code SQVI,SAP Quickviewer.
    Give a name to your query and enter description ,etc.
    Next enter the table from which you want to fetch data,ie,VBKD .
    Select "Layout mode" for displaying data on the SAP screen or "Basis mode " if you want to extract the data to a word doc,excelsheet or a flat file.
    Next you can select the fields you want to display into your report,their position and ascending/descending order,Here make sure u select
    the field u need to display ie. the fixed value date ( VALDT) .
    also select the fields u wish to have in the selection criteria.
    Enter these required information and u would get a report on the SAP screen or in your desired format.
    Hope it will suffice you.
    For any queries ,your are welcomed.
    Thanks,
    Umesh.

  • How to associate a fixed $ value to a date cell?

    I'm trying to keep track of payments made, according to date.
    I have one column where I enter dates.
    Can I associate these date cells to a fixed $ value, so that each time I enter a new date the SUM cell will automatically update?
    I hope so...
    Thanks!

    HI cp,
    By "associate these cells to a fixed $ value," I assume you mean that fixed value will be added to the sum as each date in sentered.
    Here are two examples, one showing the fixed amount in the adjacent column when the date (or anything) is entered in column A, the other showing only the total.
    Both use a second table to hold the fixed value, making it easy to edit, if necessary.
    Formulas:
    (Method 1)
    B2, and filled down to B10: =IF(LEN(A)>0,Fixed value :: A$2,"")
    LEN(A) returns the length (in character) of the entry in the cell in this row of column A. If anything is entered, the IF condition is TRUE, and IF returns the value in A2 of the smaller table. If nothing has been entered, the condition is FALSE, and IF returns a null string to the cell.
    B11: =SUM(B)
    Row 11 is a Footer row, and is not included in the cells to be summed.
    (Method 2)
    D11: =Fixed value :: A2*COUNTA($A)
    COUNTA counts the number of entries in column A of the Main table, then multiplies the fixed value in the small table by the result of the count and returns the result.
    This formula may be placed in any cell.
    (Both methods)
    The cell reference to Fixed Value::A2 (or Fixed Value::A$2) may be replaced with the actual value, and the second table eliminated, if desired.
    Regards,
    Barry

  • How can batch field in Purchase Order(PO) be a fixed value????

    Hi Experts,
    In SAP, when create a purchase order, there is a field "Batch" for every item,
    which means "Assigns a material that is manufactured in batches or production lots to a specific
    batch ".
    For some special reasons, we want for some certain materials,when create purchase orders every
    time,the "Batch" field will be a fixed values.
    For example,for material "AB1" ,"CD2",when create purchase orders every time,the "Batch" field will
    be "2345" automatically,do not need input manually.But for all the other materials, the "Batch" field would be null ,no value.
    How can I do this? How can assign fixed batch number values to some certain materials in Purchase
    Order?
    If there needs some ABAP development,which user exit do I need??
    Thanks for any reply!

    Hi there,
    You may need to establish, whether you wish to use batch managent or split valuation.
    Spilt valuation does allow you to default values into purchasing documents via information records, but I guess it depends on what else you want to do with this tracking
    Split valuation can be controlled independently at the material and plant level
    Regards
    Steve

  • XSLT mapping for fixed values

    Hi,
    i am doing a XSLT mapping. i have a field which has fixed values(can be performed using graphical mapping). but the same i am not able to implement for XSLT. can anyone give me a idea about this
    <removed by moderator>
    Thanks
    Deepika
    Edited by: Mike Pokraka on Jul 24, 2008 12:57 PM

    Step u2013 By u2013 Step Simple Approach for XSLT Mapping                         
    Step – By – Step Simple Approach for XSLT Mapping                         
    generic xslt mapping part 1                                             
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1                                             
    generic xslt mapping part2                                   
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9692eb84-0601-0010-5ca0-923b4fb8674a                                             
    xslt recursive templates                                             
    XSLT: Recursive Templates
    regards
    kummari

  • Function Module to validate a value against domain fixed values

    Hi,
    Could anybody please let me know if there is a standard Function Module that takes a Value and Domain name as an input and checks if the input value exists in the Fixed Values of the domain.
    Thanks,
    Shalabh

    Hi,
    you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
    If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
    Regards,
    Klaus

  • How to set to-mode to Fixed Value and give a date in RSDV transaction

    Hi
             I am working in BI7.0 environment. I am deploying HR Reporting Project. I need to load data to HR Info Cube 0PAPA_C02, to do this I need to maintain validity slice (RSDV transaction) for the Info Cube. After first load I need to set "to-mode-'Fixed Value'" and give a date such as 31.12.9999.
            Can anyone please let me know the steps on how to set- to mode to Fixed Value in RSDV.
    Thanks

    Here's the basic steps to follow:
    1) Go to tcode RSDV, enter the InfoCube name (0PAPA_C02) and Execute.
    2) If there is data already in the InfoCube you will get a validity table with default validty dates from 0CALDAY.
    3) Click on the Display/Change button so that you're in change mode and edit the validity date to be 31.12.9999.
    4) In the To-Mode column, set the value to 'F' for fixed.
    5) Put the fixed date value (31.12.9999 in your example) in Fixed to time.
    6) Click on Save.

  • Fixed Value Date at line item level is not in changable mode when copied

    Dear SDN Team,
    Hi i have a problem in the Fixed Value date at the line item level in the Return sales order.
    The Problem is When creating the return order with reference to the scheduling agreement (10.03.2010).  In the Return sales Order at the line item level the fixed value date is coping from scheduling agreement item (fixed value date eg: 31.12.2009)
    But i would like to have the fixed value date in the return order as 10.03.2010  but the field is greyed out.
    But normally when the sales document is created with reference to the preceding document the same will be copied.  But field is greyed out and it is not in changable mode.
    Can any one help how to solve this.
    I have checked also SAP Note where i did not find any messages.
    In normal scenario - when the order is created without any reference the fixed value date is in changable mode until the document is in open.
    Pleas help me to resolve this.
    With Regards,
    Jai

    Hi Lakshmipathi,
    I am sharing the resolution which was done to this requirement.
    We have a specific condition type with statisticaly used and with routine to have KWERT with zero value,
    Based on the different key combination. We have a specific key combination for the SA and SDoc and for this we need to maintain a condition record for the condition type with fixed value date and which will be linked to only the specific document.  Once this is done.
    We need to do update pricing in the sales order for the particular line item. by doing this the Fixed value date will be changed in the particular line item.
    Thanks and Regards,
    Jana

  • Fiscal Year fixed Values.

    Hi all,
    I have this situation.I have a report in DEVELOPMENT which uses the Fisal Year in column.The problem is when i rt.click on it>>edit>>Fiscal year Variant>>Restrict In the window(Selection for Fiscal Year Variant)..i don't see any values under Fixed Values and it has values under variables.
    But the in PRODUCTION when i run the other reports i see that fiscal year has Fixed values for fiscal year but no values under variables.
    Can anyone tell me why this is happening.This is true for all the reports that we have in prod.I checked the T009 table and saw that under fiscal year V6 nad K4 is taken.Then where is the problem?Can anyone help plz.
    Thanks a lot.

    Sorry..i was wrong i just verified that there is data in Production but not in Development. do u think thts the reason why i am facing this problem?
    Thanks.

  • Table lookup instead of fixed value mapping

    Hi Folks,
    My current scenario is that I have used fixed value mapping to map a single target field.  These details are actually maintained in the TP_Code table in R3 (a sample table).
    TradingPartner:SAP:Short Text
    PA:PA:Package
    PL:PAL:Pallet
    The table contains 20 entries.
    I am thinking that fixed value mapping is not a good option since there might have future changes in the TP_Code table.
    Is rfc lookup a good option?  But I am not sure which rfc to use and if there is any udf availble to be used in parsing the xml payload.
    Please advise.
    Thanks a ton!

    Thanks so much for the links!
    I managed to use and run the RFC lookup to an R3 table using JCo.  However, I am not getting the right result.
    I am getting the result in this format -> 800,PA,PAC,Package
    The correct output is PAC which is the third node.  Could this only be achieved by using java tokenizer?
    The code that I have used is as follows:
    Import com.sap.mw.jco.*;
    //write your code here
    String DBTABLE = a;
    String WHERE_CLAUSE = b" = ""'"c"'" ;
    String sapClient = "xxx";
    String hostName = "nnnxxx";
    String systemNumber = "xx";
    String userName = "nnnnn";
    String password = "******";
    String language = "EN";
    JCO.Repository mRepository;
    JCO.Client mConnection = JCO.createClient(
                   sapClient,
                   userName,
                   password,
                   language,
                   hostName,
                   systemNumber );
    // connect to SAP
    mConnection.connect();
    // create repository
    mRepository = new JCO.Repository( "SAPLookup", mConnection );
    // Create function
    JCO.Function function = null;
    IFunctionTemplate ft = mRepository.getFunctionTemplate("RFC_READ_TABLE");
    function = ft.getFunction();
    // Obtain parameter list for function
    JCO.ParameterList input = function.getImportParameterList();
    // Pass function parameters
    input.setValue( DBTABLE, "QUERY_TABLE");
    input.setValue( "," , "DELIMITER");
    //Fill the where clause of the table
    JCO.ParameterList tabInput = function.getTableParameterList();
    JCO.Table inputTable = tabInput.getTable("OPTIONS");
    inputTable.appendRow();
    inputTable.setValue(WHERE_CLAUSE,"TEXT");
    mConnection.execute( function );
    JCO.Table valueSet = function.getTableParameterList().getTable("DATA");
    String resultSet = valueSet.getString("WA");
    mConnection.disconnect();
    return resultSet;

  • Fixed values of dynamic attributes are not displayed for bid response

    Hi
    I have created a bid with dynamic attributes and have weighted the options with fixed values. I publish the Rfx (bid) and all is ok. The problem is that the fixed values are not displaying when doing a bid response.
    We are using SRM 7.0
    Can anyone help?

    No. Not yet. I think it is a bug. You should create an OSS message to SAP and ask them to pay special attention to the following code block:
    Class: /SAPSRM/CL_CH_WD_DODM_DYNATTR
    Method: /SAPSRM/IF_CLL_MAPPER~REFRESH
    At the end of the method, look for code context:
    IF lv_object_type = c_qte.
    *Set the Fixed Values Table to Invisible
        lv_visible = abap_false.

  • Fixed Values and Value Mapping

    Hi Experts,
         I hav a doubt regarding these to funnctions in Messege mapping. In both teh functions , we can change a value coming from Load to some thing else.
    Like
    A=1
    B=2
    C=8.
    The difference i hav noted is the in case of fixed values, we can assign the valsues in the messege mapping itself, and in case  of value mapping it is assigned in the value mapping table  in integartion directory, and thsi can be seen through  Runtime Workbench in Cache Monitering. . Apart from that there seems to be no big significat difference in the application .
    Pls correct me , if I ma missing out something.
    Pls tell me if both hav the same functionality, why were these 2 functions made , any 1 of them, preferably Value Mappimg Function could hav been enough.
    Regards,
    Arnab.

    Hi
    Fixed value mapping is Message mapping Specific
    But Value mapping allows u to create a Schema and group .
    Value mapping functionality will be well understood in large integration where many mapping programs using same conversions.
    Maintain advantage is maintance is easy with value mapping because if any chnages in value , just ID change is enogh no need to go mapping but this is not with fixed value
    For instance if u r using Fixed value in 50 mapping programs u need to change in all
    But if u r using Value mapping just one ID
    Which one u prefer
    all based upon u r landscape for mapping
    Srini

  • Fixed Values for Aggregates

    Hi, I'd like to know if anyone knows a way to have a range of fixed values for an aggregate?  I'd like to have the aggregate based on 0FISCYEAR 2003-2004.
    Any ideas, suggestions, workarounds?
    Thanks!

    Hi Kenneth,
    as it is not possible to have aggregates as you want, you can go with the following workaraound.
    Use Partinioning and use January 2003 to December 2004 as the partinioning parameters and use just 1 partition. With these settings you get 3 partitions for the cube. One for all data older than jan/03, one for all data younger than dec/04 and one for all data within your periods. For setting up the partitions the cube must be empty. Hope this helps
    regards
    Siggi

  • Need of value mapping  and fixed values in (conversions)under graphical map

    hi.
    helo all.
    i just want to know what  is the need of value mapping  and fixed values in (conversions)under graphical mappping.
    can any body explain me with real time example .
    waiting for your response.
    bye.
    regards.
    seeta ram.

    Hi Seetha Ram,
       Value mapping:  Where we maintain a table of values which are mapped.
    based on the incoming value we can send the respective resultant value.
        for Eg: for language SAP maintains as EN  --> English  etc
    can u refer these
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
    Re: Value mapping table
    Thanks and Regards
    Harsha Vardhan.P
    **Reward points if found useful**

  • F4 help not reflecting in ALV Grid for fixed values specified in domain

    Hi experts,
       As per subject i have a field for which i have assigned 5 fixed values in the domain level (of that field) . The problem is when i am displaying my ALV grid output i need a F4 help and F4 Option for the same is not reflecting and i have assigned in the field catlog as shown bellow.
    wa_fcat-fieldname = 'ZDEPLOY'.
      wa_fcat-tabname = 'IT_FINAL'.
    wa_fcat-f4availabl = 'X'.
    wa_fcat-key     =  'X'.
      WA_FCAT-SELTEXT_L = 'Deployment Planned'.
      wa_fcat-outputlen = '25'.
       WA_FCAT-EDIT = 'X'.
       WA_FCAT-REF_FIELDNAME = 'ZDEPLOY'.
       WA_FCAT-REF_TABNAME = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    for the above field the f4 help is not reflecting.
    Intrestingly i have another field which i have declared using the same procedure for which my F4 help (with fixed values ) is reflecting in the same program .with the values as shown below
        wa_fcat-fieldname = 'ZFINAL'.
      wa_fcat-tabname = 'IT_FINAL'.
      WA_FCAT-SELTEXT_L = 'Final Status'.
      wa_fcat-outputlen = '10'.
       WA_FCAT-EDIT = 'X'.
       wa_fcat-ref_fieldname = 'ZFINAL'.
       wa_fcat-ref_tabname = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    can u plz suggest me with a solution .
    Regards,
    Edited by: abhilash aswath on Oct 20, 2010 3:32 PM
    Moderator message: please do not use SMS speak.
    Edited by: Thomas Zloch on Oct 20, 2010 3:58 PM

    hi,
    There was a mismatch of characteristics. I resolved by matching the same.

  • DrillDown in ALV for fixed values of domains

    Hi,
    i want to create an ALV Grid with an structure that has data elements with domains containing fixed values.
    As far as i know, in Table Controls and other dynpro fields refering to such domains, the drilldown function is automatically available.
    In an ALV-Grid the values are available with the F4-Button.
    Ok, you can select a value, but the value is shown in the grid is the fixed value not the short text of the value like it is in Table Controls. What I did is to implement an conversion exit to show the short text in the grid, but I am not really satisfied.
    What I ask you: Is there a possability to show a field of the ALV-Structure with drilldown functionality automatically, when the domain has fixed values?
    Thanks in Advance
    Michael

    Hi Michael,
    I think I have found the solution to your problem. When you call the method SET_DROP_DOWN_TABLE of the ALV Grid, you can see that there are two tables parameters (both of which are optional).
    You can use the second tables parameter to give the short text of your field-value.
    Consider the following code snippet.
    ==========================
    data : lt_dropdown_with_alias type LVC_T_DRAL,
           ls_dropdown_with_alias type LVC_S_DRAL.
    ls_dropdown_with_alias-handle = '1'.
    ls_dropdown_with_alias-int_value = 'T'.
    ls_dropdown_with_alias-value = 'True'.
    append ls_dropdown_with_alias to lt_dropdown_with_alias.
    ls_dropdown_with_alias-handle = '1'.
    ls_dropdown_with_alias-int_value = 'F'.
    ls_dropdown_with_alias-value = 'False'.      
    append ls_dropdown_with_alias to lt_dropdown_with_alias.
    call method ALV_GRID->set_drop_down_table
                exporting IT_DROP_DOWN_ALIAS = lt_dropdown_with_alias.
    ==========================
    Obviously, <b>int_value</b> is the internal value and <b>value</b> is the text that you want to be displayed.
    Hope this helps.
    Regards,
    Anand Mandalika.
    P.S. I'm almost certain that this code will work. If it does, please do reward the points.

Maybe you are looking for

  • Macbook wont start after software update

    I ran the software update on my white macbook and now when the computer restarts it just spins. I have tried the hardware tests and it detects no problems. The computer will not restart it just spins and the fan goes for hours. Any help is appreciate

  • Album artwork info and help

    Hi all, i have a question, when iTunes find itself album images, everything is ok, i transfer music on iPod and images are correctly displayed. Th e problems is when iTuns can't find it , so i find it by mysel, I select all the songs and from the inf

  • Reversing "Add Flagged Photos to Selected Event" Command

    Apparently, we inadvertently moved all of our flagged photos to one event using the "Add Flagged Photos to Selected Event" Command. The problem is, I want all of these flagged photos back in their original events. Is there a way to do this without ma

  • I am unable to import my gmail contacts to my ipad2

    How come I can't import my gmail contacts to my iPad ?

  • Shuttle control vanished

    Since upgrading to 3.1.3 the shuttle control below the browser in filmstrip view is gone. I don't know if that feature was eliminated or I somehow toggled it off. (It is the little control on the left end of the scroll bar that allows rapid scrolling