CREMAS05 Vendor idoc other fields

Hi,
Basic type CREMAS05
Vendor master data distribution
Released since Release 700
1). In idoc it is showing the
     REGIO : Region (State, Province, County)
&  LAND1 : Country of company only, but i want its text.
Ex: For 22 - Tamilnadu &
      for IN - India.
2). When i set a Deletion flag for any vendor using T.Code XK06, in generated idoc,
LOEVM field value will be 'X',
if vendor is active its value is ' '.
LFA1-LOEVM-Central Deletion Flag for Master Record
E1LFA1M : Segment for general vendor data
LOEVM : Central Deletion Flag for Master Record
i hv to put the constant value TRUE, if vendor is active &
FALSE if deleted, for the mapped field in XI.
Pls let me know hw to solve the above requirement.
Regards,
Balaji

Hi,
IDoc contains 2 Segments:
Seg1 & Seg2.
Seg2 is the child of Seg1.
Seg1 contains field:
CODE
Seg2 contains fields:
DESCRIPTION
HIERARCHY
When i trigger the idoc, the data is stored as:
Seg1:CODE: 1001
Seg2:DESCRIPTION: test1,
HIERARCHY: 00
Seg1:CODE: 1002
Seg2:DESCRIPTION: test2,
HIERARCHY: 01
Seg1:CODE: 1003
Seg2:DESCRIPTION: test3,
HIERARCHY: 02
Seg1:CODE: 1004
Seg2:DESCRIPTION: test4,
HIERARCHY: 03
creating the duplicate segments as shown above.
This data is mapped to the structure in XI.
The structure to map will be as follows:
str1
---ID1
---DES1
---ID2
---DES2
---ID3
---DES3
i've to map depending on the field HIERARCHY condition.
IF HIERARCHY = '02' THEN
ID1 = 1003.
DES1 = TEST3.
IF HIERARCHY = '01' THEN
ID2 = 1002.
DES2 = TEST2.
IF HIERARCHY = '00' THEN
ID3 = 1001.
DES3 = TEST1.
How to map this condition based, in the MESSAGE MAPPING?
pls help in solving this if possible with a screen shot.
Regards,
Balaji

Similar Messages

  • Replaced value is not getting relected in IDOC segment field

    Hi,
    Need your help for the below issue.
    I am replacing the PO # with Delivery Doc # . But the replaced value is not getting reflected in the IDOC segment field(e1bp2017_gm_item_create-po_number.).
    Function Module  which I am using is IDOC_INPUT_MBGMCR as a copy.
    Here is my code given below:
    SELECT
                SINGLE vbeln
                  INTO lx_vbeln
                  FROM lips
                 WHERE vgbel EQ e1bp2017_gm_item_create-po_number.
    Move lx_vbeln TO e1bp2017_gm_item_create-po_number.
    MOVE-CORRESPONDING e1bp2017_gm_item_create
                   TO goodsmvt_item.
    Then this is passed as  TABLE in "BAPI_GOODSMVT_CREATE".
    Please do the needful.

    Hi Dheepa,
    Check it in debug whether the filed is empty or having po#, when ur code is executed for the replacement. if it is empty, po# is populated after ur code. in this case you need to write the code in suitable place.
    Reddy

  • How to send vendor IDOC data from SAP R/3 to XI.

    Hi experts,
    I have developed the IDOC to FILE scenario for Vendor Master Upload. I want to place flat file in local folder with in XI or Outside of XI. (Using NFS or FTP protocol in FILE adapter). My First quesstion is How to setup Folder with in XI ro Out side XI?
    And also I want to push the IDOC from SAP r/3 to test the scenario. Both XI and R/3 systems are configured to exchange data.
    How to Push Vendor IDOC from SAP R/3 to XI? (we can send XML directly to XI; but the R/3 kernal should be moe than 6.20).
    Thanks in Advance.....

    Hi,
    >>My First quesstion is How to setup Folder with in XI ro Out side XI?
    Its a normal way to creation of folders in Os level . u can create the folder in XI Server or on the FTP Server.
    ALE Settings
    Steps
    SAP XI
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    SAP R/3
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    In SLD – System Landscape Directory
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    In Transaction SALE
    Define and Assign the logical system name.
    IDoc-XI-File scenario
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Posting the IDOC from R/3 to XI
    /people/sameer.shadab/blog/2005/07/25/reposting-idocs-instead-of-recreating--for-testing-purpose-xi
    REgards
    Seshagiri

  • During PO creation vendor material no field should be populated using BADI

    Hi,
    I have created on PR and using PR I am trying to create PO. But one field vendor material no  remains blank when giving vendor at the top vendor field.
    So my requirement is the vendor material no field in item overview should be populated regardless filling vendor field at the top.
    So this functionality can be achieved by BADI or User exit.
    So any one give the proper suggestion to get the value in the vendor material no field while creating PO.
    Waiting for quick response.
    Best Regards,
    Bansi

    Hi,
    use the badi ME_PROCESS_PO_CUST in that method PROCESS_ITEM....
    use GET_DATA method like im_item->get_data.
    and modify the value anduse set_data ...
    Thanks,
    Shailaja Ainala.

  • How to map idoc segment field E1IDB02-FIIKONTO with BSEG-ESRNR.

    Hi,
    I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields segment with my logic, so please anyone kindly contribute in mapping idoc segment field  with the logic given below:
    idoc type :PAYEXT  outbound idoc.
    message type: PEXR2002
    This is my logic: i need to populate the ISR number(BSEG-ESRNR  ) in idoc segment field( E1IDB02-FIIKONTO)
    DATA : str1 TYPE string,
          len1  TYPE i,
          len2  TYPE i,
          str2  TYPE string,
          str3  TYPE string.
    str1 = '01-1234-4'. ---> BSEG-ESRNR  "ISR Subscriber Number
    REPLACE FIRST OCCURRENCE OF '-' IN str1 WITH '_'.
    REPLACE ALL OCCURRENCES OF  '-' IN str1 WITH space.
    CONDENSE str1.
    len1 = STRLEN( str1 ).
    IF len1 LT '9'.
    len2 = '9' - len1.
    CASE len2.
       WHEN '1'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '00'.
       WHEN '2'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000'.
       WHEN '3'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0000'.
       WHEN '4'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000000'.
       WHEN OTHERS.
    ENDCASE.
    ELSEIF len1 EQ '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0'.
    ELSEIF len1 GT '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH space.
    CONDENSE str1.
    ENDIF.
    Thanks in Advance.

    Resolved.

  • Vendor name & Reference field to be copied to payment document

    Hi Gurus,
    I am doing vendor paymen by t.code F110 .   I want to copy vendor name and reference field to be copied from original booked billing document to payment document TEXT Field and Reference respctively.  How do i do the same ??  pleae advise.
    Regards
    AVINASHt

    Hi Avinash,
    Were you able to populate the field XBLNR in the payment document with the Vendor invoice number field? Kindly let me know how you were able to successfully do it.
    Thanks,
    Thameem

  • Vendor Change - Specific fields

    Hi Guys,
    We have to give users access to only specific fields of the vendor master like Email, Bank Account number and Payment Methods.
    So the users should not be able to change any other fields in the vendor master. I want to create a new role and give authorizations to the users. Is it possible to configure the role in such a way that the user who is assigned this role will be able to change only those fields in the vendor master and not any other fields.
    I want to give the users access to Email id, Bank Account number in the Payment transactions and the Payment methods field in the Company code payment transactions tab.
    Please advise how this can be done.
    Thanks,
    Srikanth.

    This is possible by the following steps
    SPRO->Financial Accounting->AR/AP->Vendor Accounts->Maser Data->Define Sensitive Fields for Dual Control (Vendors)
    You can add the fields that you need to restrict here. Once any changes is made to these fields then the vendor is automatically blocked for payment. These changes need to be confirmed by other user using transaction code FK09.
    Give access to FK09 only for concerned persons.
    I hope this will help you.

  • Inbound idocs segment fields

    Hi,
    Iam new to idocs and a functional consultant. I need to know whenever we receive the inbound idocs and if i see the segments of the inbound idoc, do the fields which i see in the segments are the sap fields.????/ for instance if the inbound idoc needs to create a sales order, then the fields of the segments of such an inbound idoc are the normal sap sales order fields ??
    do i need to give functional specs to the abapers that whenever the inbound idocs is received the segments fields need to be mapped to sales order fields if such an idoc needs to create a sales order ??
    regards
    sachin

    Hi Sachin,
    Most of the IDoc segment fields are simmilar to SAP transaction fields e.g. most of the ORDERS IDoc segment fields will be simmilar to what you can see in VA01/VA02 screen fields.
    Some fields may have different names.
    In the case of few segments which may repeate in IDoc with different qualifiers (such as partner details, date segments), fields will be same but different qualifier value decides where these field values will be populated in the Order.
    If you are using standard function module to create Order, it will take care of mapping IDoc segment fields to VA01/VA02 screen fields. But if it is a Z function module, then you need to specify the mapping.
    Hope this information will help you.
    Regards,
    Mahesh Pakhale

  • Vendors PAN Number field Mandatory in Vendor Master Data

    HI,
    I am working in 4.7 EE version. I want to make Vendors Pan Number field mandatory while creating Vendor Master Data. As per my knowledge we cannot use Validation for this purpose.
    Regards
    Sudhakar

    Hi Parag,
    In ECC 6.0 you get a tab CIN details in vendor master itself wherein you can maintain PAN no. sales tax no. etc of the Vendor.
    you dont need to use any field for PAN no... If this is followed then wht you are saying is correct. But the problem is that we want to make PAN no. in CIN details tab mandatory and that is not possible.
    Regards,
    SAPFICO

  • Standard Vendor IDoc CREMDM04 needs to be triggered from the transactions

    The Standard Vendor IDoc CREMDM04 needs to be triggered from the following transactions:
    u2022XK01 (Create Vendor)
    u2022XK02 (Modify Vendor)
    u2022User Exit EXIT_SAPOTM_VEND01 .
    The following are some more details:
    u2022Receiving System: SAP PI
    u2022Sending System: SAP ECC
    u2022Direction: Outbound from SAP ECC.
    How do we achieve it ??
    BR.
    Tan
    Moderator message: please do more research before asking, show what you have done when posting.
    Edited by: Thomas Zloch on Feb 20, 2012

    Hi,
    In Tx. WE42, Select the process code for the corresponding partner and bind your workflow / task inplace of the function module with the process code. Now, this will enable the idoc to get placed in the agents(identified by that workflow)inbox.
    But to design the workflow, you`ll have to use tx. swdd and prior to that get some basic understanding of Business Workflow from SAP Library.
    Hope the info. is helpful and reward points if so.
    Regards

  • Vendor IDOC failures

    Hi Experts,
    We have series of Vendors Masters updated through CREMAS IDOCs. But some of the CREMAS IDOCs fail as the BANK key in the Vendor is blocked by another user.
    Actually the Mass vendor update happens as a result some of the bank keys will be locked up and a result IDOCs fail.
    Can we have a solution for this scenario?
    1. Vendor IDOC is updating  a vendor  master with a same bank key
    2. another IDOC is updating another vendor master with a same bank key.
    The second IDOC fails, can we avoid this ?
    Please give a solution for the same.
    Thanks,
    Rohan

    Hi,
    I can suggest one solution, You can find a user-exit in inbound FM( you can find this FM in inbound process code).
    Write a code in user-exit to check if the bank key is locked by other user by applying a lock and if it fails that's mean it is locked by other, put a wait time and try again.
    Thanks,
    Sajid

  • IDoc string field to JDBC date field - Not working

    Hello everyone,
    Once again I must ask you something that is keeping me..
    I had a interface type RFC ASync to JDBC SQL Server, it was working fine. Then, I was asked to change to a type iDoc ASync to JDBC SQL Server.
    At first, it was not a problem, just manual work. But them, I am getting an error.
    In the RFC, I had a date field, that was directly related to the date field on the JDBC destination, so the mapping was pretty much straight forward. The SQL INSERT command was working fine on this cenario.
    Now, in iDoc, this field was automatically converted to a string, and somehow, PI is not understanding that string has to be mapped to a date field in the JDBC.
    Is there any 'workaround' for me to do this?
    Thanks!
    Ricardo Sancio Lóra
    Brazil

    The issue here is that somehow, the same SQL insert command that was working, does not work anymore.
    This is the SQL command took from RWB log monitor:
    INSERT INTO  aniversariantes_sap (matricula, nome, nascimento, unidade) VALUES (00000070, 'Ricardo Lora', '19851216', 00000000)
    If I run this query on my DB it works.
    But, in PI, it's not, here is the error:
    Could not execute statement for table/stored proc. "aniversariantes_sap" (structure "ANIVERSARIANTES_SAP") due to com.microsoft.sqlserver.jdbc.SQLServerException: Syntax error converting datetime from character string.
    I´ve tried cast() and convert() using mapping 'habilities', but also, does not work. Work if I run in the DB, but not if PI runs it.
    Wierd..
    Ricardo

  • Idoc Segment Fields

    Hi,
    I am having a problem with the display of idoc segment fields. When i check the Idoc segment contents in WE02 it is displaying the fields which dont have the value in the DB table along with the fields which have the data. To avoid this what is the procedure. I dont want to display the fields in the content of segment which does not contains the data.
    Plz help me out.
    Regards
    Santosh

    Hi,
    U have to use for reduced message type...U need to filter the segments which  u don't want...In BD53 u need to create reduced message type....
    plz go through the below link..
    http://help.sap.com/saphelp_erp2005/helpdata/en/d3/06f6679aaf0e44b67ca6d6b58d91df/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0b/2a6702507d11d18ee90000e8366fc2/content.htm
    Regards,
    Nagaraj

  • Vendor IDOCs are not uploading in LFA1 table

    Hi All,
    We have a SAP system where Vendor IDOCS are coming from MDM through SAP PI middleware. The problem we are facing is we are not able to see all Vendors in LFA1 table.
    In WE05 IDOCS are posting successfully but when we check for respective vendors in LFA1 table only few vendors are available there.
    Can anybody guide us to solve this issue? Also pls let us know the process of uploading master data into table as we are very new in ABAP.
    Regards,
    Sarita

    be open minded. SAP gives several import methods to load vendors.  one of them is per IDOC.
    But the vendor master IDOC does not automatically create the adress master.
    And even more important, if you migrate data from one SAP system to another, the IDOC method is more straight forward than the batch input, because you can send the IDOCs from legacy system to new system, you will then have a 1:1 relation of the structure in LSMW and you can create vendor masters by knowing the new vendor number from an internal number range already in LSMW, long before you actually post the vendor. With batch input you can either post with numbers from external number range, or you just dont know the new number already in LSMW.
    And you dont need to download the data to Excel. And further, the LFA1 adress data has less information than the ADRC adress data.

  • Quick Question - iDoc 'empty' fields?

    Hi eveyone!
    Quick question before leaving for holiday
    I just finished my scenario 'iDoc to JDBC (Stored Procedure)' and it works just fine.
    But, I realize that if a field is empty IN THE IDOC, this field is not COMING to SAP-PI, therefore, I can't map it to the Stored Procedure.
    Is this behavior normal? I mean, the field not come from iDoc because is empty?
    (I can see the field in the segment, WE19 in R3 (empty), but not in WE02 neither in the INCOMING of SAP-PI Monitor, it's just not there, because it's empty at the origin).
    I´m just 'afraid' I would have to do this special treatment for EACH field...:(
    Thanks guys!
    Ricardo Sancio Lóra
    Brazil

    Is this behavior normal? I mean, the field not come from iDoc because is empty?
    Empty fields are not shown in PI monitoring, so it's ok.
    I´m just 'afraid' I would have to do this special treatment for EACH field...:(
    If the fields at target side are mandatory then you need to take care in mapping.

Maybe you are looking for

  • Run multiple reports from PL/SQL

    I am planning to run reports from a PL/SQL batch program. My requirement is i need to generate multiple(around 50) reports with only a difference in one numeric parameter which will go from 1 to 50. I am planning to invoke the report inside a loop wh

  • BoxLayout : unslightly gaps betw vertical components?

    Hi, all. I've this BoxLayout with PAGE_AXIS alignment, it works, but there is this big gap between the components vertically. The components are self-defined and consists a pair of JLabel and JTextArea. How do I pack the components tighter vertically

  • Flash Paper dans un document flash

    Allo tout le monde, J'ai converti mes fichiers pdf en flash paper 2 format swf : ça au moins c'est très facile ! Méthode: - Ouvrir un fichier pdf - Aller à la fonction imprimer - Choisir l'imprimante qui est Flash Paper 2 et pouf !, tout ce fait auto

  • Nokia lumia 800 slow 3g

    hi i just cant find a solution for my internet connection problem. wifi works fine but when i switch to cellular data its very slow and sometimes i cant even connect. im on tmobile and i asked them for help but they said everything is fine from their

  • Looking for 35mm scanner to work with Snow Leopard

    Hello there... I'd like to buy my husband a scanner for Christmas. He kept his old negatives in sleeves, so they are very clean. I'd prefer one that takes the strip into a feed, but if the quality of a scanner bed is better, I'm open to that, too. We