Want to disply posted document in BDC

Hi Frnds,
In my BDC i want to display the document no that was posted successfully,
i m using statment as follows,
CALL TRANSACTION 'MB1B' USING bdcdata MODE 'A' UPDATE 'S' MESSAGES INTO messtab.
APPEND messtab.
But messtab does not conatin any record .
or is there is any othe way to get the posted document no ?
Mahesh.

Hi Mahesh,
                 Try this it will work for sure if the data call transaction is successful and document gets posted.
After call transaction.
Loop at <message table> WHERE msgtyp = 'S' AND msgnr EQ '312'.
SELECT SINGLE * FROM t100 WHERE sprsl = i_error-msgspra
                                  AND arbgb = i_error-msgid
                                  AND msgnr = i_error-msgnr.
    IF sy-subrc = 0.
      l_mstring = t100-text.
      IF l_mstring CS '&1'.
        REPLACE '&1' WITH i_error-msgv1 INTO l_mstring.
        REPLACE '&2' WITH i_error-msgv2 INTO l_mstring.
        REPLACE '&3' WITH i_error-msgv3 INTO l_mstring.
        REPLACE '&4' WITH i_error-msgv4 INTO l_mstring.
      ELSE.
        REPLACE '&' WITH i_error-msgv1 INTO l_mstring.
        REPLACE '&' WITH i_error-msgv2 INTO l_mstring.
        REPLACE '&' WITH i_error-msgv3 INTO l_mstring.
        REPLACE '&' WITH i_error-msgv4 INTO l_mstring.
      ENDIF.
      CONDENSE l_mstring.
    ENDIF.
assign this L_string to your internal table field which will output the status of call transaction for individual records.

Similar Messages

  • Reg:how to post the parked documents using BDC

    Duplicate message in General deleted.  Please do not post the same question in more than one forum.
    Hi
    I am creating parked Documents using FV50. I am able to check them using FBV0, I am able to select and post the documents using the same transaction. Its working fine. However I want to post the selected parked documents using BDC. I am having problems as the output in FBV0 is in ALV report format. HAving problems selcting the parked documents to be posted. As there any way to post the selected parked documents using BDC.
    Please suggest me a solution for this.
    Thanks,
    Satish
    Edited by: Matt on Dec 3, 2008 7:40 PM

    Hi Rob,
    Thank you for ur reply, can u send that code how u post the parked documents using BDC for FBV0 transaction.  Please send the code.
    Thanks,
    Satish

  • Want to assign output type while posting document in MIGO

    Hi All,
    I want to assign output type(WEE1) while posting document in MIGO txn.
    It can be done through configuration but it won't apply in my case as I have some conditions to put as well.
    If anybody could suggest for any User Exits/BADI/Enhancement spots for the same would be of great help.
    Thanks in Advance.

    Hi
    There are many reasons why an update could be terminated, not
    just
    number ranges.
    Go to transaction SM13.
    Enter the date and user ID if known and find your transaction that was
    terminated. Drill-down until you find which function (line) caused the
    termination and double click. That should help you determine why the update failed.
    update was terminated
    regards
    kunal
    Edited by: kunal ingale on Nov 7, 2008 7:03 AM

  • Posting Document num not captured in BDC message table

    I am working on a dataload program for Asset Transfer using tcode ABUMN. If I run ABUMN online, it will give me the message saying, 'Asset Transaction posted with document no. xxxxxx' after saving the trx. However, I can't capture this message while running the Call Trx/BDX program.
    I don't know why the message table is empty after a successful Call Transaction. If there is an error, it will capture it, but no meesage if the trx is successul.  I thought the table will capture any message whether it is a 'S' or 'E' or 'W'. It works for other tcodes, but not for tcode ABUMN. 
    DATA: T_MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
    " Batch Input Message table
    call transaction C_TCODE using t_bdcdata
    MODE P_MODE
    UPDATE P_UPDATE
    MESSAGES INTO T_MESSTAB
    CAll Transcation is a standard code, so there is need to specify what types of message should be captured.
    I remember seeing some threads about the empty message table, and they suggest to use Parameter Id to capture the posting document #.  I tried  par id ' BLN' and still not able to see anything there.!!
    Can anyone help?
    Thank you in advance for any help. Greatly appreciated.

    Hi,
    I have come across with the same issue with transaction CS01. I have done it in a round away . I find an userexit after save , and export the  document number to memory and after the call transaction import the document number from memory and updated the BDCMSGCOLL table.
    May this info will be helpful to you.

  • FIPP object, getting error while posting document in background step

    Hi Experts,
    Once approval is done we are posting document in background, but getting following error
    No batch input data for screen SAPMF05A 0607
    We have delegeted object FIPP to ZFIPP and added method zpost with same code as post with some initial validations.
    Your help in solving this error would be really appreciated.

    If you really haven't done any relevant changes to the SAP standard post method, I would look for an answer from OSS. And if not found, then ask from SAP. But if you have replaced the standard post method code with for example some BDC code, then you need to check this with your ABAP guys... I don't think that it has anything to do with workflow.
    Regards,
    Karri

  • Manual account clear but can see line item after post document

    Hi Guru!
         I have post account clear with transaction code F-03  with open item zero balance such as
    account 214001 balance +500
    account 214001 balance -500
    when I simulate entry the system not show line item for post document but can post it . I want to know why ?
    thank you very much .

    Dear,
    This is standard behaviour...if line item which you are clearing have zero balance then system will not show any line items since open itemss are cleared....
    when you have tolerance difference or the residual posting then only system will show the line item....
    Regards,
    Chintan Joshi

  • Change Posting Period in already posted document

    Hi,
    I wanted to check is there any process where we can change the posting period of already posted documents. The external system unfortunately sent the documents in special periods 13, but it has to be 12. Now our client wants to change the posting period to 12.
    Can anyone of you suggest a suitable way in going forward.
    Thanks,
    Srini

    Hi,
    It is not possile to change the posting period in a posted document, alternatively you can park the document form the external system and it can be posted in SAP after review by the user.
    Thanks and regards
    K.R

  • Post new document by reference from a hundred posted document.

    i want to post new 500 reverse posting documents by reference from the existing 500 documents. but FBR2 can only do like this one by one. i cannot use mass reverse function because almost of them were cleared. is there any standard program or function can do like this?

    many thanks.
    i try to create the batch input session for FBR2 by recording function (SHDB). but i found errors when i release my batch input session, due to each reference document has the diference number of line items. and each item contains profit segment data as well.  system always prompt the coding block screen for each item. but if i use FBR2 directly, system will not show this coding block screen.
    i don't know why both method work not the same.

  • Any Report or Trx to see the posted documents with MR11?

    I want to see all documents which were posted (compensated) by MR11.
    I know there is the MR11SHOW but is not the one I want.
    Suppose three months ahead I want to see which documents were done by MR11. How can i get this information?
    So, I need a report or a way to see documents done by MR11 between two specific dates for example.
    Regards !

    There are many reports available with selection of document type as "KP"
    1. You can get the report from FBL3N with dynamic selection for document type as "KP"
    2. You can get the report from FAGLL03 with dynamic selection for document type as "KP"
    3. You can get the report from MR51 with selection for document type as "KP"

  • How to update profit center in posted document without profit center ?

    HI,
    I want to know,
    How to update profit center in posted document without profit center ?
    So that i can get my profit center accouting report proper.
    Thanks
    Nilesh

    There is a long story about profit center accounting. I assume you are using Classic PCA, this means you can see the PCA documents.  And the solutions is below:
         For P/L account, even you don't maintain cost element for it, if you maintain the profit center in the application (Frontend transaction), then PCA line items will be generated for this account.
        For B/S account,  if you maintain the default Profit Center with transaction 3KEH/3KEI, the PCA line items will generated for this account also.
      Hints, don't maintain default profit center for AR/AP accounts, these accounts to be treated in periodic processing.
      First, calculate the distribution/adjust by F.5D, then transfer it by 1KEK. for others account rather than AR/AP, use F.5E
    For you case, if this account is P/L account, but you don't maintain profit center in the transaction, you can maintain default profit center as B/S account in 3KEH and 3KEI, then transfer it subsequently by transaction 1KE8.
    Good Lucky!
    Flex Yang

  • How to post document in Portal-KM

    Need info on how to post some document in the Portal KM for sharing it with all people accessing the document repository

    Hi Saurabh,
    If you want to share a document with all portal users, the best way is to put it on the Public Documents. For this, go to Content Administration > KM Content > root  >  documents  >  Public Documents then select Folder > New > Upload.
    You can also create a public room, and put your documents there. By this way, documents will be accessible by all portal users. Hope this will be helpful for you.
    Regards,
    Ganpati Jha

  • Cannot post document : Tax base in local currency is zero

    Hi,
    I have an order with a down payment.
    When I want to create the billing document, I get following error message:
    Message no. FF759.
    Cannot post document: tax base in local currency is zero.
    You tried generating a document in which the tax base in local currency is zero although the tax amount and tax base in foreign currency is not zero.
    I see in the sales order conditions that the VPRO is filled out.
    Where can I check what is wrong?
    How can I create the billing document?
    Thank you.
    Kind regards,
    Linda

    Hi,
    Thanks for your reply.
    The error message does not make sense.
    We have maintained the exchange rates.
    We only have postings in local currency (PLN).
    In the order I can't find any zero values for the tax amount or the tax base.
    But when we do a be-bugging, we get the following:
    Error is being trown in LTAX2U27:
    Prüfung: Steuer <> 0 und Steuerbasisbetrag = 0
      IF ( i_bset-hwbas = 0 AND i_bset-hwste <> 0 ) OR
         ( i_bset-fwbas = 0 AND i_bset-fwste <> 0 ) OR
         ( i_bset-h2bas = 0 AND i_bset-h2ste <> 0 ) OR
         ( i_bset-h3bas = 0 AND i_bset-h3ste <> 0 ).
    no error in case of external system is active             "N515047
    AND  billing document AND bas-amount = 0                  "N515047
    prerequisite: note 549712                                 "N515047
        IF  ext_activ IS INITIAL                              "N515047
        OR  i_bkpf-awtyp NE 'VBRK'.                           "N515047
          message_store 'FF' 'E' '759' blank blank blank blank.
        ENDIF.                                                "N515047
      ENDIF.
    At the moment of entry fields have following values:
    HWBAS     HWBAS_BSES     CURR     15     2     Tax Base Amount in Local Currency
    FWBAS     FWBAS_BSES     CURR     15     2     Tax base amount in document currency
    HWSTE     HWSTE     CURR     13     2     Tax Amount in Local Currency
    FWSTE     FWSTE     CURR     13     2     Tax Amount in Document Currency
    Do you have any idea to solve it?
    Thank you!
    Kind regards,
    Linda

  • Entering Cosr Center in Already Posted Document

    Hi Guru
    I have posted one FI Document and in which GL account was not created as a cost element so Cost Center is not asked at the time of posting.
    Later GL account is created as a cost element.
    Now the porblem is how to update Cost Center in Posted document.If I try to change document (FB02), cost center field is greyed out.And if I reverse the document then it is asking for Cost Center becoz now it is created as a  cost element.
    Kindly suggest how to update Cost center in this Document.
    Thanks in advance.

    Hi Keshav
    This process is described in the SAP Note # 98520: I have copied below for your reference. Use OKBA to
    create a follow on document into CO from FI, however firstly maintain the account assignment as instructed.
    You create a G/L account (P+L account) in Financial Accounting without creating the corresponding primary cost element in CO (Transaction KA01). You made a posting to the G/L account in FI. You did not enter CO auxiliary account assignments (cost center, order,...). Later you created the cost element in CO. To clear the difference between FI and CO, you want to subsequently post FI document to CO (Transaction OKBA). However, this is not possible since the document does not contain any CO account assignments (error message KI235 "Account & requires an assignment to a CO object").
    A change to the document in FI is not possible since the fields of the coding block cannot be changed using Transaction FB02.
    Additional key words
    Transaction FB02, CO interface, reconciliation ledger
    Cause and prerequisites
    Solution
    Without CO account assignment, FI document cannot be posted into CO. Hence proceed as follows before you make the subsequent posting:
    Store default account assignment for cost element (cost center or order) in CO (Transaction OKB9). Use a dummy cost center if there is no other solution.
    or
    Fill CO account assignment via substitution when posting (maintain substitution with Transaction OKC9)
    Post FI document subsequently to CO using Transaction OKBA (program RGUREC10). In CO, you may transfer the amounts completely or partially (Transaction KB11 or KB61).
    If FI documents have already been partially posted in CO, the system generates error message "Document already exists" when you post documents subsequently using Transaction OKBA. In this case, you can delete the CO documents using report RKACOR20 and carry out subsequent posting afterwards. For more information, read Note 45122.
    I hope this helps.
    Elaine

  • Posting documents with in f110

    Dear gurus:
                        I am new to SAP Financial accounting module and a learner. I have IDES access and i faced the follwoing difficult situation while posting outgoing payment in F110 by executing a payment proposal. The system is posting document with document dates entered in them but i want that system should post the documents with posting date at proposal run date. Can expert throw some light on this how to accomplish this.
    Regards

    HI
    Link is Atif told is as Under
    partial payment in f110
    Mann

  • Posting document with 4 eyes review

    Dear  SAP-GURUS,
    has anybody experience with 4eyes-review roles in the accounting (posting document) procedure.
    Our client from the USA wants to realise the G/L postings with the following criterias:
    - someone has a right only to edit/park and change a posting
    - someone else is able to display and release the document. In case changes are needed, the document can only be changed by the person who created the posting.
    Our question is: has anybody already realised a concept having similar criterias?
    Has anybody had a similar request?
    If yes, could you apply the standard roles or did you have to develop some extra roles? (02,77 and 01,03)
    Thanks for your help in advance.
    Kind regards,
    Ildiko Kustan"

    Hi,
    Thanks for Your answer, I would have a question regarding the details of this issue.
    My problem is if the person who can release the document has the right 01 then he can not see the details of the draft posting just the overview or a list with limited information on the posting details.
    If he has a right 77 then he also can change the draft posting - which would not be ideal for our client.
    So- with these conditions does anyone have idea how this concept could be realisable.
    Thanks and kind regards,
    Ildikó Kustan

Maybe you are looking for