Function Module to post doc through FPE1 Tcode
Hi Experts.
Can you please let mw know the function module used to post doc through FPE1 Tcode in ISU Module?
Regards,
surya
Hi.
Here is my code. The FM not posting any document.
DATA:DOCUMENTHEADER LIKE BAPIDFKKKO,
PARTNERPOSITIONS LIKE BAPIDFKKOP OCCURS 0 WITH HEADER LINE,
DOCUMENTNUMBER LIKE BAPIDFKKKO-DOC_NO,
RETURN LIKE BAPIRET2.
START-OF-SELECTION.
CLEAR:PARTNERPOSITIONS,PARTNERPOSITIONS[].
PARTNERPOSITIONS-COMP_CODE = '0400'.
PARTNERPOSITIONS-CONT_ACCT = '000550116672'.
PARTNERPOSITIONS-MAIN_TRANS = '6000'.
PARTNERPOSITIONS-SUB_TRANS = '3021'.
PARTNERPOSITIONS-DIVISION = '03'.
PARTNERPOSITIONS-DOC_DATE = SY-DATUM.
PARTNERPOSITIONS-POST_DATE = SY-DATUM.
PARTNERPOSITIONS-CURRENCY = 'ZAR'.
PARTNERPOSITIONS-AMOUNT = '1016190'.
PARTNERPOSITIONS-BUSPARTNER = '4999924191'.
PARTNERPOSITIONS-G_L_ACCT = '0008291003'.
PARTNERPOSITIONS-TAX_CODE = 'A1'.
PARTNERPOSITIONS-NET_DATE = SY-DATUM.
PARTNERPOSITIONS-ITEM = '01'.
PARTNERPOSITIONS-CMMT_ITEM = '1103003'.
PARTNERPOSITIONS-FUNDS_CTR = '924320'.
PARTNERPOSITIONS-FUND = 'COJ'.
PARTNERPOSITIONS-FM_ORIG_AREA = '1000'.
PARTNERPOSITIONS-FM_CATEGORY = 'G'.
PARTNERPOSITIONS-CLEAR_REAS = '03'.
PARTNERPOSITIONS-APPL_AREA = 'R'.
APPEND PARTNERPOSITIONS.
CLEAR:DOCUMENTHEADER.
DOCUMENTHEADER-FIKEY = '10021901/SWF'.
DOCUMENTHEADER-DOC_TYPE = 'TC'.
DOCUMENTHEADER-CREATED_BY = SY-UNAME.
DOCUMENTHEADER-DOC_DATE = SY-DATUM.
DOCUMENTHEADER-POST_DATE = SY-DATUM.
DOCUMENTHEADER-CURRENCY = 'ZAR'.
DOCUMENTHEADER-APPL_AREA = 'R'.
DOCUMENTHEADER-DOC_SOURCE_KEY = '01'.
BREAK-POINT.
CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
EXPORTING
TESTRUN = 'X'
DOCUMENTHEADER = DOCUMENTHEADER
COMPLETEDOCUMENT =
NET_RECEIVABLES =
IMPORTING
DOCUMENTNUMBER = DOCUMENTNUMBER
RETURN = RETURN
TABLES
PARTNERPOSITIONS = PARTNERPOSITIONS[].
WRITE:/ DOCUMENTNUMBER.
Similar Messages
-
Function module for posting idoc
Hi,
For Inbound Idoc
In function module for posting the Idoc what should be given as the return_variable.Hi,
it depends on application.i have written some piece of code for my requiremnt.chek it,may be it will help u.
FORM idoc_status_ord_change
TABLES idoc_data STRUCTURE edidd
idoc_status STRUCTURE bdidocstat
r_variables STRUCTURE bdwfretvar
USING idoc_contrl LIKE edidc
value(retn_info) LIKE bapiret2
status LIKE bdidocstat-status
wf_result LIKE bdwf_param-result.
CLEAR idoc_status.
idoc_status-docnum = idoc_contrl-docnum.
idoc_status-msgty = retn_info-type.
idoc_status-msgid = retn_info-id.
idoc_status-msgno = retn_info-number.
idoc_status-appl_log = retn_info-log_no.
idoc_status-msgv1 = retn_info-message_v1.
idoc_status-msgv2 = retn_info-message_v2.
idoc_status-msgv3 = retn_info-message_v3.
idoc_status-msgv4 = retn_info-message_v4.
idoc_status-repid = sy-repid.
idoc_status-status = status.
APPEND idoc_status.
IF idoc_status-status = '51'.
wf_result = '99999'.
r_variables-wf_param = 'Error_IDOCs'.
r_variables-doc_number = idoc_contrl-docnum.
READ TABLE r_variables FROM r_variables.
IF sy-subrc <> 0.
APPEND r_variables.
ENDIF.
ELSEIF idoc_status-status = '53'.
CLEAR wf_result.
r_variables-wf_param = 'Processed_IDOCs'.
r_variables-doc_number = idoc_contrl-docnum.
READ TABLE r_variables FROM r_variables.
IF sy-subrc <> 0.
APPEND r_variables.
ENDIF.
ENDIF.
regards,
nagaraj -
Function Module for Posting the Delivery Doument
Dear Experts,
Could you please send me the Function Module for Posting the Delivery Doument.
Thanks & Regards,
Ashok.Hi,
What do you mean by POSTING the delivery document?
Are you mentioning the creation of Goods Issue? -
BDC program or standard function module to change data in PFCG TCode.
Gurus,
I have programatically change the validity date of SAP security role (TCode PFCG). Are there any standard function module available for this ? If not then does PFCG supports update vida BDC programming ?
Regards,
Rajesh.Cross-posting. Thread locked.
Please read [the rules|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
PS: Please clean up / follow up on all your hundreds of unresolved questions. -
EHS Waste Maangement - Function modules for entry doc WAE01
Hi All,
What are the function modules to be assigned for the fucntions which will be visible/avialable in entry document creation WAE01. Pls let me know what are the FMs should be configured for the following functions in SPRO (IMG->EHS->Waste mgmt->Disposal procesing->Basic setings for disposal processing->specify functions.)
A. Functions for application tool bar like 1.Post, 2. Split Document, 3. Post change 4. Transfer location 5. Clear, 6.Purchase Order, and 7.cancel material document
B. Simillarly for functions in function list 1. Display document for partner, 2.create purchse order, 3.display material, 4.display purchase requisition, 5.display waste, 6.stock overview, 7.display master data for generation, 8.stock for waste in WM, 9.Easy entry, 10.Assign partner, 11.create document with approval and 12.create disposal document
I know it is painful job for you guys but it is very urgent for me.
Regards,
RamHi Ram,
Select the function (POST, CLEAR, etc.,) and assign the Document Category (under Display functions per Document Category)
The other possibility may be with Authorization.
Or
Check the attachment (Screen shots)
http://sapehs.googlepages.com/WM_ICON.doc
Regards
Srinivas Nookireddy -
Function Module for Post Partial Clearing
Dear Expert,
Is it possible to use FM POSTING_INTERFACE_CLEARING to clear partial open items ? If yes, kindly suggest what parameters need to be passed.
But should this is not possible, could you suggest any function modules that can do partial clearing ?
Thank youDear expert
Paritial Payment:
A partial payment is a payment that is posted to an account without any open items being cleared. You assign this partial payment to an open item. When you post the partial payment, the system marks the document number of the original open item in the line item for the partial payment. The original open item and the partial payment remain open.
Suppose original invoice is with 1000 /-
current payment is 500 /-
then it will show both 1000 and 500 as open items with balance 500
http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
Residual item:
A residual item results when a payment is made for less than the actual amount outstanding. You clear the original open item, and the system posts a new open item. This new open item is for the same amount as the original open item minus the amount paid.
Suppose original invoice is with 1000 /-
current residual payment is 500 /-
then balance 500 only shown as open item (New line item created during residual payment )
http://help.sap.com/saphelp_47x200/helpdata/en/01/a9bb1f455711d182b40000e829fbfe/frameset.htm
Regards
Ajeesh.s -
Function module to Post picking quantity & PGI
hi all,
i want to post picking quantity and do PGI for the given delivery document . please let me know if there is any BAPI or function module to do that .
thanks in advace,
aswin.Hi Friend,
Use function moudle
SD_DELIVERY_UPDATE_PICKING, it will do picking and PGI both for delivery.
Regards
Krishnendu -
BAPI/Function Module for posting internal order + cost center plan
Hi Guru:
Is there any function module/BAPI, which could be used to post internal order + cost center( both of them )plan data?
Like post a record:
internal order = 10000
cost center = C1000
amount = 1000$
for plann version 30?
It seems the BAPI could only contain 1 cost object, either cost center or internal order.
Thanks.
EricHi again,
I think you may have missed something important here. In R/3 there can only be a single "real" cost object for any one posting. If not then the whole SAP financail model would collapse as there would be "double postings" and that is certainly not wanted.
If there is a need to post to two cost objects, like in your case, then one of the cost objects MUST be statistical.
In your scenario SAP has thought of a solution that might be of help for you. An internal order can be set to be statistical in master data. When posting to both the cost center and the internal order then you will get a real posting for the CC and a statisitical posting for the IO. Reporting does work with this as per your requirement.
Hope this gives you some hints for how to proceed.
Regards, Johan
Aaaaah. Noted that this was only plan data. Sorry. But the same still applies for plan data postings as well as for actual data postings. If there should be just one posting that could be "drilled down" from IO to CC -> If you post twice then, when doing "Grand total" for instance, double values would appear. So, still IO should be statistical. //Johan
Message was edited by: Johan von Reedtz -
Function Module to post budgeting entry
Hi All,
Is anybody aware of a function module which can help me to post a budgeting entry ? I would appreciate if anyone can give me an idea to post a preposted budgeting entry created via transaction "FMBB". The process has to be a background one since I will be integrating this in the background processing of the workflow. Till now I have been exploring the method "PREPOSTED_POST" of the class "CL_FMKU_ENTRYDOC_HANDLER" but it has lots of dependencies and I am not being able to use this method. The transaction "FMBB" does not support BDC as well as it includes a splitter control from where we have to select the document and none of the fields have a parameter ID associated.
Best Regards,
SudhiTry
FMAVC_READ_INDEX_ACO_DOWN
FMBCFF_ENTRY_DOC_POST
FMBCFF_POST_REVERSAL_DOC
FMBCFF_REVERSAL_DOC_POST
FMCCF_BUDGET_POST
FMBD_POST
FMCU_GET_BULEDGERS
KBPV_POST_DATA
Thanks -
Variables passed to Function module for posting the Idoc
Hi,
For Posting the Inbound Idoc a Function module is created what should be the values passed to
1) return_variable and
2) workflow_result.
I saw in many of the program like this if there is an error in posting.
I gave return_variable-wf_param = ' Error Idoc'.
and workflow_result = '99999'.
Why are these values passed, where are they used.Josephine,
In your parntner profile for your customer/vendor ( depending on your idoc type and business scenario) , you would have assigned the post processing permitted agent.
In case the function module errors out, these values are carried out to the WF container and appropriate post processing notifications are sent to the agents. That is the purpose of having these variables in here.
It could be a success/failure, agents are notified in either case.
Ganesh -
Outbound function module to post the data in to WMMBID02 IDOC
Hi Experts,
I am using standerd idoc WMMB1D02 to post the goods recipt data.
I am using the outbound idoc , how to post the data in to idoc using FM or BAPI ?.
please help me on this.
Thanks,
Venkat.Hi Hakim ,
Thanks for tour replay , we are using the standerd message type and standerd idoc are WMMBXY,
WMMBID02. I did't notice any standerd FM or BAPI which will create the outbound idoc for the same.
please help me on this.
Thanks,
Venkat. -
How to create delta extraction through function module?
Hi all,
So far i have created the data source through full load. But currently i would like to convert the couple of function module generic extraction converted through delta.
Can anyone let me know how to convert from full load to delta using generic extraction
thanksHi,
Try these Links, helps u in getting an idea.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30aefb04-7043-2c10-8e92-941536eebc79?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30f1a423-02ae-2e10-bd85-bde64e61fe7b?QuickLink=index&overridelayout=true&51947629650864
Regards,
Aravind. -
Function Module for BOM for posting BOM component long text
Is there any SAP provided Function Module for posting BOM components long
text if so please let me know as it is very urgent for me.Hello Sridevi,
The following customer exits are available for BOM, please check the excect one.
http://help.sap.com/saphelp_46c/helpdata/en/4a/d286ba5a1111d3b47b006094b9d648/frameset.htm
Hope this helps.
Regards
Arif Mansuri -
Function Module for Transfer Posting(MB1B)
Hi All,
Is there any Function Module to post the transfered stock?
Thanks,
DigamberHi,
Check this function module ME_CHECK_RESWK_STOCK_TRANSFER
Regards
Sudheer -
Calling SAPF124 into function module
Hi experts,
I am calling the SAPF124 program into function module .....i have the posting date as range
in function moduel i want to pass through range can anyone help me how to pass it
if its from and to range means i am able to pass it easily.
but if its range like 1 3 5 means i m unable to pass. kindly help me to sort out this issue.
Regards,
Ajay.Hi Vijay,
Actually i have created one functiopn module with
*Inputs :: -- input parameter*
I_COMPCODE LIKE BSEG-BUKRS
I_YEAR LIKE BSEG-GJAHR
I_DATE TYPE BKPF-BUDAT
I_KUNNR LIKE BSEG-KUNNR
I_KUNNR1 LIKE RFPDO-F123KUNN
IN tables
I_FORMAT LIKE ZASDD3(Belnr)
i am calling the zsapf124 in this function module
as below code .through function module i should pass the inputs to the program.
hope i have already attached ma code
DATA : z_belnr TYPE RANGE OF belnr_d,
wa_belnr LIKE LINE OF z_belnr.
LOOP AT I_FORMAT[] into I_FORMAT.
wa_belnr-low = I_FORMAT.
wa_belnr-sign = 'I'.
wa_belnr-option = 'EQ'.
APPEND wa_belnr TO z_belnr.
clear : wa_belnr,I_FORMAT.
ENDLOOP.
submit ZSAPF124 WITH BUKRX eq I_COMPCODE
WITH GJAHX eq I_YEAR
WITH DOCNR EQ z_belnr
WITH KONTD eq I_KUNNR
with X_KUNNR eq I_KUNNR1
exporting list to memory
and return .
Regards,
Ajay.
Edited by: srinivasan12345 on Dec 3, 2011 3:43 PM
Maybe you are looking for
-
Hi, As we can get individual customer released value contract amount through T Code VA43 and report Via T code Z_XX_SD_059 for mass customers which is usually not giving the correct amount of released from value contract. The report which is extracte
-
I have a php page that creates a recordset from mySQL and the exports it as XML so I can load it into dreamweaver to use with spry this particular recordset filters the results according to a session variable, so the results are relevant to the logge
-
I deleted my recovery partition and now want it back
hi i have a hp pavillion g6-2106nr i made recovery disks for it , but every time i try to use the to gain my recovery partiton back it keeps asking for drivers which i thought was saved on the recovery disks that i made for there is a total of 10 dvd
-
Wrong ELF class: ELFCLASS64 when trying to start HTTP Server
Oracle11gR1 Database on OEL 5 64bit with Oracle10gR3 (10.1.3.3.0) Application Server I have finished installing Oracle Application Server and in the end it fails to bring up HTTP Server. I checked the logs and saw the following: /opt/app/oracle/produ
-
Music for specific photos in slideshow
How can I set specific music to play during certain times of the slideshow. I am having such a hard time figuring this out and HAVE to have my movie/slideshow finished by tomorrow AM. Please help!!!