EDI WE21 requrement Urgent...

Hi,
I have a requirement in the EDI,
I need to create a “.txt” file in AL11 transaction. For this I have configured in WE21 transaction and created a file port. In that I have chosen IDoc record type SAP Release 4.x. and Physical directory.
Given some path “/usr/sap/interfaces/” in the Directory box.
In the Outbound file I have given RECON.TXT.
Now I have created the IDOC and the file is generated Recon.txt. I have a problem here. When ever the next IDOC is coming, it is overwriting. I have seen the function module which has been provided by SAP in WE21. But the client requirement is whenever first idoc is generated RECON1.txt should be created and when the next idoc is coming RECON2.txt shouldbe created in AL11.  Other wise the file name should be  Ordernumber_recon.txt.
If any one has gone trough the same scenario please through some lights on that.   
Thanks and Regards,
Manohar

In WE21, you might have noticed there is a field called "Function Module" while defining "File" port. In this field we can define a function module to create a file name. Several function modules are available such as following
EDI_PATH_CREATE_CLIENT_DOCNUM     Directory + file name in format T_Client_Docnum
EDI_PATH_CREATE_DATE_TIME     Directory + file name in format T_CCYYMMDD_HHMMSS
EDI_PATH_CREATE_LENGTH_LE_8     Directory + file name in format NTHHMMSS.T
EDI_PATH_CREATE_USERNAME     Directory + file name in format SY-UNAME
However none of these will fulfill the requirement raised by client for filenames as RECON1.txt, RECON2.txt etc...
So i suggest you should copy a standard function module for example EDI_PATH_CREATE_DATE_TIME and modify its abap code to fulfill your needs. In your case you simply need a running counter (1,2,3...)as the first part of filename is constant (RECON). So in your copied function module you can use a customized Z table to store the latest value of counter or else you can use SAP number range object (you have to create a number range for that transaction SNRO and know how to call it in your abap code, normally with function module NUMBER_GET_NEXT)
After creating the function module remember to register it first in transaction WE55 and you will be able to use it in WE21.
I hope this will help you.

Similar Messages

  • EDI 821 transmission - URGENT

    Hi Gurus,
    I am struggling to find the Basic IDoc type, message and process code used for EDI 821 (Income Asset Offset) Outbount Transaction.
    Please respond if anyone knows about it.
    Thanks in advance.

    Hi,
    Please use message type FINSTA and IDoc type FINSTA01.
    Regards,
    Ferry Lianto

  • Hi all requrement urgent

    from table vbfa, i require three fields (vbelv,rfmng,matnr) . for particular vbelv and matnr, sum of rfmng is needed.
    that is in particular if there are different materials for particular vbelv the rfmng of the material should be displayed. if there are same materials for a particular vbelv sum of rfmng should be displayed.
    regards,
    Santosh.

    Hi
    Something wrong with your Requirement or your approach.
    VBFA is for documnet flow
    So in which type of documents are you interested? in orders, deliveries, billing doc's or what?
    beacuse this table consists of all differents types of sales documents/
    Which one to consider?
    be clear
    Reward points for useful Answers
    Regards
    Anji

  • Scenarios for ale/idoc/edi

    can any body pls give the real time scenarios for the ale/ido/edi. pls very urgent. ur answer will very helpful 2 me.

    Hi,
    Please check these examples of real time scenarios are:
    1. Outputting Purchase Orders as IDOCs on saving the PO.
    2. Outputting Inbound Delivery on receipt of ASNs.
    3. Processing Goods Receipt from a third party system.
    Regards,
    Ferry Lianto

  • Confirmations after SRM Server update to level 9

    We are having an issue with regards to Confirmation of goods, we have a po of 300 units and we have confirmed 85 but this has failed there is no figures in the confirmed Qty nor is there a value.
    Any ideas?

    We resolced this by checking the PORT in EDI (WE21) rfc connections where incorrect

  • Urgent Need ASAP , an EDI scenario.

    Scenario
    The Customer will send a Purchase order Details to Vendor, Process the Purchase order and create the Sales order. After Successful creation of Sales Order, confirmations to be send to the Vendor.
    Inbound Sales Order Process
    Assumption: Subsystem Process the EDI file and formatted into CSV (or tab delimited file). Subsystem filters Customer Purchase order, populates Organizational Details and contains fields required for Sales Order Process.
    Fields in CSV file:
    ·+ Sales Organization
    · Distribution Channel
    · Division
    · Sold to Party
    · Ship to Party
    · Customer Purchase Order no.
    · Item no
    · Material No
    · Plant
    · Quantity
    +
    Requirements:
    ü Since Vendor Receives Customer PO in CSV format a Report Program has to be created to generate an IDOC.
    ü User can specify the file name (CSV) which can be present either in application server or presentation server.
    ü All required Screen Validation has to be done in the report.
    ü Report Program that generates an IDoc can be stored in Database (EDI tables).
    ü Inbound Sales order Process has to be configured in the system.
    Messages
    Message Types: ORDERS and ORDRSP.
    Basic Type: ORDERS05
    Use Standard inbound and outbound Process code.
    Thanks In Advance.
    Revert me ASAP... Very Urgent.
    Give me the steps to follow , how to do Since Vendor Receives Customer PO in CSV format a Report Program has to be created to generate an IDOC. 

    How many pages are in the overall document? Do you have Page Breaks between the individual pages? If you print the document using the application that created it (not print to PDF), does it print properly?
    When you scroll through the document, do all the pages appear in portrait format? Could it be that one of the pages was formatted in landscape & somehow it resulted in all of the pages shifting to landscape.
    The above comments are purely guesses.
     Cheers, Tom

  • Urgent:  EDI Aperak

    Hi,
    We have an urgent requirement where we have to provide acknowledgement in APERAK format.
    Entire scenario could be explained as follows:
    This is an EDI-IDoc scenario where source is EDIFACT D96A and the target is ORDERS05 IDoc.This scenario is working fine and the IDocs are successfully posted into SAP R/3.
    Now we have an add-on to this.They want us to send acknowledgement for success or failure of IDoc in the form of APERAK.
    I have some specific doubts related to this:
    1) Would this be a synchronous scenario(MI would be synchronous)?
    2) According to the mapping instructions,source and target both are EDI structures.How this could be implemented?
    I am almost novice about APERAK and not able to understand how this could be implemented in XI.
    I would appreciate if someone could help me in this and could provide me step by step instructions to implement this scenario in XI.
    Kindly let me know if further information is required at my end.
    Thanks a lot.
    Best Regards,
    Shweta

    Hi Sweta,
    first:
    http://www.unece.org/trade/untdid/d07b/trmd/aperak_c.htm
    APERAK is for semantical errors (errors in business data) not syntactical errors.
    The function of this message is:
           a)  to inform a message issuer that his message has been
           received by the addressee's application and has been rejected
           due to errors encountered during its processing in the
           application.
           b)  to acknowledge to a message issuer the receipt of his
           message by the addressee's application.
    This means that the receiving system has to produce the APERAK. As IDOCs are always async your scenario will be async. This means that you have two define two processes.
    a) one for receiving the EDI
    b) second to send APREAK IDOC from R/3 via XI to partner.
    So you need a mapping that parses the incoming APERAK IDOC from r/3 and generate a EDI.
    Regards Mario

  • Urgent : SAP EDI document process flows

    HI Floks/
    i need urgent for this one how to real time scenario going Idoc processing from when SAP R/3 to Xml or file net .what are the steps involved . how can process it and how can moniter whether that po no is forwarded or not can u give me an example scenario\s.
    Thanks
    suresh

    Suresh,
    As far my understanding you want to do a outbound which should send as XML or File.
    Create a File Port or XML Port(WE21) which will conver the idoc to XML or File.
    Regards.

  • Urgent: IDOC to EDI with SAP Conversion Agent

    Hi,
    I have a requiremetn like IDOC to EDI ( Gentran ) scenario.
    We have decided to use SAP Conversion Agent to deal the same.
    Can anybody share their experiences on this kind of scenario.
    Needed step by step information to complete would be appreciated with the full of points.
    Cheers.,
    E

    check with tis may helpful for you
    http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/frameset.htm
    Regds
    Abhishek

  • URGENT  :  EDI problem

    Hi All,
               I previously posted a thread on "EDI Rejected", but there were no responces. So, i would like to explain it further in detail.
    There was a PO created and GR was posted. Now there is a problem in EDI which got rejected for " Invalid Freight charges for the PO number ############ " . Now, the vendor wants to add freight charges to the PO which will come up in the invoice.
    Normally, we do not pay freight charges, unless it is a drop ship, or an emergency expedited order. Now, the situation is drop shipped and we r responsible for the freight .
    As far as i know we can add freight charges ONLY while creating PO.
    Is there is any solution (ASAP) for this to get cleared so that the freight charges will be paid.
    Thanks,
    Sameer

    You already have posted the GR, so you cannot change the conditions in the purchase order.
    What you can do is cancel the GR, change your condition schema, adding a manual freight condition, and maintain this condition manually in your PO.
    Once you have your condition maintained, you can post GR, and freight provision will be posted.
    Hope this helps,
    GS

  • EDI Mapping to ORDERS IDOC - urgent

    Hi All,
    My scenario is creation of sales orders in R/3 using inbound EDI messages.
    Source is the Seeburger external definition(ORDERSV9)(Copied object into my name space) and the target message is the orders IDOC(R/3)(imported).
    my question is: we have many segments and the feilds in the target message(IDOC). how will in know which feilds from source message are mapped to the correct feild in correct segment of the target message.
    Please clarify as I'm stuck in Mapping?
    Cheers,
    Smith

    Hi Liang,
    I know the structure, feilds and the data in the feilds of the EDI structure. I just need to know to which target feilds in IDOC the respective source feilds are mapped to?
    In target IDOC structure we have nearly 100 feilds and i'm not sure which feilds are to be mapped to create a sales order in R/3.
    Fucntional consultants couldnt help much and are not completely aware where the data is posted in the sales order from the feilds in the idoc structure.
    I'm waiting for any EDI experts to respond. Will see
    Cheers,
    Smith

  • Urgent :Accounts Payabale Invoice automation  through EDI

    Hi All,
    Through EDI, We would like to automate <b>accounts Payable Invoice in SAP</b>.
    Kindly provide me the following details to create partner profile for this automation
    <b>1. Which Partner type ( Customer / Vendor / User / etc.,) to be used
    2.Which Partner function to be used
    3.Which Message type to be used
    4. Which Process code to be used</b>
    Apart from the above process, any other settings are to be done for accounts Payable EDI automation.
    Points will be rewarded.
    Thanks & Regards,
    A. Raja

    Hi,
    You can use invoic message type of IDOc for needed processing .& IDoc type will be either INVOIC01/INVOIC02.
    Please provide additional details of trnasctions you would like to automate that will be helpful to provide further info.
    Thanks.
    Mark points if helpful.

  • EDI 820 (Urgent)

    Hi All,
    We have EDI payments setup in our US SOB and have been using the EDI process (Payment Order/Remittance Advice (PYO) process) without any problem. I am trying to setup the EDI payments in Canada SOB which uses the same Oracle 11.5.10.2 instance as US SOB.
    I completed the required setup in AP and defined a trading partner in E-Commerce gateway. When i run a payment batch, the invoice is not picked up for payment. The log file of the EDI Outbound Program is as follows:
    Payables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APECEPYO module: EDI Outbound Program
    Current system time is 25-MAY-2007 09:48:27
    **Starts**25-MAY-2007 09:48:27
    **Ends**25-MAY-2007 09:48:27
    Start of log messages from FND_FILE
    Program Info: Beginning Outbound Payment Order/Remittance Advice (PYO) process.
    Program Info: Run ID: 14849
    Program Info: Payment Batch: TESTEDI052507_1
    Progress level PYOB-10-1406: No PAYMENT (Header) level rows processed for transaction PYO.
    Program Info: Number of Transactions Processed: 0
    Progress level PYOB-20-1595: No PAYMENT (Header) level rows processed for transaction PYO.
    ECE_NO_ROW_DELETED (PROGRESS_LEVEL=PYO-10-1150) (TABLE_NAME=ECE_OUTPUT)
    End of log messages from FND_FILE
    Please help me in resolving this issue.
    Thanks

    Paddie ,
    do you have any document on setting up EDI from scratch. Can you pls. send me on [email protected]
    Thanks
    Ganesh Mane

  • PO Output thru ALE & EDI ( Urgent)

    Hi Gurus...
    I have a PO which needs to be transmitted to the vendor . If i want to accomplish this sending of PO to the vendor through ALE what are all the steps i need to look into .. If anyone is able to guide me that wud be great.
    If in case of EDI , then i create one output messgae type, setup partner profile.
    Can anyone also say me what is the Logical system in WE20 and what role it plays in setting up the distribution thru EDI & ALE.
    Regards
    Balaji

    Hi Charlie...
    Thanks for the response..I am not totally new to this ALE Setup. Only these are the steps to be
    practised. I am not able to understand the Step 3. I tried looking in SM59 its not clear for me.
    Create Partner profile in Bd64 is the same as we do thru we20 or its different.. In detail will be really helpful..
    How ALE is different from EDI ?? Both use the IDOCs right ?? Please explain .
    Regards
    Balaji

  • Edi partner profile inbound parameters urgent plz

    hi
    iam trying to make settings for inbound parameters of edi for bank, iam wondering what is partner number if partner type is "b"(bank). my partner number will be bank key or house bank or what , bcoz it is not accepting bank key or house bank id

    Hi,
    In Transaction code FI12 - Change House Bank - Details, there is an push button to create EDI Partner Profiles. Click on that and enter the EDI Partner number. This is not House Bank number / Bank Key. After entering the EDI Partner number, you can click on Partner Profiles and complete the setting up of Partner Profile.
    Thanks
    Murali.

Maybe you are looking for

  • Misrepresentation by Verizon - and lack of "Customer Service"

    I have tried to follow the "proper channels" and no one seems to care - so here is the letter I sent to the "Correspondence Team"  minus my personal information.  Verizon Wireless Attn:  Correspondence Team P.O. Box 5029 Wallingford, CN  06492 To Who

  • NullPointerException from oracle.jdbc.driver.OracleDriver.connect()

    I ran into an NPE when using Oracle thin client 11.1.0.6.0 (ojdbc6.jar) to connect to a 10g server. It is not easy to reproduce though. The following is the stack trace, any suggestions? java.lang.NullPointerException at java.util.Hashtable.get(Hasht

  • Question re dot releases

    I am new to the Community and this may not be the appropriate place to post this question After a dot release is installed, is it necessary to keep the preceeding version release, or can the version release be uninstalled?  I upgraded from LR4.4 to L

  • Can you have more than one i tunes account on a computer

    Can you have more than one iphone on a computer

  • Constant Folding of Structures (LV2013)

    i don't understand ... "constant folding of structures" seems not to work with LV 2013. run the vi : ok save the vi : ok don't make an edit : ok but i see no hash marks inside the for loop ? like this : ( http://zone.ni.com/devzone/cda/pub/p/id/347 )