Modify IDoc data to update the counter!! How??

Hi All,
I have requirement to trigger custom Outbound IDoc from a custom program.
Basically my IDoc structure has 3 segments
1. TOP - Can coour only once in each IDoc
2. HDR - Can occur only 5 times in each IDoc(under segment TOP)
3. DET - Can occur n times in each IDoc ( under the segment HDR)
say I have one field - COUNT in my TOP segment
once the program is executed If 5 IDocs have triggered, then I have to update 5 in the COUNT field in each 5 IDocs.
(Just basically to know how many IDocs have been triggened in that one specific run)
Say I have field MATNR in my HDR segment.
and
I have a internal table populated with all the final data, with MATNR repeated.
Each HDR is for one MATNR field.
Now the question is what is the best way to find / update COUNT in my TOP segment.
1 . Build a looping logic and find how many HDR segments can occur overall based on final internal table data and
this number divide by 5 will give me total IDoc that will be created .
2. Do I have any option to update the my TOP-COUNT filed after my all IDoc is created. Once all IDoc is created I can get the total number of IDocs. Can I edit and update the IDoc filed within my code, before commit work.

Thanks for the replies.
@RobvS could you please elaborate more. where can I seen the generated conversion program.
@ Vinod . Thanks for your inputs to find the count while populating final internal table.
I use MASTER_IDOC_DISTRIBUTE FM to create IDoc and before COMMIT work, I am able to use FM EDI_DOCUMENT_OPEN_FOR_EDIT passing IDoc number returned by previous FM, this FM is providing me the edidd internal table data. now how can I modify the internal table and update it to IDoc in my program is there any FM available ?
Thanks.
Edited by: Lokesh Naik on Feb 7, 2010 2:13 PM

Similar Messages

  • I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    I have an iPod Touch 4g with 4.1 software, but it takes forever to update the software, how can I speed up the process?

    Nothing you can do. Presently the Apple servers are overloaded because of iOS 6.

  • HT1222 my iphone 4s stuck when im updating the software,how can i fix that?

    my iphone 4s stuck when im updating the software,how can i fix that?

    No iPhone records voicemail messages.  Visual voicemail is simply an interface to the carriers voicemail servers.
    Contact the carrier to troubleshoot the issue with their voicemail.

  • HT2801 laptop wont accept disks, i am selling the laptop and want to wipe all of my data off of the laptop, how do i do this without the disks?

    laptop wont accept disks, i am selling the laptop and want to wipe all of my data off of the laptop, how do i do this without the disks?

    Do you have another Mac that you can connect to it?

  • Idoc failed but updated the data

    Hello Gurus,
    I have a issue where the inbound idoc has failed but it has updated the data in the scheduling agreement.
    Kindly let me know how it is possible to update scheduling agreement when Idoc has status 51 ie failed.
    Helpful answers will be rewarded
    Thanks
    Suresh

    Hi,
    I am also surprised data is updated when idoc is failed.
    Please throw some thoughts on this.
    Thanks
    suresh

  • Where will be the IDOC  data saved when the receiving system is not ready

    where will be the idoc data  saved  data when the receiving system is not ready

    Hi karthik,
    If the receiving system is not ready ,
    the data is to be transferred and function modules to be invoked are temporarily stored in tables ARFCSSTATE and ARFCSDATA. once the receiving system is ready , the entried in these tables wiil be deleted.
    regards,
    Prasad kodi.

  • I can't back up my phone, they ask me to delete the back up, but I don't want to because I lost everything after updating the iTunes, How can I get back the back up?

    Everytime I try backing up my phone, it says there's something wrong and wants me to delete the back up...But I don't want to delte the back up because I just lost everything after updating the iTunes, Is there any way I could get back everything from the back up?

    Thank you for answering my question. If I reinstall itune, is it mean that I need to install music, apps, video...everything in itune again? also intall everything in my iphone again?

  • Idoc data record updating which tables ???

    Hi,
    I want to check Idoc posted in SAP , is updating which database tables ?
    Could any one please help me ?
    Idoc Basic type : RESAPS_SAVEMULTIPLE03
    Message type : RESAPS_SAVEMULTIPLE
    Thanks.

    Hello,
    If it is an inbound Idoc read on
    For me the correct place to check which DB tables are being updated by the I/B idoc is the processing func. module which is associated with the process code.
    Check in SDN for details on Process Codes & Processing func. modules.
    BR,
    Suhas

  • I want to Update a few files on my laptop and I have a New Apple ID but my old one is on it and I have to enter that one to update the files how do I change it?

    I configured my laptop with my old apple ID but I forgot the password for that Apple ID and Email dress so I got a new Apple ID and now There are a few files I want to update but I need to enter In my old apple ID for it. Also it can't be erased so can someone help me?

    Click here and use Apple's iForgot service, or delete and redownload that content.
    (119527)

  • What could cause iPhoto '11 to not update the count of photos in my library?

    Hi folks,
    I've been adding photos pretty consistently over the last few weeks, and I've noticed the number of photos in my iPhoto library never changes - see below. It's been at 14,774 photos for a number of weeks now. I just imported 17 additional photos, and the 14,774 count didn't change.
    Has anyone experienced this? What is the solution to fix? What does it possibly mean, if anything?
    Thanks!

    In the iPhoto Preferences, turn off items counts and then turn them back on again.

  • How to release the IDOC based on the count

    Hi IDOC gurus,
    How to release IDOC's based on the count?
    Actually, my requirement is I have to release the IDOC's of count 50 for every 5 or 10 minutes. I tried by scheduling the background job for the program RSEOUT00, but unfortunately there was no option of selecting the IDOC's based on count for the given message type except IDOC range i.e FROM and TO select options in the selection screen.
    Are there any other alternative where I can release the IDOC's based on count for every periodic 5 or 10minutes?
    Also, can I know how can we configure the multiple QUEUES for the IDOC's?
    I highly appreciate who can help regarding this and points are awarded.
    Thanks,
    Sreevani.

    Hi Ferry,
    I tried with that option. Maximum number of IDocs parameter is the package size not the count of IDOC's.
    I have 100 IDOC's with status 30 and all IDOC's got released eventhough the value of  "Maximum number of IDocs" parameter is 50. I checked in the code it is an package size i.e., maxm IDOCs that it can be transferred from RFC outbound queue to a port at time and not maximum number that can be processed for the program execution.
    Thanks,
    Sreevani.

  • How to display a row in Cross Tab when the count summary is zero

    My customer wants a row for all possible data, even when the count is zero.  How can I get a row to display when there is no data?  Using an example:  Display status for incidents - possible five statuses, but selection only results in four statuses because no incident were cancelled.  Customer wants all five statuses to display in cross tab with cancelled showing '0' (zero))
    Open
    WIP
    Cancelled
    Pending
    Closed

    This worked for the last guy who had a similar issue.
    Take a look at what it's doing. You should be able to use the same principal to meet your needs...
    I'm assuming that you'll only need to show 4 weeks at a time on your report.
    The easiest way to do it is by creating 8 separate formula fields:
    W1A
    W1RT
    W2A
    W2RT
    ... and so on
    I don't know how your data is coming across but the formula should go something loke this:
    W1A... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
    W1RT... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
    W2A... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
    W2RT... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
    ... and so on
    If I got you weekly criteria wrong, sorry. It's just a best guess.
    Anyway you should be able get the idea. It gives you the effect of a crosstab without the headaches of a crosstab.
    Hope this works for you,
    Jason
    Edited by: Jason Long on Jun 28, 2008 3:19 AM

  • Idoc data - Need to see the full SDATA field value

    My SAP system is 4.6C. I need to see and extract the field data of the SDATA field in the EDID4 table. The field size in se11 is showing as of 1000 characters, but the field data when displaying is getting truncated. The message that comes below is Field SDATA is too wide to display (field will be truncated) --> Message no. MO 441 --> The field SDATA is more than 200 characters long. --> the system response comes as The field is output in a format restricted to 200 characters. So, it seems that the data after 200th character is getting truncated.
    How can i increase the display field of the SDATA field???

    It is not possible to view the IDoc data directly in the database. You need to use either WE05 transaction for an existing IDoc or WE60 to view the documentation and layout for each type.
    In a nutshell, there are different segments, each with their own layout, but it's not efficient to create database tables with separate fields for each segment. So all the data is stored in "raw" format and then, knowing the segment code, it may be correctly parsed into a readable format.

  • View Data & Updating row count

    Hi,
    iam using OBIEE 11g, when iam importing data from sysbase into physical layer then in the physical layer i cant able to view data and update row count also.
    For sysbase which dataconnection we have to use i.e (ODBC 3.5, OCI 10g/11g).
    for ODBC 3.5 connection is established but we cant get data i.e (view data in Physical layer ), for OCI 11g we cant establish a connection.
    Thanks in advance.
    prakash

    Hi,
    *• Relational Database System* including Oracle Database, Oracle Exadata Database Machine, Oracle TimesTen In Memory Database, DB2, Microsoft SQL Server, Teradata, Netezza, Informix, Sybase and other ODBC compliant data sources
    *• OLAP Sources* including Oracle Essbase, Hyperion Financial Management, Oracle Database OLAP Services, Oracle RPAS, Microsoft Analysis Services Cubes, and SAP BW Infocubes.
    *• XML Data Sources* including access to other types of data servers (e.g., other non-relational servers), Microsoft Excel spreadsheets, and Web Services.
    So, we should use ODBC 3.5 as Call Interface for Sybase.
    Thanks,
    Balaa...

  • How to update the z-condition type in pricing procedure in a quote

    Hi Gurus,
    I need your help to solve my issue.
    I have created a RFC which will trigger any time there is a CRM Quote/ CRM Order create or change occurs. IN response of the RFC i will get the rate and rate type for the line items .
    When the service  returns with rate value the SAP system will insert this value by inserting z-condition type  in to the pricing structure. The normal pricing function module will then carry the process forward.
    Todo this ,Can i code the RFC call in Order_save badi ,but where can i get the pricing sturcure  data to update the returned rate values in the pricing.
    and also one more thing ,In ecc  I am using the CUCB_GET_CONFIGURATION to get product configurations. for the same which FM can i use in CRM.
    Please reply me ASAP.

    hei,
    you can use field KOMP-KZWI1 - KZWI6 to store your condition type. then it can be used for analysis in SIS.
    if you want to put more than one condition type to field KOMP-KZWI1, go to V/08 (pricing Procedure), put "1" in condition subtotal.
    Best Regard,
    Hendry

Maybe you are looking for

  • No Authorization To Upload Text file for a Variable

    Hi Experts, I am trying to upload a text file from Multiple Selection screen of a Query in Business Explorer and it gives the error message of 'No Upload Authorization' An additional Information: I could able to Upload the text file when we were in S

  • Part 2 Entry Not Created For CVD,ECess for Imports Purchase .

    Hi I have created Imports Purchase Order With Condition Type For Basic Customs Duty,In CVD(JCV1) , ECS on CVD (JECV) , 2nd Edu Ecess and ADC . Then Passes IV For these Charges , If i capture Invoice in J1iex , then the system raise Err" No Part I exi

  • My site looks great on the laptop, but does not transfer to desktop screen...

    I designed my site to be on long scrolling page that features several full browser width slidehows. It looks great on the laptop, and I used the scroll motion trick to keep it from sliding horizontally, but when I published my trial version and check

  • Updated iPod to 1.2 , now it tells 'use itunes to restore'. How ?

    Hello, sorry my english. I have just updated my iPod nano from firmware 1.1.1 to 1.2 using latest iPod Updater 2006-06-28. It went ok. Then i entered iTunes 6.0.5 and made an eject. The iPod showed "OK to disconnect". I disconnected. But now when I t

  • CUIC Report - Queue Status

    Dear Group I am recently been started working with UCCE platform, for one of our client who is using CTI Desktop Client (V8.5) required to have A field in the CTI screen about the number of calls currently queued or waiting in the queue A CUIC report