T-CODE FB01 In Mass creation
Hi all,
I'm looking for idea to create FB01(post g/l document) in mass mode from a file.
I'm open to all techno : BAPI, Batch Input, ...
I've notice that a std Bi exists : RFBIBL00, but I've no idea in how formatting a file for this program.
Tanks,
Erwan.
You can use function 'POSTING_INTERFACE_DOCUMENT', works really fine. Example code bellow:
REPRT ztest.
TYPES
TYPES: BEGIN OF ge_account,
source(12) TYPE c, "Source Interface
bukrs(4) TYPE c, "Company code
operid(13) TYPE c, "Operation ID
date(10) TYPE c, "Date
blart(2) TYPE c, "Document type
waers(5) TYPE c, "Currency
free(10) TYPE c, "Free
newko(10) TYPE c, "Gl account
kostl(10) TYPE c, "Cost center
newbs(2) TYPE c, "Posting key
wrbtr(14) TYPE c, "Amount
sgtxt(25) TYPE c, "Description
zuonr(8) TYPE c, "Reference 1
ref2(8) TYPE c, "Reference 2
END OF ge_account.
TYPES: BEGIN OF ge_account_new,
source(12) TYPE c, "Source Interface
bukrs(4) TYPE c, "Company code
operid(13) TYPE c, "Operation ID
date(10) TYPE c, "Date
blart(2) TYPE c, "Document type
waers(5) TYPE c, "Currency
free(10) TYPE c, "Free
newko(10) TYPE c, "Gl account
kostl(10) TYPE c, "Cost center
newbs(2) TYPE c, "Posting key
wrbtr LIKE bseg-wrbtr, "Amount
sgtxt(25) TYPE c, "Description
zuonr(8) TYPE c, "Reference 1
ref2(8) TYPE c, "Reference 2
END OF ge_account_new.
TYPES: BEGIN OF ge_ftpost.
INCLUDE STRUCTURE ftpost.
TYPES: END OF ge_ftpost.
TYPES: BEGIN OF ge_blntab.
INCLUDE STRUCTURE blntab.
TYPES: END OF ge_blntab.
TYPES: BEGIN OF ge_blntabdoc.
INCLUDE STRUCTURE blntab.
TYPES: END OF ge_blntabdoc.
TYPES: BEGIN OF ge_fttax.
INCLUDE STRUCTURE fttax.
TYPES: END OF ge_fttax.
TYPES: BEGIN OF ge_message,
text(110),
flag,
END OF ge_message.
*TYPES: BEGIN OF ge_zlscf008.
INCLUDE STRUCTURE zlscf008.
*TYPES: END OF ge_zlscf008.
TYPES: tyt_account_aux TYPE TABLE OF ge_account.
TYPES: tyt_account TYPE TABLE OF ge_account_new.
TYPES: tyt_ftpost TYPE TABLE OF ge_ftpost.
TYPES: tyt_blntab TYPE TABLE OF ge_blntab.
TYPES: tyt_blntabdoc TYPE TABLE OF ge_blntabdoc.
TYPES: tyt_fttax TYPE TABLE OF ge_fttax.
TYPES: tyt_message TYPE TABLE OF ge_message.
DATA: it_blntab TYPE tyt_blntab WITH HEADER LINE.
DATA: it_blntabdoc TYPE tyt_blntabdoc WITH HEADER LINE.
DATA: it_fttax TYPE tyt_fttax WITH HEADER LINE.
DATA: it_ftpost TYPE tyt_ftpost WITH HEADER LINE.
DATA: v_lines_doc(3) TYPE n,
v_user LIKE sy-uname,
v_msgid LIKE sy-msgid,
v_msgno LIKE sy-msgno,
v_msgty LIKE sy-msgty,
v_msgv1 LIKE sy-msgv1,
v_msgv2 LIKE sy-msgv2,
v_msgv3 LIKE sy-msgv3,
v_msgv4 LIKE sy-msgv4,
v_subrc LIKE sy-subrc,
v_subrc1 LIKE sy-subrc,
v_tcode LIKE sy-tcode VALUE 'FB01',
v_msg(110),
v_err,
v_mode,
v_blart LIKE zlscf007-blart,
v_hkont LIKE zlscf007-hkont,
v_sources LIKE zlscf007-sources,
v_operid(13),
v_bierr(2) TYPE n,
v_xdate(8),
v_bktxt LIKE bkpf-bktxt,
v_kokrs LIKE csks-kokrs.
PERFORM f_fill_doc_header.
PERFORM f_fill_doc_position.
*Inicio el post del documento
CALL FUNCTION 'POSTING_INTERFACE_START'
EXPORTING
i_client = sy-mandt
i_function = 'C'
i_mode = 'A'
i_update = 'S'
i_user = sy-uname
EXCEPTIONS
client_incorrect = 1
function_invalid = 2
group_name_missing = 3
mode_invalid = 4
update_invalid = 5
OTHERS = 6.
*Postin document.
CLEAR it_blntab.
REFRESH it_blntab.
CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT'
EXPORTING
i_tcode = v_tcode
IMPORTING
e_msgid = v_msgid
e_msgno = v_msgno
e_msgty = v_msgty
e_msgv1 = v_msgv1
e_msgv2 = v_msgv2
e_msgv3 = v_msgv3
e_msgv4 = v_msgv4
e_subrc = v_subrc
TABLES
t_blntab = it_blntab
t_ftpost = it_ftpost
t_fttax = it_fttax
EXCEPTIONS
account_missing = 1
company_code_missing = 2
posting_key_invalid = 3
posting_key_missing = 4
record_type_invalid = 5
transaction_code_invalid = 6
amount_format_error = 7
too_many_line_items = 8
OTHERS = 9.
CALL FUNCTION 'POSTING_INTERFACE_END'
EXPORTING
i_bdcimmed = 'X'
EXCEPTIONS
session_not_processable = 1
OTHERS = 2.
*& Form f_fill_doc_header
text
--> p1 text
<-- p2 text
FORM f_fill_doc_header.
REFRESH it_ftpost.
CLEAR it_ftpost.
ADD 1 TO v_lines_doc.
it_ftpost-stype = 'K'.
it_ftpost-count = v_lines_doc.
it_ftpost-fnam = 'BKPF-BLDAT'.
it_ftpost-fval = '06092004'.
APPEND it_ftpost.
it_ftpost-fnam = 'BKPF-BUDAT'.
it_ftpost-fval = '06092004'.
APPEND it_ftpost.
it_ftpost-fnam = 'BKPF-BLART'.
it_ftpost-fval = 'K3'.
APPEND it_ftpost.
it_ftpost-fnam = 'BKPF-BUKRS'.
it_ftpost-fval = 'CTIU'.
APPEND it_ftpost.
it_ftpost-fnam = 'BKPF-WAERS'.
it_ftpost-fval = 'ARS'.
APPEND it_ftpost.
it_ftpost-fnam = 'BKPF-BKTXT'.
it_ftpost-fval = 'Prueba'.
APPEND it_ftpost.
CLEAR v_lines_doc.
ENDFORM. " f_fill_doc_header
*& Form f_fill_doc_position
text
--> p1 text
<-- p2 text
FORM f_fill_doc_position.
it_ftpost-stype = 'P'.
ADD 1 TO v_lines_doc.
it_ftpost-count = v_lines_doc.
it_ftpost-fnam = 'RF05A-NEWBS'.
it_ftpost-fval = '11'.
APPEND it_ftpost.
it_ftpost-fnam = 'RF05A-NEWKO'.
it_ftpost-fval = '55'.
APPEND it_ftpost.
it_ftpost-fnam = 'BSEG-WRBTR'.
it_ftpost-fval = '1.00'.
APPEND it_ftpost.
it_ftpost-stype = 'P'.
ADD 1 TO v_lines_doc.
it_ftpost-count = '2'.
it_ftpost-fnam = 'RF05A-NEWBS'.
it_ftpost-fval = '21'.
APPEND it_ftpost.
it_ftpost-fnam = 'RF05A-NEWKO'.
it_ftpost-fval = '55'.
APPEND it_ftpost.
it_ftpost-fnam = 'BSEG-WRBTR'.
it_ftpost-fval = '*'.
APPEND it_ftpost.
ENDFORM. " f_fill_doc_position
Similar Messages
-
Transaction code for mass creation of physical Inventory document
what is the transaction code for mass creation of physical Inventory document.
MI31 is the transaction to create hundreds of physical inventory documents for annual inventory at a time.
MICN can create several documents at a time for cycle count.
Just look in the menu of phyiscal inventory into the knot Sessions, there are even more e.g. for counting of own stock a customer and vendor location, for vendor stock at own location etc. -
Mass MRP Codes and Controller names creation/updation in configuration
Hi all,
Can any one guide me how to do mass creation of MRP Codes and controller names plant wise and also updation of existing
mrp controller names in configuration ?.
Is there any SAP standard tools available or need to do it manually or any other ways to acheive it ?.
Thanks in advance.Hello,
You can use Script Recording and Playback:
1- Save step by step how one MRP controller is created.
2- Adjust the script.
3- Complete an excel file with the entries.
4- Run the script.
Kind Regards,
Mariano -
Mass creation of planned order
Hello,
is there a way to mass creat a planned order for a finished product? having same FG mat, plant and prod version.
ThanksDear
1.Goto MD61 with User parameters like Plant , Requirement type , Version and Planning Date .Then Select the Material Radio Buttion with FG item code .
2.Enter the FG qty as required in each month as demand
3.GotO MD02-Single Item ,Multi Level with indicator : NETCH , 2,1,3,3,2 and Execute the MRP to create the Planned order for FG
4.Check the result in MD04
There is no SAP Standard Traction to Mass creation of Planned Order .That is possible in Demand Creation and MRP run .
Regards
JH -
Issue in Program for mass creation of customer plans.
Hello all,
I am working on a program which helps mass creation of customer plans. My code works well, when no planning account is assigned, but when I pass the planning account value into the Function module, it gives me an error saying ' Account cannot be displayed, please check your authorizations'. I donot have this problem, when I manually createthe customer plan in the CRM_UI.
Please let me know the possible cause for this kind of message.
Thanks,
Disha.Hi Dishaa,
I'm afraid that I don't have any other clues. Most often it is a difference in user. If you are absolutely sure that you are using the same user at the exact moment the authorization is checked it cannot be that.
Kinda curious now what the solution to your problem is....
Best regards,
Guus
Edited by: Guus Jansen on Feb 14, 2011 1:32 PM -
BPCA- TBOM mass creation or reuse of the existing TBOM's
Hi,
BPCA process has the capability of analyzing projects and the business processes associated to them. So far we cannot go for TBOM mass creation. But, is it possible for us to re-use the TBOM's that are already created for a particular T code in various business processes associated to multiple projects?
Example: If we have VA01 ( T code) in a BUS1(Business process) under a PROJ1( project 1) that has a dynamic TBOM created.
Is it possible to use the same TBOM for the BUS2(Business process) under PROJ2( project 2)?? are we at this level to integrate the projects and resuse the TBOM's??
Thanks,
Bhavishya.Hi
This is also under the enhancement of future releases
refer the section 6.7Future plans for BPCA under this guide [BPCA-Solman Ehp1|https://websmp210.sap-ag.de/~form/sapnet?_SCENARIO=01100035870000000202&_SHORTKEY=01100035870000724737&_OBJECT=011000358700000269302010E]
and the other posiblites can be here [BPCA -WIKI|http://wiki.sdn.sap.com/wiki/display/SM/BusinessProcessChange+Analyzer(BPCA)]
And for mass creation related info [Re: BPCA-TBOM mass creation - TestManagement Solution Manager|Re: BPCA-TBOM mass creation - TestManagement Solution Manager]
Jansi -
MASS CREATION OF INFOOBJECTS IN BI 7.0
Hello Gurus,
Here is my scenario:
we have more than 100 new Z fields in R/3 (Tables: KONV, KONP, VBRP) and we are populating those. We maintained the Datasources with that fields. Now we need to develop new infoobjects in BW for those Z fields. Is there any possible way for mass creation of infoobjects.
I searched about this, but most of them were used only for 3.5 data source.(eg: CTBW_META - transaction for mass creation of infoobjects in bw 3.5)
Please anyone help me in solving this !
Thanks in advance .Hi,
One option I thought of, but never applied in practice. Create an excel with all the field related information in the structure of table,
RSDIOBJ Directory of all InfoObjects
RSDCHABAS Basic Characteristics (for Characteristics,Time Characteristics, and Units)
*RSKYF Key Figures
RSDTIM Time Characteristics
RSDUNI Units*
And upload this table with the flat using function module etc.
But then you would need to update below tables to with relevant details.
RSDIOBJT Texts of InfoObjects
RSDIOBJ Directory of all InfoObjects
RSDIOBJT Texts of InfoObjects
RSDATRNAV Navigation Attributes
RSDATRNAVT Navigation Attributes
RSDBCHATR Master Data Attributes
RSDCHABAS Basic Characteristics (for Characteristics,Time Characteristics, and Units)
RSDCHA Characteristics Catalog
RSDDPA Data Package Characteristic
RSDIOBJCMP Dependencies of InfoObjects
RSKYF Key Figures
RSDTIM Time Characteristics
RSDUNI Units
Edited by: Parth Kulkarni on Jun 22, 2011 4:56 PM -
Mass creation of PO from excel sheet
Dear all
Kindly let me know the method for Mass creation of PO from excel sheet
Regards
Chandra mohanHi, check these links....
/people/hema.rao/blog/2006/09/14/lsmw--step-by-step
http://www.sap-img.com/sap-data-migration.htm
get more from first thread......... -
Mass creation of common folders for different user groups
Hello Experts,
We are using Portal 7.0 SP12 and we have 10 different user groups created in Portal.
Based on this group structure, we need to create two common folders in each of the user's personnel documents in KM.
Is there is any way to achieve this kind of requirement ?
Can we do mass creation of these two common folders which will be assigned to all of the groups. This needs to be done in user's personnel documents and not in Public documents.
Any help in this context would be highly appreciated. points assured.
Thanks in advance,
Anil Kumar.For every user a folder is created in userhome. One approach is to capture this folder creation event and create the folder structure you need. You need to develop a portal service which will listen to events from userhome repository.
1. Capture folder creation event for user home
2. Create the folder structure you want in this event handler
Check this documentation on how to do this.
https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/rf/client_api/rf_client_api.html
Regards,
Prasanna Krishnamurthy -
Reg:Bapi for mass creation of production order/confirmation
Dear Experts,
I wanted to know with the following BAPI is it possible to create Multiple production orders for different semifinshed Materials along with material availability check and other functions similar to CO01 transaction.
I knew there are standard transactions for mass confirmation for production orders. But i need a confirmation on this BAPI . As i am planning to go-ahed with ,mass creation of production order creation / Order confirmation in single custom transaction.Need back flush activity even supported.
BAPI_PRODORD_CREATE to create the orders.
BAPI_PRODORD_RELEASE to release the orders.
BAPI_PRODORDCONF_GET_TT_PROP to get the default data for the confirmation.
BAPI_PRODORDCONF_CREATE_TT to ost the confirmation of production order.
Along with this BAPI do i need to commit any other BAPI to carry out back flush for components.
Need your suggestions to take it further.
Regards,
Daya.Dear SAP Daya
If the issue has been solved, please close this thread.
You have already mentioned that the issue has been resolved, thefore, you should not ask for help on another thread before closing this one, as it looks like you are trying to force people to answer your threads.
Users are always trying to answer as many threads as possible on good will we don't need this kind of "incentive".
Please read carefully the The SCN Rules of Engagement, especially point 8:
Be responsive. If an SCN member has answered your question, please mark the answer as "helpful” or “correct”. Mark the discussion as “answered,” so that other members can find the answers more easily
Also, I checked your old threads and I could observe that there is only one closed. Please review your old threads and close those already solved.
BR
Caetano -
Issue in BAPI_PS_PRECOMMIT in mass creation of WBS Elements
Hi,
I am facing a issue with BAPI_PS_PRECOMMIT.
we have the following WBS Hierarchy:
S - Proj, (level1)
S-XXX WBS Element (level2)
S-XXX-001 WBS Element (level3)
I have created a program for mass creation of WBS elements creation
which uses the following BAPI's
BAPI_PS_INITIALIZATION
BAPI_BUS2054_CREATE_MULTI
BAPI_PS_PRECOMMIT
BAPI_TRANSACTION_COMMIT
The proj: 'S' and the level2 WBS element: 'S-XXX' already exist in the system.
When I run the program for delta load, so as to create the following level3 WBS elements:
S-XXX-001
S-XXX-002
S-XXX-003
The system is throwing the following errors at the BAPI_PS_PRECOMMIT:
1. Final Check of the project definition and WBS elements: Error
2. Validation unsuccessful
Pls help me on this.
Thanks,
DeepakCheck the WBS elements doesn't exist already in your system.
Here is what I coded some days back for deletion of Network Activities, most of the things are same.
You are doing for WBS element.
* Call to initialization BAPI Before Delete
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
* Call to Network Activity Deletion BAPI
CALL FUNCTION 'BAPI_BUS2002_ACT_DELETE_MULTI'
EXPORTING
i_number = t_bapi_activity-network
TABLES
it_delete_activity = l_t_del_vornr
et_return = l_t_bapiret2.
DELETE l_t_bapiret2 WHERE type <> 'E'.
READ TABLE l_t_bapiret2 INDEX 1.
IF sy-subrc EQ 0. "If error in Deletion
MOVE: f_idoc_contrl-docnum TO t_idoc_status-docnum,
l_t_bapiret2-type TO t_idoc_status-msgty,
'CNIF_PI' TO t_idoc_status-msgid,
l_t_bapiret2-number TO t_idoc_status-msgno,
l_t_bapiret2-message TO t_idoc_status-msgv1.
MOVE c_idoc_status_error TO t_idoc_status-status.
APPEND t_idoc_status.
ROLLBACK WORK.
EXIT.
ELSE. "If Delete is successful COMMIT
* Call to PreCOMMIT BAPI
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
TABLES
ET_RETURN = l_t_bapiret3.
* Call COMMIT BAPI
* CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
ENDIF.
The other solution is use BAPI_PROJECT_MAINTAIN. -
MASS CREATION of new inforecords and loading it in mass
Iam new to SAP MM .can anyone please let me know
1. what MASS CREATION OF NEW INFO RECORDS MEANS. Is it somethnig other than creating the info record using the TCODE ME11?
2. what LOAD INFO RECORD IN MASS means?Hi
Mass creation of info records means, if you have more than 50+ records needs to be created, in that case you can use any bdc or CATT or LSMW program.
regards
Srinivas -
Any transaction that can help with masscreation of materials, I have to create around 20 000 new materials and need a mass creation function.
Hi
[http://www.saptechnical .com/Tutorials/LSMW/Longtext/Material.htm]
[http://www.sap-img.com/general/lsmw-steps-for-data-migration.htm]
Best way LSMW or BDC.
SAM
Edited by: Saminathan Gopalan on Jun 8, 2010 5:24 PM -
Hi,
Is there any way to do a mass creation of gl-accounts in the chart of accounts? I have to create more than 300 accounts.
Thanks
Moderator: Please, search SDNHi,
LSMW is an easier option.
If these GL accounts are already available in one system, then you can extract using FS15 and update using FS16.
Best Regards,
Madhu -
APO-MD - Mass Creation of Product Masters in APO.
I have need to create about 100,000 product masters in APO. The product master general data does exist as it has been CIFed over from R/3. However these need to be mass extended to several customer locations.
I am looking for any advice on tools/programs that will allow mass creation of Product masters in APO.The Functiona Loader did mass create products but the product model assignment did not work even though the model number was mapped in the loader.
Did I miss something in the process.
Is there another way to mass assign products and model.
Maybe you are looking for
-
Trouble with apps in Creative Cloud
I have for a while now not been able to launch my app-section in Creative Cloud? Why might this be?
-
How do you avoid your class to be cloned?
Hi All, Can any one let me know how to avoid my class being cloned?and the scenarios where we need to implement this feature. Thanks in advance, venu.
-
Hi to all. Iim getting into a problem and after a lot of test i'm no able to fix it. My managed server comunicates with an external system in asynchronous fashion (by using JMS, proxy service, business service).Sometimes the response of this syetm is
-
Customising error in work schedule rule
Hi All, While running the TM schema TM04, i am getting "customising error in work schedule rule". I could successfully generate work schedule with the same work schedule rule for the period 01-2006 to 01-2008. I have configured all the nodes under wo
-
Can I upload PowerPoint directly into Connect without using Adobe Presenter?
I have a PowerPoint file (.ppt as well as .pptx) and the slides are fairly simple - mostly bullet point lists in Arial or Calibri font (nothing wild and crazy). When I upload the content directly into the Connect envrionment, the formatting of the s