Issue for retrive data form ITAB in SAP R/3

Case:HOW CAN WE FETCH DATA FROM TRANSPARENT TABLE
scenario:calculating net price for material on sales order
(on the basis of material number,sales organization,distribution channel,division,sale to partY ,sales office)
For this 5 prices are calculated :
a)zmrp
b)zlbj
c)zmlb
d)zdij
e)mwst
A bapi is developed through which all these data are fetched using joins on transparent and pooled tables.
Bapi is properly working in Sap Environment.But when fetching data from non sap environment(.NET) only pooled tables are returning data.
Transparent tables are returning blank data.
And also if in query of transprent table if  in " where Clause " all parameters are hard codded then transparent table also return data in non sap envirnment.
for eg...
instead of writing ---
select data from tranparent table where matnr= (matnr variable made in bapi entered by user) and vkorg=(sales org  variable made in bapi) ....same with all conditions
if we write(returing data)----
select data from tranparent table where matnr='5476665987' and vkorg='1400' ....same with all conditions
BAPI Code is given below:
                                                                                FUNCTION ZBAPI_BAR3.
""Local Interface:
*"  IMPORTING
*"     VALUE(MATNR) TYPE  ZBAPI_IMPORT2-MATNR
*"     VALUE(VKORG) TYPE  ZBAPI_IMPORT2-VKORG
*"     VALUE(VTWEG) TYPE  ZBAPI_IMPORT2-VTWEG
*"     VALUE(KUNNR) TYPE  ZBAPI_IMPORT2-KUNNR
*"     VALUE(SPART) TYPE  ZBAPI_IMPORT2-SPART
*"     VALUE(AUART) TYPE  ZBAPI_IMPORT2-AUART
*"     VALUE(VKBUR) TYPE  ZBAPI_IMPORT2-VKBUR
*"  EXPORTING
*"     VALUE(RETURN) TYPE  BAPIRETURN
*"  TABLES
*"      ITAB STRUCTURE  ZBAPI_TABLE3
  DATA: LAND1  LIKE KNA1-LAND1  ,
        REGIO  LIKE KNA1-REGIO  ,
        WERKS  LIKE VBAP-WERKS  ,
       KNUMH  LIKE A004-KNUMH  ,
               KNUMH LIKE ZBAPI_TABLE3-Knumh  ,
        KBETR   LIKE  COND_KONW-Kbetr ,
       LIKE ZBAPI_TABLE3-KBETR  ,
      KNUMH1(10) TYPE C ,
            KNUMH2(10) TYPE C ,
            KNUMH3(6) TYPE C ,
     KNUMH2 LIKE ZBAPI_TABLE3-KNUMH  ,
     KNUMH3 LIKE ZBAPI_TABLE3-KNUMH  ,
     KNUMV LIKE  ZBAPI_TABLE3-KNUMV  ,
        KDGRP  LIKE KNVV-KDGRP  ,
        TAXKD  LIKE KNVI-TAXKD  ,
        TAXM1  LIKE MLAN-TAXM1  ,
        ADRNR  LIKE TVBUR-ADRNR ,
        REGION LIKE ADRC-REGION ,
        DATE  TYPE A503-DATAB .
  SELECT SINGLE KDGRP FROM KNVV INTO KDGRP WHERE KUNNR  = KUNNR AND VKORG = VKORG AND VTWEG = VTWEG AND SPART = SPART   .
  SELECT SINGLE LAND1 REGIO  FROM KNA1 INTO (LAND1,REGIO)  WHERE KUNNR  = KUNNR .
  SELECT SINGLE WERKS FROM VBAP INNER JOIN VBAK ON VBAPVBELN = VBAKVBELN  INTO WERKS  WHERE AUART = AUART  .
  SELECT SINGLE TAXKD FROM KNVI INTO TAXKD WHERE KUNNR = KUNNR AND ALAND = LAND1 AND TATYP = 'MWST' .
  SELECT SINGLE TAXM1 FROM MLAN INTO TAXM1 WHERE MATNR = MATNR AND ALAND = LAND1  .
  SELECT SINGLE ADRNR FROM TVBUR INTO ADRNR WHERE VKBUR = VKBUR  .
  SELECT SINGLE REGION FROM ADRC INTO REGION WHERE ADDRNUMBER = ADRNR   .
  DATE = SY-DATUM .
  SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = '1410' AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = '1400' AND VTWEG = '10' AND WERKS = '1410' AND KUNNR = '0000100163' AND MATNR = 'A10AN027PNSL' AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
  SELECT SINGLE zkarigar FROM zkari INTO KNUMH1 WHERE erdat = '20070410' .
SELECT SINGLE KNUMH FROM A004 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND MATNR = MATNR  AND DATAB LE DATE AND DATBI GE DATE  .
*'0000280050'
CLEAR KNUMH .
CLEAR KBETR .
SELECT SINGLE KNUMH FROM A503 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'MWST' AND ALAND = LAND1 AND WKREG = REGION AND REGIO = REGIO
AND TAXK1 = TAXKD  AND TAXM1 = TAXM1 AND KFRST = SPACE  AND DATAB LE DATE AND DATBI GE DATE and knumh = '0000279708'.
concatenate '0000' KNUMH into knumh1 .
**KNUMH1 = KNUMH .
**select single kbetr from konp into kbetr where knumh = knumh1 .
**knumh3 = knumh1+4(6) .
***itab-kbetr = kbetr .
**concatenate '0000' knumh3 into knumh2 .
**write:/ knumh2 .
ITAB-KNUMH1 =  KNUMH2 .
ITAB-KNUMH1 = KNUMH1 .
  APPEND ITAB .
*loop at itab .
*write:/ itab-knumh1 .
*endloop .
CLEAR KNUMH .
CLEAR KBETR .
  SELECT SINGLE KNUMH FROM A940 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND KDGRP = KDGRP AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
  SELECT SINGLE KNUMH FROM A931 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = WERKS AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
ITAB-KNUMH =  KNUMH.
APPEND ITAB .
CLEAR KNUMH .
CLEAR KBETR .
ITAB-KNUMH =  KNUMH .
APPEND ITAB .
COMMIT WORK AND WAIT.
ENDFUNCTION.
Thanks & Regrds
Amrish

I believe you posted in the wrong forum.
This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
Ludek

Similar Messages

  • Issue for retrive data from ITAB

    Case:HOW CAN WE FETCH DATA FROM TRANSPARENT TABLE
    scenario:calculating net price for material on sales order
    (on the basis of material number,sales organization,distribution channel,division,sale to partY ,sales office)
    For this 5 prices are calculated :
    a)zmrp
    b)zlbj
    c)zmlb
    d)zdij
    e)mwst
    A bapi is developed through which all these data are fetched using joins on transparent and pooled tables.
    Bapi is properly working in Sap Environment.But when fetching data from non sap environment(.NET) only pooled tables are returning data.
    Transparent tables are returning blank data.
    And also if in query of transprent table if  in " where Clause " all parameters are hard codded then transparent table also return data in non sap envirnment.
    for eg...
    instead of writing ---
    select data from tranparent table where matnr= (matnr variable made in bapi entered by user) and vkorg=(sales org  variable made in bapi) ....same with all conditions
    if we write(returing data)----
    select data from tranparent table where matnr='5476665987' and vkorg='1400' ....same with all conditions
                                                                                    FUNCTION ZBAPI_BAR3.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(MATNR) TYPE  ZBAPI_IMPORT2-MATNR
    *"     VALUE(VKORG) TYPE  ZBAPI_IMPORT2-VKORG
    *"     VALUE(VTWEG) TYPE  ZBAPI_IMPORT2-VTWEG
    *"     VALUE(KUNNR) TYPE  ZBAPI_IMPORT2-KUNNR
    *"     VALUE(SPART) TYPE  ZBAPI_IMPORT2-SPART
    *"     VALUE(AUART) TYPE  ZBAPI_IMPORT2-AUART
    *"     VALUE(VKBUR) TYPE  ZBAPI_IMPORT2-VKBUR
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRETURN
    *"  TABLES
    *"      ITAB STRUCTURE  ZBAPI_TABLE3
      DATA: LAND1  LIKE KNA1-LAND1  ,
            REGIO  LIKE KNA1-REGIO  ,
            WERKS  LIKE VBAP-WERKS  ,
           KNUMH  LIKE A004-KNUMH  ,
                   KNUMH LIKE ZBAPI_TABLE3-Knumh  ,
            KBETR   LIKE  COND_KONW-Kbetr ,
           LIKE ZBAPI_TABLE3-KBETR  ,
          KNUMH1(10) TYPE C ,
                KNUMH2(10) TYPE C ,
                KNUMH3(6) TYPE C ,
         KNUMH2 LIKE ZBAPI_TABLE3-KNUMH  ,
         KNUMH3 LIKE ZBAPI_TABLE3-KNUMH  ,
         KNUMV LIKE  ZBAPI_TABLE3-KNUMV  ,
            KDGRP  LIKE KNVV-KDGRP  ,
            TAXKD  LIKE KNVI-TAXKD  ,
            TAXM1  LIKE MLAN-TAXM1  ,
            ADRNR  LIKE TVBUR-ADRNR ,
            REGION LIKE ADRC-REGION ,
            DATE  TYPE A503-DATAB .
      SELECT SINGLE KDGRP FROM KNVV INTO KDGRP WHERE KUNNR  = KUNNR AND VKORG = VKORG AND VTWEG = VTWEG AND SPART = SPART   .
      SELECT SINGLE LAND1 REGIO  FROM KNA1 INTO (LAND1,REGIO)  WHERE KUNNR  = KUNNR .
      SELECT SINGLE WERKS FROM VBAP INNER JOIN VBAK ON VBAPVBELN = VBAKVBELN  INTO WERKS  WHERE AUART = AUART  .
      SELECT SINGLE TAXKD FROM KNVI INTO TAXKD WHERE KUNNR = KUNNR AND ALAND = LAND1 AND TATYP = 'MWST' .
      SELECT SINGLE TAXM1 FROM MLAN INTO TAXM1 WHERE MATNR = MATNR AND ALAND = LAND1  .
      SELECT SINGLE ADRNR FROM TVBUR INTO ADRNR WHERE VKBUR = VKBUR  .
      SELECT SINGLE REGION FROM ADRC INTO REGION WHERE ADDRNUMBER = ADRNR   .
      DATE = SY-DATUM .
      SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = '1410' AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
    SELECT SINGLE KNUMH FROM A931 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = '1400' AND VTWEG = '10' AND WERKS = '1410' AND KUNNR = '0000100163' AND MATNR = 'A10AN027PNSL' AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
      SELECT SINGLE zkarigar FROM zkari INTO KNUMH1 WHERE erdat = '20070410' .
    SELECT SINGLE KNUMH FROM A004 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'ZMRP' AND VKORG = VKORG AND VTWEG = VTWEG AND MATNR = MATNR  AND DATAB LE DATE AND DATBI GE DATE  .
    *'0000280050'
    CLEAR KNUMH .
    CLEAR KBETR .
    SELECT SINGLE KNUMH FROM A503 INTO KNUMH1 WHERE KAPPL = 'V' AND KSCHL = 'MWST' AND ALAND = LAND1 AND WKREG = REGION AND REGIO = REGIO
    AND TAXK1 = TAXKD  AND TAXM1 = TAXM1 AND KFRST = SPACE  AND DATAB LE DATE AND DATBI GE DATE and knumh = '0000279708'.
    concatenate '0000' KNUMH into knumh1 .
    **KNUMH1 = KNUMH .
    **select single kbetr from konp into kbetr where knumh = knumh1 .
    **knumh3 = knumh1+4(6) .
    ***itab-kbetr = kbetr .
    **concatenate '0000' knumh3 into knumh2 .
    **write:/ knumh2 .
    ITAB-KNUMH1 =  KNUMH2 .
    ITAB-KNUMH1 = KNUMH1 .
      APPEND ITAB .
    *loop at itab .
    *write:/ itab-knumh1 .
    *endloop .
    CLEAR KNUMH .
    CLEAR KBETR .
      SELECT SINGLE KNUMH FROM A940 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND KDGRP = KDGRP AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE .
      SELECT SINGLE KNUMH FROM A931 INTO KNUMH WHERE KAPPL = 'V' AND KSCHL = 'ZDIJ' AND VKORG = VKORG AND VTWEG = VTWEG AND WERKS = WERKS AND KUNNR = KUNNR AND MATNR = MATNR AND KFRST = SPACE AND DATAB LE DATE AND DATBI GE DATE  .
    ITAB-KNUMH =  KNUMH.
    APPEND ITAB .
    CLEAR KNUMH .
    CLEAR KBETR .
    ITAB-KNUMH =  KNUMH .
    APPEND ITAB .
    COMMIT WORK AND WAIT.
    ENDFUNCTION.
    Thanks & Regards
    Amrish

    Hi,
    Please Check this => The specified item was not found.
    How to post code in SCN, and some things NOT to do...
    Faisal

  • How to Retrive data Form Third party tool & up lode  in  SAP

    HI Friends,
    My client was implementing sap & parlay  .NET for   HR module .
    my client requirement was what ever amount   he payed  for Employees  that should also uplode in sap.
    In SAP he is treating employee as Vendor .
    so please guide me how can I Retrive data from third party tool & how can i uploaded in sap .
    Regards,
    Reddy

    Hi,
    Third Party Tool must be having some features of downloading data in a format like Excel.
    In SAP Side, this File is going to be your input...Now you can try different options:
    1) Identify the IDOC that serves your purpose and populate the idoc and fire an Inbound IDOC.
    2) Run a BDC for your relevant Txn Code by uploading the Third Party generated Excel data into an internal Table.
    3) Use an Standard BAPI to upload data into SAP.
    4) If possible, Use an SAP Provided Direct Input program to pump data in SAP.
    You need to give the expected format of Excel to the Third Party user generating the Excel for you.

  • Issue on the Data Form - Implied Sharing

    Hello,
    We have a data form on which the user can drill down till Level 0 Customer in rows to input data. The issue is for some customers when the user is trying to input the data at Level 0 Customer it is not saving the input number but was getting overridden with the parent value automatically. If the user was inputting at parent customer it was filling the same value to the level 0 customer too.
    When I checked in the outline...I noticed that these were the Customers that had only a single child and I am guessing that this is happening because of the implied share property. I am not sure if there could be any other reason for this to happen. If I am wrong please do correct me.
    Now I know if you change the property of the parent customer to Never Share it might resolve the issue.But the problem here is - there are a lot of such customers. And every month we do get new customers that could belong to the same case. It would be tough to manually go and change the property to Never Share for all those Customers and keep a track of it. It might be a maintenance issue.
    So are there any other solutions? Can we somehow resolve it? Please let me know your suggestions or ideas on what you think would be the best way to get this fixed.
    Any ideas are appreciated.
    Thank you !
    ~ Adella

    Thanks a lot Robb for your suggestions.
    Yes you are right since both the parent and the children are set to store in our outline more blocks are being created.
    Taking the parent off the data form might not be the best solution as there are many such customers and in that case they might have to keep a track to not include such parents on the dataform specially while designing it..and also then its like some of the customers will show parent and children both and some only children in rows. I think they wouldnt like it and it might hurt consistency. But yes I will surely check on the option of turning on the Implied Sharing in the Essbase.cfg
    Thanks once again !
    ~ Adella

  • ECC to CRM Mapping Issue for vendor data

    Hi,
    I am facing an issue for replicating vendor data from ECC to CRM. One of the vendor is not confirmed at ECC side and one vendor's time zone is not maintain in the master of time zone in CRM side. This may be the issue.
    But Where exact we can see that mapping of the tables of ECC and CRM. So in future we should maintain mandatory data based on mapping to avoid BDOC failure.

    Hello Rahul ,
    The field (MARA-BISMT) is not used in CRM system. If you want this
    field to be maintained in CRM as well, and to be transferred from R/3
    to CRM you must enhance the standard by customer extensions.
    The procedure for customer enhancements for Download from R/3
    to CRM is described in the following document:
    SAPNet, alias crm,   > Media Library   > Documentation   >
    Key Capabilities   > Master Data   > CRM Product: Customer
    Enhancements for Download/Upload
    For further information about Product Master enchancements and how to
    find techncical documentation about it please refer to the attached
    Note 428989.
    Thanks & regards,
    Krishnen

  • BO DI for extracting data from legacy to SAP BW 7.0

    Hi,
    Has anyone worked on scenario where BO Data Integrator is being used as ETL tool for extracting data from legacy systems to SAP BW 7.0 ?
    Please share your experience on such a landscpae or related documents any of you had come across.
    Regards,
    Pritesh

    Hi,
    BO Integrator connects with other system (Database) and you will be creating your reports on the top of that DB or system. It never saw it being used to pull data from legacy to BW.
    Regards,
    Bashir Awan

  • Retriving data from java to sap ztable

    how do i need to retrive the data from external to sap tables
    here in my scerino i have used a ztable and in that i have created four fields
    reinr
    slno
    matdescription
    plant
    itemno
    and java guy fills this fields and submits
    then at that time it should be stored in sap table ztable zbomtable
    and wat type of logic do i need to use here
    plzz help me in this sceniro..
    regards prabhanjan

    Develop an RFC (create a function in SE37 and select the "Remote Access Module" option). Java team can then use the JCO library available at [http://service.sap.com/connectors].

  • ADF Service Interface: two-phase commit issue for multiple data sources

    In FusionApps, For a service interface we had to use two DataSource resources (in the ejb-jar.xml),
    one is ApplicationServiceDBDS for SI and the other one is ApplicationDBDS(I don’t know the exact reason why this is needed, but when running the webservice, Framework was throwing an error asking for this) After adding these two, now(while running the webservice) we’re caught up with an error saying that unable to participate in two phase commit. I think this is because we added two dataSources, if we just use one dataSource everything is working fine.
    Error message from app server:
    "JDBC driver does not support XA, hence cannot be a participant in two-phase commit. To force this participation, set the GlobalTransactionsProtocol attribute to LoggingLastResource (recommended) or EmulateTwoPhaseCommit for the Data Source=ApplicationDB"
    we have made the changes to ApplicationDB as said in the error message, but then the server is failing to start because of this.

    Hi,
    this is what the doc says - though not about two phase commit but transaction sharing:
    "At runtime, the calling client and the ADF service may or may not participate in the same transaction, depending on the protocol used to invoke the service (either SOAP or RMI). Only the RMI protocol and a Java Transaction API (JTA) managed transaction support the option to call the service in the same transaction as the calling client."
    When your application accesses a remote ADF Business Components service, each remote call is stateless, and the remote service will not participate in the same transaction as the business component that uses a service-enabled application module's service interface.
    In the majority of the cases, calls to remote services will be informational in nature and will not make changes to remote objects. However, if you must use a remote service to make changes, then keep these points in mind:
    An exception thrown by the remote service will cause the local transaction to fail.
    If you successfully call a remote service that results in modifying data, and then subsequently your local transaction fails for any reason, then it is the responsibility of your error handling code to perform a compensating transaction against the remote service to "undo" the previous change made."
    http://docs.oracle.com/cd/E23943_01/web.1111/b31974/bcextservices.htm
    Frank

  • Issue for creation date of Billing document in third party ???

    Hello SAP Folks,
    This issue is related to third party scenario. The basic requirement is to create to a billing document with a creation date same as
    Good issue date of Sales Order.
    For your information, with the help of enhacement we have passed on the value of posting date of material document generated
    from MIGO to Goods issue date in Sales Order. I am very much aware that setting up a new copying routine would help me but
    relating the GI date field of Sales Order from the techincal point of view is a complete work stopper. Could anyone throw light on
    the workaround for mapping this case ???
    Regards,
    Sarthak

    Hello,
    Thanks Alex for your input on the topic !!
    But i would like to say that the billing relevance of the item category has to "B" as this process of Third part Sales talks about creation of billing document after the MIGO. And i am basically interested to Populated the posting date of MIGO for Biling creation date. 
    In Sales Order, the GI date is modified to Posting date of MIGO through enhancement. I have been looking around relevant tables to fetch the GI date of Sales Order but not getting the right track...
    Could anyone provide any other workaround to implement this sort of requirement ???
    Eager to hear from Lakshmipathi ...
    Regards,
    Sarthak

  • Print issue for smartform by zebra QL420plus in SAP

    Hi All,
    I created a smartform in SAP to print out label on zebra QL420Plus.
    Current the key issue is that I can not print out smart form from SAP to QL420plus directly. I need to print some text from windows by notepad or word after I power on QL420plus. Then QL420plus seem to be active. So at this point I can print out smartfrom from SAP to QL420plus. I am not sure what’s wrong with QL420plus equipment?
    Thanks.
    Crystal

    did you try like this :
    Spool
    data: in_list     like  pri_params-plist,
          in_dataset  like  pri_params-prdsn,
          in_spool(1) type  c,
         d_dest          like pri_params-pdest.
    NEW-PAGE PRINT ON
                NO-HEADING
                NO-TITLE
                LIST NAME in_list
                LIST DATASET in_dataset
                LINE-SIZE 132
                LINE-COUNT 65
                COPIES 1
                NO DIALOG
                KEEP IN SPOOL ''
                DESTINATION d_dest
                NEW LIST IDENTIFICATION in_spool
                ARCHIVE MODE '1'
                IMMEDIATELY ''.

  • Best Practice for PDF print forms based on SAP standard

    Hi,
    I have copied the SAP standard PDF form F_D_INT_SCALE_00 to a Z form, and am using it in conjunction with the standard print program RFDZIS01_PDF.  However I need to output some additional fields that are not supplied by the print program / interface (for example Customer VAT number).
    What is the best practice for achieving this?  As far as I can see the only way is to take a copy of the standard print program and modify it to select the extra data, and modify the interface.  I never like taking copies of standard programs though for obvious reasons.
    If I had this requirement with a smartform it would be a simple case of embedding ABAP code into the Z smartform and leaving the print program alone, but unfortunately there is no provision for the non-PDF version of the Interest Letter to be sent by email.
    Thanks in advance,
    Vindaloo

    Thanks for your reply Robert.
    However I think you are referring to Smartforms when you mention Code Initialization and Global Data declarations.  I need to know the best way to modify copies of standard Adobe Print Forms.
    Regards,
    Vindaloo

  • Javascript issues for a PDF form

    Hi everyone,
    I hope someone can help me, i posted a few days ago but managed to find a script somewhere online to do half of what i needed.
    //-----------------Do not edit the XML tags--------------------
    //<Document-Level>
    //<ACRO_source>Numbering</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: Document-Level:Numbering ***********/
    var f = this.getField("Tracking Number");
    if (f.value=="") f.value = "0001001";
    else f.value = util.printf("%04d", (Number(f.value)+1));
    //</ACRO_script>
    //</Document-Level>
    Problem I have now is that it will only update the Tracking Number field (field is after the A) when i save the original document, not when i save as a copy. This will be accessed by multiple people and what i want is the number to update each time it is saved as a copy (so there will never be two documents with the same number, VERY IMPORTANT). This document is essentially a digital carbon copy form then sales reps use.
    I was also hoping there can be a script written to update the file name with the tracking number, so it rules out human error - the script will Save a copy, in a designated folder, with a set file name (Booking_form_#customername_#trackingnumber.pdf)
    Am i just hoping for too much?

    Regarding the server, I was referring to setting up a web server with a script that the form could sumit a request to whenever it needed an new number, not a file server where the PDF resides. The server would check a database and reserve a new number and return it to the form for use. This would require some server programming, but it's the best way to do it. The problem is it won't work with Adobe Reader on mobile devices.
    This type of thing is indeed a common thing to want, but it's hard to do from within the document itself since there's no way of knowing what other users are doing. With a physical book or invoice pad, it's not possible to use a number more than once like it is with a multi-user e-form that's not controlled by a server.

  • Selecting a member range on Planning Data Forms?

    Hi all,
    Can somebody confirm it is not possible to select a range as a member on a Planning Data form?
    Here is my situation:
    Description: On a planning form we would like to populate forecast months. Currently planners can input data to six months: Jul-Dec. In October, we will change it to Oct:Dec.
    Issue: For each data form, we need to manually add/remove members.
    Failed attempt: Created a SubVar and assigned the following range: &CurFstMo:Dec. Of course it failed :)
    Work around: I think the easiest solution is to display 12 monts and change the start and end date for Forecast scenario. I need to check with the planners if they'd be ok with displaying all 12 months other than just the input months.
    Can you think of another solution?
    Thanks,
    Mehmet

    Hi,
    Here's a solution that might be useful:
    Re: Rolling forecast
    Cheers,
    Alp

  • How to suppress "no valid rows of data" warning for composite Planning Form

    I had an issue with using a 2-grid composite webform. I want to show Substitution Variables along with my primary grid. My secondary grid was created using Substitution Variables for rows, columns, and page dimensions. I am hiding all of the segments but not suppressing missing for rows or columns.
    The problem is that I get the message "There are no valid rows of data for this data form" on the composite form due to my secondary grid (the Substitution Variable grid). Any tricks on how to suppress that? I even tried to add some data to an intersection, but, even with data, hiding the segments seems to bring on the warning message.
    Thanks.

    That can be caused if suppress on columns is on. We usually ignore the column part
    Even after all suppression is turned off and still getting the error, then yes it is could be because there is not data for that intersection.
    Regards
    Celvin

  • Date difference issue for Purchase order in R/3 and APO

    Hi,
       I am sending the purchase order from APO to R/3. When I transfer the data through CIF and see the curresponding entries in stock requirement list in R/3, purchase order is 1 day earlier than in SCM.
    However, when this purchase order is CIFed back to SCM, date appears correct in SCM ( as what it was before). Is this something because of timezone that difference in date appears in SCM and R/3.
    Can someone who came across date issues for transaction data transfer between SCM and R/3 elaborate in more detail please.
    Thanks,
    Sanjay

    Hello Somnath ,
    I am also facing the same issue which sanju was facing earlier in PRs .
    In APO I am not able to understand how system calculates the opening , start and end date .In my case the transportation time is 48 hrs , planned delivery time is 1 day and all calenders are 5*24 , GR proceeeing time .01 day . When I am creating PR at destination location on 06/06/2008 , 24:00:00 Hrs . System calculates the dates as follows :-
    Start date -06/05/2008 , 00:45:00 , end date -06/06/2008, 24:00:00 , opening date -05/20/2008 ,23:25:00 Hrs  . I tried to understand the formula given by you in your reply as Opening Date = Requirement Due Date - GR Time - Planned Delivery Time
    Start Date = Requirement Due Date - GR time - Transportation Duration
    End date = Requirement Date.
    But I am not getting the desired results.
    Could you let me know why the system is behaving in such way.I also want to know does system can create orders in such a way the opening date lies in past. If yes then can we restrict that ?
    Regards ,
    Mukesh
    Edited by: Mukesh  Kumar on Mar 9, 2008 1:59 PM

Maybe you are looking for

  • Mid-Level Integration/Software Engineer Position

    Mid-Level Integration/Software Engineer Position We have an immediate need for innovative, results-oriented people that desire a challenging, fast-paced environment in which to apply their skills.  The ideal candidate is highly motivated and possesse

  • SharePoint 2013 OS: Windows Server 2008 R2 vs Windows Server 2012 Standard

    Hi Team, We are thinking on upgrading from SharePoint 2010 to SP 2013 soon. I have been researching about the server OS I should install as host, and it seems that SharePoint 2013 is fully compatible by now with both Windows Server 2008 R2 Standard +

  • Is it possible for a multilingual Flash application that pulls in dynamic text?

    My client requires an app that displays 6 languages, including English, Arabic, Simplified Chinese, Korean, Greek and Vietnamese. The content for all 6 of these languages must also pull data from either Flash vars or XML. I heard that there are probl

  • Why has iCloud mail stopped showing messages in the "Sent" folder?

    Recently I've noticed that any emails I send from iCloud email does not show in the "Sent" mail folder. This, in and of itself is not really a big deal, but I'm curious to know if everything i've sent is being stored somewhere and is accumulting taki

  • SMS App crashes.

    Hi, I received a text not so long ago from my carrier and it seems that whenever I try to check it the app just crashes after 2-3 seconds. What can I do?